IP PBX ForumCategory: PBX How ToTrunks Between 1 Xorcom, and Other Asteriks
Hector Tovilla asked 4 years ago
When I Create the 2 Trunks, this Come Up Correclty, but if I try to call from Xorcom to Isabell, call thats OK, but when I try to call from Isabell to Xorcom, the xorcom drop the call, with error:

— Executing [s@invalid-dest:1] NoOp(“IAX2/mexico-12425”, “Invalid Route to Dial”) in new stack

If I create a Inbound route, the Call complete, but this is not the correct.

Entire Log:

— Accepting AUTHENTICATED call from 192.168.132.250:4569:
— > requested format = g729,
— > requested prefs = (g729),
— > actual format = g729,
— > host prefs = (g729),
— > priority = caller
— Executing [2001@default-trunk:1] Set(“IAX2/mexico-4904”, “__INCOMING_CALLERID=”Luigi Co” “) in new stack
— Executing [2001@default-trunk:2] Gosub(“IAX2/mexico-4904”, “sub-check-blacklist,s,1(777990c1c86f43b6,3117)”) in new stack
— Executing [s@sub-check-blacklist:1] NoOp(“IAX2/mexico-4904”, “Testing if 3117 is in Black List”) in new stack
— Executing [s@sub-check-blacklist:2] GotoIf(“IAX2/mexico-4904”, “0?banned”) in new stack
— Executing [s@sub-check-blacklist:3] Return(“IAX2/mexico-4904”, “”) in new stack
— Executing [2001@default-trunk:3] Gosub(“IAX2/mexico-4904”, “sub-setup-call-type,s,1(incoming)”) in new stack
— Executing [s@sub-setup-call-type:1] NoOp(“IAX2/mexico-4904”, “Determinating Call Type”) in new stack
— Executing [s@sub-setup-call-type:2] GotoIf(“IAX2/mexico-4904”, “0?return”) in new stack
— Executing [s@sub-setup-call-type:3] Gosub(“IAX2/mexico-4904”, “s-incoming,1()”) in new stack
— Executing [s-incoming@sub-setup-call-type:1] NoOp(“IAX2/mexico-4904”, “Incoming Call”) in new stack
— Executing [s-incoming@sub-setup-call-type:2] Set(“IAX2/mexico-4904”, “__CALL_TYPE=2”) in new stack
— Executing [s-incoming@sub-setup-call-type:3] Return(“IAX2/mexico-4904”, “”) in new stack
— Executing [s@sub-setup-call-type:4] Set(“IAX2/mexico-4904”, “__CALL_TYPE_CONFIGURED=yes”) in new stack
— Executing [s@sub-setup-call-type:5] Set(“IAX2/mexico-4904”, “CDR(calltype)=2”) in new stack
— Executing [s@sub-setup-call-type:6] Return(“IAX2/mexico-4904”, “”) in new stack
— Executing [2001@default-trunk:4] Goto(“IAX2/mexico-4904”, “incoming-calls,2001,1”) in new stack
— Goto (incoming-calls,2001,1)
— Channel ‘IAX2/mexico-4904’ sent to invalid extension: context,exten,priority=incoming-calls,2001,1
— Executing [i@incoming-calls:1] NoCDR(“IAX2/mexico-4904”, “”) in new stack
— Executing [i@incoming-calls:2] Goto(“IAX2/mexico-4904”, “invalid-dest,s,1”) in new stack
— Goto (invalid-dest,s,1)
— Executing [s@invalid-dest:1] NoOp(“IAX2/mexico-4904”, “Invalid Route to Dial”) in new stack
— Executing [s@invalid-dest:2] Playback(“IAX2/mexico-4904”, “im-sorry&no-route-exists-to-dest&vm-goodbye”) in new stack
— Playing ‘im-sorry.ulaw’ (language ‘en’)
— Playing ‘no-route-exists-to-dest.ulaw’ (language ‘en’)
— Playing ‘vm-goodbye.ulaw’ (language ‘en’)
— Executing [s@invalid-dest:3] Hangup(“IAX2/mexico-4904”, “”) in new stack
== Spawn extension (invalid-dest, s, 3) exited non-zero on ‘IAX2/mexico-4904’
— Hungup ‘IAX2/mexico-4904’
srv-a*CLI>

