Hello,
I have the following configuration:
PBX 1:
- FreePBX 2.11.0.38
- Asterisk Ver. 11.11.0
- has its own trunks to my voice provider
PBX 2:
- FreePBX 2.11.0.38
- Asterisk Ver. 11.11.0
- has its own trunks to my voice provider
Both of them are connected by IAX and I can make internal calls without any problems.
What I would like is to use from PBX2 a voice trunk from my voice provider in PBX1.
I have setup the correct routes and the call goes from PBX2 thru PBX1’s trunk, and I can answer the call on my mobile. The problem is that the call gets dropped after 5-8 seconds.
Here is my log from PBX1:
[2014-08-13 11:13:48] VERBOSE[30760][C-000006af] pbx.c: -- Executing [s@macro-dialout-trunk:23] Dial("IAX2/System2-3770", "SIP/387XXXXXXX/061000000,300,Tt") in new stack
[2014-08-13 11:13:48] VERBOSE[30760][C-000006af] netsock2.c: == Using SIP RTP TOS bits 184
[2014-08-13 11:13:48] VERBOSE[30760][C-000006af] netsock2.c: == Using SIP RTP CoS mark 5
[2014-08-13 11:13:48] VERBOSE[30760][C-000006af] app_dial.c: -- Called SIP/387XXXXXXX/061000000
[2014-08-13 11:13:51] VERBOSE[30760][C-000006af] app_dial.c: -- SIP/387XXXXXXX-00000bd8 is making progress passing it to IAX2/System2-3770
[2014-08-13 11:13:54] VERBOSE[30760][C-000006af] app_dial.c: -- SIP/387XXXXXXX-00000bd8 answered IAX2/System2-3770
[2014-08-13 11:14:01] VERBOSE[30760][C-000006af] pbx.c: -- Executing [h@macro-dialout-trunk:1] Macro("IAX2/System2-3770", "hangupcall,") in new stack
[2014-08-13 11:14:01] VERBOSE[30760][C-000006af] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("IAX2/System2-3770", "1?theend") in new stack
[2014-08-13 11:14:01] VERBOSE[30760][C-000006af] pbx.c: -- Goto (macro-hangupcall,s,3)
[2014-08-13 11:14:01] VERBOSE[30760][C-000006af] pbx.c: -- Executing [s@macro-hangupcall:3] ExecIf("IAX2/System2-3770", "0?Set(CDR(recordingfile)=)") in new stack
[2014-08-13 11:14:01] VERBOSE[30760][C-000006af] pbx.c: -- Executing [s@macro-hangupcall:4] Hangup("IAX2/System2-3770", "") in new stack
[2014-08-13 11:14:01] VERBOSE[30760][C-000006af] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'IAX2/System2-3770' in macro 'hangupcall'
[2014-08-13 11:14:01] VERBOSE[30760][C-000006af] pbx.c: == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'IAX2/System2-3770'
[2014-08-13 11:14:01] VERBOSE[30760][C-000006af] app_macro.c: == Spawn extension (macro-dialout-trunk, s, 23) exited non-zero on 'IAX2/System2-3770' in macro 'dialout-trunk'
[2014-08-13 11:14:01] VERBOSE[30760][C-000006af] pbx.c: == Spawn extension (from-internal, 061000000, 6) exited non-zero on 'IAX2/System2-3770'
[2014-08-13 11:14:01] VERBOSE[30760][C-000006af] chan_iax2.c: -- Hungup 'IAX2/System2-3770'
I dont see any error on why my call should be dropped. I have tried this with several trunks on PBX1 (different providers) and the same happens. I have also tried to make a SIP connection instead of IAX between the two PBX and the happens.
All help is much appreciated.
Regards