I have two SIP channels (Vonage) set up on my asterisk@home installation. No matter which channel I dial into, it always appears as xxx-xxx-4531 even when dialing into xxx-xxx-4530. Any ideas? Below is my ext-did settings as well as a call log.
[ext-did]
include => ext-did-custom
exten => xxxxxxx4530,1,SetVar(FROM_DID=xxxxxxx4530) ;
exten => xxxxxxx4530,2,SetVar(Incoming=aa_4)
exten => xxxxxxx4530,3,Goto(from-pstn,s,1) ;
exten => xxxxxxx4531,1,SetVar(FROM_DID=xxxxxxx4531) ;
exten => xxxxxxx4531,2,SetVar(Incoming=aa_2)
exten => xxxxxxx4531,3,Goto(from-pstn,s,1) ;
Call Log - Inbound to xxxxxxx4530
Nov 11 09:53:01 VERBOSE[1960]: – Executing SetVar(“SIP/xxxxxxx4531-7a0e”, “FROM_DID=xxxxxxx4530”) in new stack
Nov 11 09:53:01 VERBOSE[1960]: – Executing SetVar(“SIP/xxxxxxx4531-7a0e”, “Incoming=aa_4”) in new stack
Nov 11 09:53:01 VERBOSE[1960]: – Executing Goto(“SIP/xxxxxxx4531-7a0e”, “from-pstn|s|1”) in new stack
Nov 11 09:53:01 VERBOSE[1960]: – Goto (from-pstn,s,1)
Nov 11 09:53:01 DEBUG[1960]: Expression is '0’
Nov 11 09:53:01 VERBOSE[1960]: – Executing GotoIf(“SIP/xxxxxxx4531-7a0e”, “0?from-pstn-reghours|s|1:”) in new stack
Nov 11 09:53:01 DEBUG[1960]: Not taking any branch
Nov 11 09:53:01 DEBUG[1960]: Expression is '0’
Nov 11 09:53:01 VERBOSE[1960]: – Executing GotoIf(“SIP/xxxxxxx4531-7a0e”, “0?from-pstn-afthours|s|1:”) in new stack
Nov 11 09:53:01 DEBUG[1960]: Not taking any branch
Nov 11 09:53:01 VERBOSE[1960]: – Executing GotoIfTime(“SIP/xxxxxxx4531-7a0e”, “8:30-17:00|mon-thu||?from-pstn-timecheck|s|5:”) in new stack
Nov 11 09:53:01 VERBOSE[1960]: – Executing Goto(“SIP/xxxxxxx4531-7a0e”, “from-pstn-afthours|s|1”) in new stack
Nov 11 09:53:01 VERBOSE[1960]: – Goto (from-pstn-afthours,s,1)
Nov 11 09:53:01 DEBUG[1960]: Expression is '1’
Nov 11 09:53:01 VERBOSE[1960]: – Executing GotoIf(“SIP/xxxxxxx4531-7a0e”, “1?from-pstn-afthours-nofax|s|1:2”) in new stack
Nov 11 09:53:01 VERBOSE[1960]: – Goto (from-pstn-afthours-nofax,s,1)
Nov 11 09:53:01 VERBOSE[1960]: – Executing SetVar(“SIP/xxxxxxx4531-7a0e”, “intype=aa_8”) in new stack
Nov 11 09:53:01 VERBOSE[1960]: – Executing Cut(“SIP/xxxxxxx4531-7a0e”, “intype=intype|-|1”) in new stack
Nov 11 09:53:01 DEBUG[1960]: Expression is '0’
Nov 11 09:53:01 VERBOSE[1960]: – Executing GotoIf(“SIP/xxxxxxx4531-7a0e”, “0?4:5”) in new stack
Nov 11 09:53:01 VERBOSE[1960]: – Goto (from-pstn-afthours-nofax,s,5)
Nov 11 09:53:01 DEBUG[1960]: Expression is '0’
Nov 11 09:53:01 VERBOSE[1960]: – Executing GotoIf(“SIP/xxxxxxx4531-7a0e”, “0?6:7”) in new stack
Nov 11 09:53:01 VERBOSE[1960]: – Goto (from-pstn-afthours-nofax,s,7)
Nov 11 09:53:01 DEBUG[1960]: Expression is '0’
Nov 11 09:53:01 VERBOSE[1960]: – Executing GotoIf(“SIP/xxxxxxx4531-7a0e”, “0?8:11”) in new stack
Nov 11 09:53:01 VERBOSE[1960]: – Goto (from-pstn-afthours-nofax,s,11)
Nov 11 09:53:01 VERBOSE[1960]: – Executing Answer(“SIP/xxxxxxx4531-7a0e”, “”) in new stack
Nov 11 09:53:01 VERBOSE[1960]: – Executing Wait(“SIP/xxxxxxx4531-7a0e”, “1”) in new stack
As can be seen above, it is using the proper FROM_DID but the channel is incorrect. Where should I be looking to correct this problem? Any ideas what is causing this problem? Any assistance you may offer is greatly appreciated.
Thanks,
Zach