Hi,
I am still not getting calls routed properly.
I want:
479015 --> DID_trunk_1 --> Ext 6001 (Zap/1)
858643 --> DID_trunk_2 --> Ext 6003 (Zap/3)
But both inbound SIPs call ext 6003. The console shows calls coming in on two different SIPs, but both going to DID_trunk_2. What else do I need to tell 1.4?
This should be really easy…
Any ideas? If I miss the obvious, sorry, but I have been sat here for 14 hours now trying to get Ext1 to ring on phone number 1 and Ext2 to ring on phone number 2… No lunch, no coffee, no dinner 
Reinstall again?
The AsteriskGUI has done these entries.
In [color=red]users.conf[/color], I have:
[trunk_1]
disallow =
allow = all
callerid =
contact = 479015
context = DID_trunk_1
dialformat = ${EXTEN:1}
fromdomain = proxy.voip.co.uk
fromuser = 479015
group =
hasexten = no
hasiax = no
hassip = yes
host = proxy.voip.co.uk
insecure = very
port = 5060
provider =
registeriax = no
registersip = yes
secret = ******
trunkname = Custom - Personal
trunkstyle = customvoip
username = 479015
[trunk_2]
disallow =
allow = all
callerid =
contact = 858643
context = DID_trunk_2
dialformat = ${EXTEN:1}
fromdomain = proxy.voip.co.uk
fromuser = 858643
group =
hasexten = no
hasiax = no
hassip = yes
host = proxy.voip.co.uk
insecure = very
port = 5060
provider =
registeriax = no
registersip = yes
secret = ******
trunkname = Custom - Business
trunkstyle = customvoip
username = 858643
In [color=red]extensions.conf[/color]
trunk_1 = SIP/trunk_1
trunk_2 = SIP/trunk_2
…
…
[DID_trunk_1]
include = default
exten = _X.,1,Goto(default|6001|1)
exten = s,1,Goto(default|6001|1)
[DID_trunk_2]
include = default
exten = _X.,1,Goto(default|6003|1)
exten = s,1,Goto(default|6003|1)
Console output
Call 1 on DID_trunk_2
– Executing [858643@DID_trunk_2:1] Goto(“SIP/858643-081f03e8”, “default|6003|1”) in new stack
– Goto (default,6003,1)
– Executing [6003@default:1] Macro(“SIP/858643-081f03e8”, “stdexten|6003|SIP/6003&IAX2/6003&Zap/3”) in new stack
– Executing [s@macro-stdexten:1] Dial(“SIP/858643-081f03e8”, “SIP/6003&IAX2/6003&Zap/3|20”) in new stack
[Jun 6 21:15:54] WARNING[5579]: app_dial.c:1106 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)
[Jun 6 21:15:54] WARNING[5579]: app_dial.c:1106 dial_exec_full: Unable to create channel of type ‘IAX2’ (cause 3 - No route to destination)
– Called 3
– Zap/3-1 is ringing
– Zap/3-1 is ringing
– Zap/3-1 is ringing
– Hungup ‘Zap/3-1’
== Spawn extension (macro-stdexten, s, 1) exited non-zero on ‘SIP/858643-081f03e8’ in macro ‘stdexten’
== Spawn extension (macro-stdexten, s, 1) exited non-zero on ‘SIP/858643-081f03e8’
Call 2 really on DID_trunk_1, Asterisk is picking it up on trunk_2
– Executing [479015@DID_trunk_2:1] Goto(“SIP/858643-081f03e8”, “default|6003|1”) in new stack
– Goto (default,6003,1)
– Executing [6003@default:1] Macro(“SIP/858643-081f03e8”, “stdexten|6003|SIP/6003&IAX2/6003&Zap/3”) in new stack
– Executing [s@macro-stdexten:1] Dial(“SIP/858643-081f03e8”, “SIP/6003&IAX2/6003&Zap/3|20”) in new stack
[Jun 6 21:16:15] WARNING[5586]: app_dial.c:1106 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)
[Jun 6 21:16:15] WARNING[5586]: app_dial.c:1106 dial_exec_full: Unable to create channel of type ‘IAX2’ (cause 3 - No route to destination)
– Called 3
– Zap/3-1 is ringing
– Zap/3-1 is ringing
– Hungup ‘Zap/3-1’
== Spawn extension (macro-stdexten, s, 1) exited non-zero on ‘SIP/858643-081f03e8’ in macro ‘stdexten’
== Spawn extension (macro-stdexten, s, 1) exited non-zero on ‘SIP/858643-081f03e8’