SOLVED Raspberry Pi Trunk to PIAF Green/Incredible PBX

Tony Bui

Member
Joined
Nov 9, 2013
Messages
33
Reaction score
1
I have an IAX trunk between the two machines, able to make a call from the raspberry Pi to the PIAF green dialing a prefix and internal 3 digit extension. However, I can't make the same call from the PIAF Green machine to the Raspberry Pi using the same convention prefix and 3 digit extension. The Asterisk CLI shows the Raspberry Pi hanging up on the connection coming from the PIAF green machine.

The log file showing the rejection is shown below:
-- Executing [s@macro-dialout-trunk:22] Dial("SIP/103-0000003b", "IAX2/raspi-main/702,300,Tt") in new stack
-- Called IAX2/raspi-main/702
-- Hungup 'IAX2/raspi-main-14343'

The log file showing the successful call from the Raspberry Pi to the PIAF Green is shown below:

-- Executing [s@macro-dialout-trunk:22] Dial("SIP/702-00000133", "IAX2/incrediblepbx/100,300,") in new stack
-- Called IAX2/incrediblepbx/100
-- Call accepted by xxx.xxx.xxx.xxx (format ulaw)
-- Format for call is (ulaw)
-- IAX2/incrediblepbx-12550 is ringing

Anybody have any thoughts on why I can't make this call from the PIAF Green/Incredible PBX machine to the Raspberry Pi?
 
Anything relevant on the other side of the logs?
 
pretty much the same for both calls except for the hang up and the ring scenario. No logs show up in the raspi on why it hangs up.

Here's more of the logs before the successful call and hung call


Code:
successful call log from Raspi to PIAF
-- Executing [s@macro-dialout-trunk:13] Set("SIP/702-00000133", "OUTNUM=100") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/702-00000133", "custom=IAX2/incrediblepbx") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/702-00000133", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/702-00000133", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/702-00000133", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/702-00000133", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/702-00000133", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/702-00000133", "1?Set(CONNECTEDLINE(num,i)=100)") in new stack
-- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/702-00000133", "1?Set(CONNECTEDLINE(name,i)=CID:702)") in new stack
-- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/702-00000133", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:22] Dial("SIP/702-00000133", "IAX2/incrediblepbx/100,300,") in new stack
 
unsuccessful call log from PIAF/Incred PBX to Raspi
 
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/103-0000000c", "0?sub-flp-5,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/103-0000000c", "OUTNUM=702") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/103-0000000c", "custom=IAX2/raspi-main") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/103-0000000c", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/103-0000000c", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/103-0000000c", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] NoOp("SIP/103-0000000c", "*** 702 ***") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:2] Set("SIP/103-0000000c", "num2find=702") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:3] Set("SIP/103-0000000c", "OrigCID=103") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:4] Set("SIP/103-0000000c", "OrigCNAM=Tony Bui Ipad Bria") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:5] Set("SIP/103-0000000c", "CALLERID(num)=702") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:6] Set("SIP/103-0000000c", "CURLOPT(httptimeout)=7") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:7] Set("SIP/103-0000000c", "lookupcid=702") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:8] Set("SIP/103-0000000c", "CALLERID(name)=Tony Bui Ipad Bria") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:9] Set("SIP/103-0000000c", "lookupcid=") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:10] Set("SIP/103-0000000c", "CALLERID(name)=") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:11] NoOp("SIP/103-0000000c", "*** ***") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:12] Set("SIP/103-0000000c", "CDR(accountcode,r)=") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:13] Set("SIP/103-0000000c", "CONNECTEDLINE(num,i)=702") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:14] Set("SIP/103-0000000c", "CONNECTEDLINE(name,i)=") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:15] Set("SIP/103-0000000c", "CALLERID(num)=103") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:16] Set("SIP/103-0000000c", "CALLERID(name)=Tony Bui Ipad Bria") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:17] MacroExit("SIP/103-0000000c", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/103-0000000c", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/103-0000000c", "0?Set(CONNECTEDLINE(num,i)=702)") in new stack
-- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/103-0000000c", "0?Set(CONNECTEDLINE(name,i)=CID:103)") in new stack
-- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/103-0000000c", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:22] Dial("SIP/103-0000000c", "IAX2/raspi-main/702,300,Tt") in new stack
-- Called IAX2/raspi-main/702
[2013-12-23 01:01:24] WARNING[28069]: chan_iax2.c:3552 __attempt_transmit: Max retries exceeded to host xxx.xxx.xxx.xxx on IAX2/raspi-main-1494 (type = 6, subclass = 1, ts=4, seqno=0)
-- Hungup 'IAX2/raspi-main-1494'
 
For ease of reference, here is Eugene's spreadsheet for interconnecting servers with IAX2:

BcQcC_lCQAAJxN1.jpg:large
 

Members online

No members online now.

Forum statistics

Threads
26,688
Messages
174,412
Members
20,259
Latest member
Fadeek86
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