But when i call my DID number following dialplans are being executed. What
i need is to set a variable with one value for one DID number and set the
same variable with another value for another DID number. Also any contexts
should be able to use this variable.
---------
NoOp("SIP/5070-00005407", "Received incoming SIP connection from unknown
peer to <DID NUMBER>") in new stack
-- Executing [<DID NUMBER>@from-sip-external:2] Set("SIP/5070-00005407",
"DID=<DID NUMBER>") in new stack
-- Executing [<DID NUMBER>@from-sip-external:3]
Goto("SIP/5070-00005407", "s|1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [...@from-sip-external:1] GotoIf("SIP/5070-00005407",
"1?checklang:noanonymous") in new stack
-- Goto (from-sip-external,s,2)
-- Executing [...@from-sip-external:2] GotoIf("SIP/5070-00005407",
"0?setlanguage:from-trunk|<DID NUMBER>|1") in new stack
-- Goto (from-trunk,<DID NUMBER>,1)
-- Executing [<DID NUMBER>@from-trunk:1] Set("SIP/5070-00005407",
"__FROM_DID=<DID NUMBER>") in new stack
-- Executing [<DID NUMBER>@from-trunk:2] Gosub("SIP/5070-00005407",
"app-blacklist-check|s|1") in new stack
-- Executing [...@app-blacklist-check:1]
LookupBlacklist("SIP/5070-00005407", "") in new stack
-- Executing [...@app-blacklist-check:2] GotoIf("SIP/5070-00005407",
"0?blacklisted") in new stack
-- Executing [...@app-blacklist-check:3] Set("SIP/5070-00005407",
"CALLED_BLACKLIST=1") in new stack
-- Executing [...@app-blacklist-check:4] Return("SIP/5070-00005407", "")
in new stack
-- Executing [<DID NUMBER>@from-trunk:3] ExecIf("SIP/5070-00005407", "0
|Set|CALLERID(name)=Anonymous") in new stack
-- Executing [<DID NUMBER>@from-trunk:4] Set("SIP/5070-00005407",
"__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [<DID NUMBER>@from-trunk:5]
SetCallerPres("SIP/5070-00005407", "allowed_not_screened")
------------
P.S : used <DID NUMBER> in place of actual DID number
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users