Or another Example with Call that I need to Outgoing for local E1 Trunk:

— Accepting AUTHENTICATED call from 192.168.132.250:4569:
— > requested format = g729,
— > requested prefs = (g729),
— > actual format = g729,
— > host prefs = (g729),
— > priority = caller
— Executing [94422424776@default-trunk:1] Set(“IAX2/mexico-12425”, “__INCOMING_CALLERID=”Luigi Co” “) in new stack
— Executing [94422424776@default-trunk:2] Gosub(“IAX2/mexico-12425”, “sub-check-blacklist,s,1(777990c1c86f43b6,3117)”) in new stack
— Executing [s@sub-check-blacklist:1] NoOp(“IAX2/mexico-12425”, “Testing if 3117 is in Black List”) in new stack
— Executing [s@sub-check-blacklist:2] GotoIf(“IAX2/mexico-12425”, “0?banned”) in new stack
— Executing [s@sub-check-blacklist:3] Return(“IAX2/mexico-12425”, “”) in new stack
— Executing [94422424776@default-trunk:3] Gosub(“IAX2/mexico-12425”, “sub-setup-call-type,s,1(incoming)”) in new stack
— Executing [s@sub-setup-call-type:1] NoOp(“IAX2/mexico-12425”, “Determinating Call Type”) in new stack
— Executing [s@sub-setup-call-type:2] GotoIf(“IAX2/mexico-12425”, “0?return”) in new stack
— Executing [s@sub-setup-call-type:3] Gosub(“IAX2/mexico-12425”, “s-incoming,1()”) in new stack
— Executing [s-incoming@sub-setup-call-type:1] NoOp(“IAX2/mexico-12425”, “Incoming Call”) in new stack
— Executing [s-incoming@sub-setup-call-type:2] Set(“IAX2/mexico-12425”, “__CALL_TYPE=2”) in new stack
— Executing [s-incoming@sub-setup-call-type:3] Return(“IAX2/mexico-12425”, “”) in new stack
— Executing [s@sub-setup-call-type:4] Set(“IAX2/mexico-12425”, “__CALL_TYPE_CONFIGURED=yes”) in new stack
— Executing [s@sub-setup-call-type:5] Set(“IAX2/mexico-12425”, “CDR(calltype)=2”) in new stack
— Executing [s@sub-setup-call-type:6] Return(“IAX2/mexico-12425”, “”) in new stack
— Executing [94422424776@default-trunk:4] Goto(“IAX2/mexico-12425”, “incoming-calls,94422424776,1”) in new stack
— Goto (incoming-calls,94422424776,1)
— Channel ‘IAX2/mexico-12425’ sent to invalid extension: context,exten,priority=incoming-calls,94422424776,1
— Executing [i@incoming-calls:1] NoCDR(“IAX2/mexico-12425”, “”) in new stack
— Executing [i@incoming-calls:2] Goto(“IAX2/mexico-12425”, “invalid-dest,s,1”) in new stack
— Goto (invalid-dest,s,1)
— Executing [s@invalid-dest:1] NoOp(“IAX2/mexico-12425”, “Invalid Route to Dial”) in new stack
— Executing [s@invalid-dest:2] Playback(“IAX2/mexico-12425”, “im-sorry&no-route-exists-to-dest&vm-goodbye”) in new stack
— Playing ‘im-sorry.ulaw’ (language ‘en’)
— Playing ‘no-route-exists-to-dest.ulaw’ (language ‘en’)
— Playing ‘vm-goodbye.ulaw’ (language ‘en’)
— Executing [s@invalid-dest:3] Hangup(“IAX2/mexico-12425”, “”) in new stack
== Spawn extension (invalid-dest, s, 3) exited non-zero on ‘IAX2/mexico-12425’
— Hungup ‘IAX2/mexico-12425’

1 Answers
Eyal OrenEyal Oren Staff answered 4 years ago
Hi Hector
Please note that call from trunks will use the Class Of Service which defined on the trunk, by default, all trunks class of service are Trunk Default, which means that call will flow to an inbound route.
In case you need extension ( Isabell ) <==>any route ( Xorcom ), please set on the trunk class of service which can support it.
My advice to you is to create a class of service that will have privileges the needed call patterns and to assign that class to the IAX2 trunk.