So the SIP Provider (VOIP Account) would need to be created/edited to have these fields, correct? I am unsure whether I need to change the Register Contact or just the Name??
SIP Provider (SIP Account)
Name: ABC.Jane # SIP Account for one User/DID, not 100 DIDs![/i]
Register Contact: route.jane@local (or @sipsorcery.com) # Allow to process Jane's calls.
So incoming/inbound plan could look like:
Code: Select all
# Incoming dial plan example.
sys.Log("New incoming call received to #{req.URI.User} from #{req.Header.From.ToString()}.")
case req.URI.User
#? Why "@Provider1" in your Wiki??? Don't you mean @SipSorcery or @local for "Inbound" ???
when "ABC.Jane", "XYZ.Jane" then sys.Dial("Jane123@local") # Two SIP A/C FWD through to Jane's SS A/C.
when "CC.Fred", "MNF.Fred", "TLC.Fred" then sys.Dial("Fred789n@local") # Three SIP A/C FWD thru to Fred's SS A/C (as above).
else sys.Dial("SIP_Account_User_Name@SIP_Provider_10.com") # Call external VOIP service as a backup. Cannot be configured with SIP Sorcery otherwise will cause loop...?
end
Q: What was the limitation with CID & SS you mentioned before? Where it was up to the VSP to pass it on? What should I be asking each VSP in order to determine this? Something in the header? or ...