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.<br>
<br>---------<br> NoOp("SIP/5070-00005407", "Received incoming SIP connection from unknown peer to <DID NUMBER>") in new stack<br> -- Executing [<DID NUMBER>@from-sip-external:2] Set("SIP/5070-00005407", "DID=<DID NUMBER>") in new stack<br>
-- Executing [<DID NUMBER>@from-sip-external:3] Goto("SIP/5070-00005407", "s|1") in new stack<br> -- Goto (from-sip-external,s,1)<br> -- Executing [s@from-sip-external:1] GotoIf("SIP/5070-00005407", "1?checklang:noanonymous") in new stack<br>
-- Goto (from-sip-external,s,2)<br> -- Executing [s@from-sip-external:2] GotoIf("SIP/5070-00005407", "0?setlanguage:from-trunk|<DID NUMBER>|1") in new stack<br> -- Goto (from-trunk,<DID NUMBER>,1)<br>
-- Executing [<DID NUMBER>@from-trunk:1] Set("SIP/5070-00005407", "__FROM_DID=<DID NUMBER>") in new stack<br> -- Executing [<DID NUMBER>@from-trunk:2] Gosub("SIP/5070-00005407", "app-blacklist-check|s|1") in new stack<br>
-- Executing [s@app-blacklist-check:1] LookupBlacklist("SIP/5070-00005407", "") in new stack<br> -- Executing [s@app-blacklist-check:2] GotoIf("SIP/5070-00005407", "0?blacklisted") in new stack<br>
-- Executing [s@app-blacklist-check:3] Set("SIP/5070-00005407", "CALLED_BLACKLIST=1") in new stack<br> -- Executing [s@app-blacklist-check:4] Return("SIP/5070-00005407", "") in new stack<br>
-- Executing [<DID NUMBER>@from-trunk:3] ExecIf("SIP/5070-00005407", "0 |Set|CALLERID(name)=Anonymous") in new stack<br> -- Executing [<DID NUMBER>@from-trunk:4] Set("SIP/5070-00005407", "__CALLINGPRES_SV=allowed_not_screened") in new stack<br>
-- Executing [<DID NUMBER>@from-trunk:5] SetCallerPres("SIP/5070-00005407", "allowed_not_screened")<br>------------<br><br>P.S : used <DID NUMBER> in place of actual DID number <br>