How to Terminate SIP Calls to my Dadhi Trunk

Hi there,

I have Two IPBX machines. IPBX1’s Outound Route is already configured to dial to my Dadhi Trunk and it terminates and receives calls from that trunk already. However, I also have another IPBX and lets name it IPBX2.

May I ask if it is possible to redirect all incoming SIP numbers to be dialed to a Dadhi Trunk. I tried to pass a number coming from my iPBX2 to iPBX1 but it did not route to the Dadhi Trunk I have for iPBX1.

I already got my IPBX configured to dial to my Dadhi Trunk but this is only true if I dial in from the IPBX extension I created.

9NXXXXXX = The number I prepended with 9 I wish to pass to the Dadhi Trunk
AAA.AAA.AAA.AAA = The IP address of IPBX2.

I got this log file from the call I made:

Asterisk 1.6.0.10-FONCORE-r40, Copyright © 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer [email protected]
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

== Parsing ‘/etc/asterisk/asterisk.conf’: == Found
== Parsing ‘/etc/asterisk/extconfig.conf’: == Found
Connected to Asterisk 1.6.0.10-FONCORE-r40 currently running on HOSTNAME (pid = 11827)
Verbosity is at least 20
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
– Executing [[email protected]:1] Set(“SIP/AAA.AAA.AAA.AAA-097bec78”, “__FROM_DID=9NXXXXXX”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/AAA.AAA.AAA.AAA-097bec78”, “Received an unknown call with DID set to 9NXXXXXX”) in new stack
– Executing [[email protected]:3] Goto(“SIP/AAA.AAA.AAA.AAA-097bec78”, “s,a2”) in new stack
– Goto (from-trunk,s,2)
– Executing [[email protected]:2] Answer(“SIP/AAA.AAA.AAA.AAA-097bec78”, “”) in new stack
– Executing [[email protected]:3] Wait(“SIP/AAA.AAA.AAA.AAA-097bec78”, “2”) in new stack
– Executing [[email protected]:4] Playback(“SIP/AAA.AAA.AAA.AAA-097bec78”, “ss-noservice”) in new stack
– <SIP/AAA.AAA.AAA.AAA-097bec78> Playing ‘ss-noservice.gsm’ (language ‘en’)
– Executing [[email protected]:5] SayAlpha(“SIP/AAA.AAA.AAA.AAA-097bec78”, “9NXXXXXX”) in new stack
– <SIP/AAA.AAA.AAA.AAA-097bec78> Playing ‘digits/9.gsm’ (language ‘en’)
– <SIP/AAA.AAA.AAA.AAA-097bec78> Playing ‘digits/N.gsm’ (language ‘en’)
– <SIP/AAA.AAA.AAA.AAA-097bec78> Playing ‘digits/X.gsm’ (language ‘en’)
– <SIP/AAA.AAA.AAA.AAA-097bec78> Playing ‘digits/X.gsm’ (language ‘en’)
– <SIP/AAA.AAA.AAA.AAA-097bec78> Playing ‘digits/X.gsm’ (language ‘en’)
– <SIP/AAA.AAA.AAA.AAA-097bec78> Playing ‘digits/X.gsm’ (language ‘en’)
– <SIP/AAA.AAA.AAA.AAA-097bec78> Playing ‘digits/X.gsm’ (language ‘en’)
– <SIP/AAA.AAA.AAA.AAA-097bec78> Playing ‘digits/X.gsm’ (language ‘en’)
– Executing [[email protected]:6] Hangup(“SIP/AAA.AAA.AAA.AAA-097bec78”, “”) in new stack
== Spawn extension (from-trunk, s, 6) exited non-zero on ‘SIP/AAA.AAA.AAA.AAA-097bec78’
– Executing [[email protected]:1] Hangup(“SIP/AAA.AAA.AAA.AAA-097bec78”, “”) in new stack
== Spawn extension (from-trunk, h, 1) exited non-zero on ‘SIP/AAA.AAA.AAA.AAA-097bec78’