Channel Troubles


#1

I have four 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 are my trunk settings, ext-did settings as well as a call log.

register=xxxxxxx4530:password@sphone.vopr.vonage.net:5061
register=xxxxxxx4531:password@sphone.vopr.vonage.net:5061
register=xxxxxxx2574:password@sphone.vopr.vonage.net:5061
register=xxxxxxx2575:password@sphone.vopr.vonage.net:5061

[xxxxxxx2574]
username=xxxxxxx2574
type=friend
secret=password
port=5061
nat=yes
insecure=very
host=sphone.vopr.vonage.net
fromuser=xxxxxxx2574
fromdomain=sphone.vopr.vonage.net
dtmfmode=rfc2833
context=from-pstn
canreinvite=no
auth=md5

[xxxxxxx2575]
username=xxxxxxx2575
type=friend
secret=password
port=5061
nat=yes
insecure=very
host=sphone.vopr.vonage.net
fromuser=xxxxxxx2575
fromdomain=sphone.vopr.vonage.net
dtmfmode=rfc2833
context=from-pstn
canreinvite=no
auth=md5

[xxxxxxx4530]
username=xxxxxxx4530
type=friend
secret=password
port=5061
nat=yes
insecure=very
host=sphone.vopr.vonage.net
fromuser=xxxxxxx4530
fromdomain=sphone.vopr.vonage.net
dtmfmode=rfc2833
context=from-pstn
canreinvite=no
auth=md5

[xxxxxxx4531]
username=xxxxxxx4531
type=friend
secret=password
port=5061
nat=yes
insecure=very
host=sphone.vopr.vonage.net
fromuser=xxxxxxx4531
fromdomain=sphone.vopr.vonage.net
dtmfmode=rfc2833
context=from-pstn
canreinvite=no
auth=md5

[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


#2

You already posted this question! Why not just wait for an answer to the first one? You’ll find my response on that thread.