Incrediable PBX 1.8 - IAX trunk asistance

lowno

Guru
Joined
Feb 18, 2009
Messages
125
Reaction score
8
I tried searching for an answer site:http://pbxinaflash.com/forum iax trunk
but didn't find an answer.

I had this withing on the green machine, but am switching everything out for PIAF and still am getting used to some of the settings in the Incredible PBX 1.8.

I am trying to connect another asterisk box via IAX and have it dial put through the PIAF box. I have my trunks setup just fine. But when I try to place a call from the asterisk box, PIAF thinks I am dialing a DID on that box instead of placing the outbound call. It is probably some silly little setting, most likely the context. Here is my trunk settings on the PIAF:

type=peer
secret=asterisk
qualify=yes
permit=0.0.0.0/0.0.0.0
host=dynamic
disallow=all
context=from-internal
auth=plaintext
allow=ulaw

[2010-11-04 10:11:39] VERBOSE[16207] chan_iax2.c: -- Accepting UNAUTHENTICATED call from 192.168.10.58:
> requested format = ulaw,
> requested prefs = (ulaw),
> actual format = ulaw,
> host prefs = (ulaw|alaw|gsm),
> priority = mine
[2010-11-04 10:11:39] VERBOSE[6665] pbx.c: -- Executing [7145555555@from-trunk:1] Set("IAX2/asterisk-1073", "__FROM_DID=7145555555") in new stack
[2010-11-04 10:11:39] VERBOSE[6665] pbx.c: -- Executing [7145555555@from-trunk:2] NoOp("IAX2/asterisk-1073", "Received an unknown call with DID set to 7145555555") in new stack
[2010-11-04 10:11:39] VERBOSE[6665] pbx.c: -- Executing [7145555555@from-trunk:3] Goto("IAX2/asterisk-1073", "s,a2") in new stack
[2010-11-04 10:11:39] VERBOSE[6665] pbx.c: -- Goto (from-trunk,s,2)
[2010-11-04 10:11:39] VERBOSE[6665] pbx.c: -- Executing [s@from-trunk:2] Answer("IAX2/asterisk-1073", "") in new stack
[2010-11-04 10:11:40] VERBOSE[6665] pbx.c: -- Executing [s@from-trunk:3] Wait("IAX2/asterisk-1073", "2") in new stack
[2010-11-04 10:11:42] VERBOSE[6665] pbx.c: -- Executing [s@from-trunk:4] Playback("IAX2/asterisk-1073", "ss-noservice") in new stack
[2010-11-04 10:11:42] VERBOSE[6665] file.c: -- <IAX2/asterisk-1073> Playing 'ss-noservice.gsm' (language 'en')
[2010-11-04 10:11:45] VERBOSE[6665] pbx.c: == Spawn extension (from-trunk, s, 4) exited non-zero on 'IAX2/asterisk-1073'
[2010-11-04 10:11:45] VERBOSE[6665] pbx.c: -- Executing [h@from-trunk:1] Macro("IAX2/asterisk-1073", "hangupcall,") in new stack
[2010-11-04 10:11:45] VERBOSE[6665] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("IAX2/asterisk-1073", "1?skiprg") in new stack
[2010-11-04 10:11:45] VERBOSE[6665] pbx.c: -- Goto (macro-hangupcall,s,4)
[2010-11-04 10:11:45] VERBOSE[6665] pbx.c: -- Executing [s@macro-hangupcall:4] GotoIf("IAX2/asterisk-1073", "1?skipblkvm") in new stack
[2010-11-04 10:11:45] VERBOSE[6665] pbx.c: -- Goto (macro-hangupcall,s,7)
[2010-11-04 10:11:45] VERBOSE[6665] pbx.c: -- Executing [s@macro-hangupcall:7] GotoIf("IAX2/asterisk-1073", "1?theend") in new stack
[2010-11-04 10:11:45] VERBOSE[6665] pbx.c: -- Goto (macro-hangupcall,s,9)
[2010-11-04 10:11:45] VERBOSE[6665] pbx.c: -- Executing [s@macro-hangupcall:9] Hangup("IAX2/asterisk-1073", "") in new stack
[2010-11-04 10:11:45] VERBOSE[6665] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'IAX2/asterisk-1073' in macro 'hangupcall'
[2010-11-04 10:11:45] VERBOSE[6665] pbx.c: == Spawn extension (from-trunk, h, 1) exited non-zero on 'IAX2/asterisk-1073'
[2010-11-04 10:11:45] VERBOSE[6665] chan_iax2.c: -- Hungup 'IAX2/asterisk-1073'
[2010-11-04 10:11:59] VERBOSE[6666] manager.c: == Manager 'admin' logged on from 127.0.0.1

I change the phone number in the output here as to not publish it in a public forum.

Thanks for any help.
 
Be sure the outbound route to your other box appears above the other outbound routes. They are dialed in order from top to bottom. :idea:
 
Thanks for the response.

The asterisk box is sending the call to PIAF just fine, but instead of PIAF placing the call via its outbound trunks based in its outbound routes, it thinks its a call to PIAF. And since I don't have an inbound route for the number dialed on PIAF it is playing the no service message instead of placing the call. The behavior I am seeking is for PIAF to place the call out.

Thanks
 
Ahh, the path of least resistance. Ended up making it a SIP trunk instead and now all is good in the world.
 
type=peer
secret=asterisk
qualify=yes
permit=0.0.0.0/0.0.0.0
host=dynamic
disallow=all
context=from-internal
auth=plaintext
allow=ulaw

I would change context=from-internal to from-trunk
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top