Dial plan for two servers connected using IAX

Discussion in 'General' started by MST, Jan 21, 2010.

  1. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    Hello all,

    Here is my situation. I have just conected Trixbox with Elastix using IAX2 trunk in VPN trunk:

    Trixbox
    voip/voip 192.168.9.100 (S) 255.255.255.255 4569 OK (166 ms)
    Elastix
    voip/voip 192.168.1.200 (S) 255.255.255.255 4569 (T) OK (175 ms)

    So the IAX trunk is up. The problem starts here: both servers have the same extensions; 1XX in A and 1XX in B. How can I do that to make calls from server A to server B using that IAX2 trunk. If I dial 1XX any extension on current server rings, so I have to show somehow Elastix or Trixbox to show by dialing extra digit in front of it. I thought I can place in dial plan for example 6|1XX and choosing IAX2 trunk as a default trunk for that but it does not work. Could you please advice what shoud I do or any existing guides?

    Another question is there any difference between IAX2 Trixbox and Elastix?

    Thank You for any help. MST
     
  2. Siu

    Siu

    Joined:
    Jan 15, 2010
    Messages:
    30
    Likes Received:
    0
    it is easy
    in outbound route dail patterns add
    6|.

    you call remote is 61xx
     
  3. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
  4. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    OK I think I have done everythink ok but when I dial 1|1XX and this should pick up IAX trunk and it does but I still have "All Circuits are busy now"...

    IAX trunk is up:
    voip/voip 192.168.9.100 (S) 255.255.255.255 4569 OK (164 ms)

    == Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/121-b77055c0' in macro 'outisbusy'
    == Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/121-b77055c0'
    -- Executing [5101@from-internal:1] Macro("SIP/121-b77055c0", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/121-b77055c0", "AMPUSER=121") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/121-b77055c0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/121-b77055c0", "1|Set|REALCALLERIDNUM=121") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/121-b77055c0", "AMPUSER=121") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/121-b77055c0", "AMPUSERCIDNAME=First Last") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/121-b77055c0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/121-b77055c0", "AMPUSERCID=121") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/121-b77055c0", "CALLERID(all)="First Last" <121>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/121-b77055c0", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/121-b77055c0", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("SIP/121-b77055c0", "Using CallerID "First Last" <121>") in new stack
    -- Executing [5101@from-internal:2] Set("SIP/121-b77055c0", "_NODEST=") in new stack
    -- Executing [5101@from-internal:3] Macro("SIP/121-b77055c0", "record-enable|121|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/121-b77055c0", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/121-b77055c0", "recordingcheck|20100121-162031|1264087231.727") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
    recordingcheck|20100121-162031|1264087231.727: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] MacroExit("SIP/121-b77055c0", "") in new stack
    -- Executing [5101@from-internal:4] Macro("SIP/121-b77055c0", "dialout-trunk|3|101||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/121-b77055c0", "DIAL_TRUNK=3") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/121-b77055c0", "0?sub-pincheck|s|1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/121-b77055c0", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/121-b77055c0", "DIAL_NUMBER=101") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/121-b77055c0", "DIAL_TRUNK_OPTIONS=trwW") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/121-b77055c0", "OUTBOUND_GROUP=OUT_3") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/121-b77055c0", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/121-b77055c0", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/121-b77055c0", "DIAL_TRUNK_OPTIONS=wW") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/121-b77055c0", "outbound-callerid|3") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/121-b77055c0", "0|SetCallerPres|") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/121-b77055c0", "0|Set|REALCALLERIDNUM=121") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/121-b77055c0", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/121-b77055c0", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/121-b77055c0", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/121-b77055c0", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/121-b77055c0", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/121-b77055c0", "0|Set|CALLERID(all)=") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/121-b77055c0", "0|Set|CALLERID(all)=") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/121-b77055c0", "0|SetCallerPres|prohib_passed_screen") in new stack
    -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/121-b77055c0", "0|AGI|fixlocalprefix") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/121-b77055c0", "OUTNUM=101") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/121-b77055c0", "custom=IAX2/voip") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/121-b77055c0", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)wW") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/121-b77055c0", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/121-b77055c0", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/121-b77055c0", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/121-b77055c0", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/121-b77055c0", "IAX2/voip/101|300|wW") in new stack
    -- Called voip/101
    -- Hungup 'IAX2/voip-3240'
    == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:20] Goto("SIP/121-b77055c0", "s-CHANUNAVAIL|1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/121-b77055c0", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/121-b77055c0", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
    -- Executing [5101@from-internal:5] Macro("SIP/121-b77055c0", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/121-b77055c0", "all-circuits-busy-now|noanswer") in new stack
    -- <SIP/121-b77055c0> Playing 'all-circuits-busy-now' (language 'en')
    == Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/121-b77055c0' in macro 'outisbusy'
    == Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/121-b77055c0'

    OUTBOUND ROUTE: 2XXX and 5|1XX


    Here is my IAX setup:
    Trunk Name: whatever
    PEER:
    username=voip
    type=peer
    secret=password
    qualify=yes
    host=192.168.9.100
    context=from-internal
    trunk=yes

    User Context: whatever

    type=user
    secret=password
    host=192.168.9.100
    context=from-internal
    disallow=all
    allow=gsm

    When I called the extensions 2000 that is on the other server I have:

    -- Executing [s@macro-record-enable:5] MacroExit("SIP/121-b773ced0", "") in new stack
    -- Executing [2000@from-internal:4] Macro("SIP/121-b773ced0", "dialout-trunk|3|2000||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/121-b773ced0", "DIAL_TRUNK=3") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/121-b773ced0", "0?sub-pincheck|s|1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/121-b773ced0", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/121-b773ced0", "DIAL_NUMBER=2000") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/121-b773ced0", "DIAL_TRUNK_OPTIONS=trwW") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/121-b773ced0", "OUTBOUND_GROUP=OUT_3") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/121-b773ced0", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/121-b773ced0", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/121-b773ced0", "DIAL_TRUNK_OPTIONS=wW") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/121-b773ced0", "outbound-callerid|3") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/121-b773ced0", "0|SetCallerPres|") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/121-b773ced0", "0|Set|REALCALLERIDNUM=121") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/121-b773ced0", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/121-b773ced0", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/121-b773ced0", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/121-b773ced0", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/121-b773ced0", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/121-b773ced0", "0|Set|CALLERID(all)=") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/121-b773ced0", "0|Set|CALLERID(all)=") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/121-b773ced0", "0|SetCallerPres|prohib_passed_screen") in new stack
    -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/121-b773ced0", "0|AGI|fixlocalprefix") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/121-b773ced0", "OUTNUM=2000") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/121-b773ced0", "custom=IAX2/voip") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/121-b773ced0", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)wW") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/121-b773ced0", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/121-b773ced0", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/121-b773ced0", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/121-b773ced0", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/121-b773ced0", "IAX2/voip/2000|300|wW") in new stack
    -- Called voip/2000
    -- Hungup 'IAX2/voip-6850'
    == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:20] Goto("SIP/121-b773ced0", "s-CHANUNAVAIL|1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/121-b773ced0", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/121-b773ced0", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
    -- Executing [2000@from-internal:5] Macro("SIP/121-b773ced0", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/121-b773ced0", "all-circuits-busy-now|noanswer") in new stack
    -- <SIP/121-b773ced0> Playing 'all-circuits-busy-now' (language 'en')
    == Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/121-b773ced0' in macro 'outisbusy'
    == Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/121-b773ced0'

    I don't understand why I have that message ..... Where should I start looking at?

    Thank You for any hints. MST
     
  5. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    I have just setup fresh installation in one LAN and using the same setup I have the same problem.

    Trixbox 2.6.2.3 IAX2 Elastix 1.6.13
    2XXX 3XXX

    and the same problem IS there any non comparability between those Asterisk based platforms using IAX2 trunk.

    Please advice.

    THX
     
  6. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
  7. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    Thank You for reply. I have tried to play with requirecalltoken=auto /yes/no on both servers; however, no luck so far.

    I have enabled IAX2 debug and IAX2 trunk debug and have:

    Code:
    trixbox1*CLI> iax2 set debug trunk
    IAX2 Trunk Debug Requested
        -- Executing [9129@from-internal:1] Macro("SIP/123-b761cbe0", "user-callerid|SKIPTTL|") in new stack
        -- Executing [s@macro-user-callerid:1] Set("SIP/123-b761cbe0", "AMPUSER=123") in new stack
        -- Executing [s@macro-user-callerid:2] GotoIf("SIP/123-b761cbe0", "0?report") in new stack
        -- Executing [s@macro-user-callerid:3] ExecIf("SIP/123-b761cbe0", "1|Set|REALCALLERIDNUM=123") in new stack
        -- Executing [s@macro-user-callerid:4] Set("SIP/123-b761cbe0", "AMPUSER=123") in new stack
        -- Executing [s@macro-user-callerid:5] Set("SIP/123-b761cbe0", "AMPUSERCIDNAME=USER 1 USER 1") in new stack
        -- Executing [s@macro-user-callerid:6] GotoIf("SIP/123-b761cbe0", "0?report") in new stack
        -- Executing [s@macro-user-callerid:7] Set("SIP/123-b761cbe0", "AMPUSERCID=123") in new stack
        -- Executing [s@macro-user-callerid:8] Set("SIP/123-b761cbe0", "CALLERID(all)="USER 1 USER 1" <123>") in new stack
        -- Executing [s@macro-user-callerid:9] ExecIf("SIP/123-b761cbe0", "0|Set|CHANNEL(language)=") in new stack
        -- Executing [s@macro-user-callerid:10] GotoIf("SIP/123-b761cbe0", "1?continue") in new stack
        -- Goto (macro-user-callerid,s,19)
        -- Executing [s@macro-user-callerid:19] NoOp("SIP/123-b761cbe0", "Using CallerID "USER 1 USER 1" <123>") in new stack
        -- Executing [9129@from-internal:2] Set("SIP/123-b761cbe0", "_NODEST=") in new stack
        -- Executing [9129@from-internal:3] Macro("SIP/123-b761cbe0", "record-enable|123|OUT|") in new stack
        -- Executing [s@macro-record-enable:1] GotoIf("SIP/123-b761cbe0", "1?check") in new stack
        -- Goto (macro-record-enable,s,4)
        -- Executing [s@macro-record-enable:4] AGI("SIP/123-b761cbe0", "recordingcheck|20100121-202209|1264101729.61") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
      recordingcheck|20100121-202209|1264101729.61: Outbound recording not enabled
        -- AGI Script recordingcheck completed, returning 0
        -- Executing [s@macro-record-enable:5] MacroExit("SIP/123-b761cbe0", "") in new stack
        -- Executing [9129@from-internal:4] Macro("SIP/123-b761cbe0", "dialout-trunk|1|129|") in new stack
        -- Executing [s@macro-dialout-trunk:1] Set("SIP/123-b761cbe0", "DIAL_TRUNK=1") in new stack
        -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/123-b761cbe0", "0?sub-pincheck|s|1") in new stack
        -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/123-b761cbe0", "1?disabletrunk|1") in new stack
        -- Goto (macro-dialout-trunk,disabletrunk,1)
        -- Executing [disabletrunk@macro-dialout-trunk:1] NoOp("SIP/123-b761cbe0", "TRUNK: ZAP/g0 DISABLED - falling through to next trunk") in new stack
        -- Executing [9129@from-internal:5] Macro("SIP/123-b761cbe0", "outisbusy|") in new stack
        -- Executing [s@macro-outisbusy:1] Playback("SIP/123-b761cbe0", "all-circuits-busy-now|noanswer") in new stack
        -- <SIP/123-b761cbe0> Playing 'all-circuits-busy-now' (language 'en')
    Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
       Timestamp: 00018ms  SCall: 04379  DCall: 00000 [192.168.9.100:4569]
    Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG
       Timestamp: 00018ms  SCall: 00001  DCall: 04379 [192.168.9.100:4569]
    Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK
       Timestamp: 00018ms  SCall: 04379  DCall: 00001 [192.168.9.100:4569]
        -- Executing [s@macro-outisbusy:2] Playback("SIP/123-b761cbe0", "pls-try-call-later|noanswer") in new stack
        -- <SIP/123-b761cbe0> Playing 'pls-try-call-later' (language 'en')
      == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/123-b761cbe0' in macro 'outisbusy'
      == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/123-b761cbe0'
    Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
       Timestamp: 00016ms  SCall: 02212  DCall: 00000 [192.168.9.100:4569]
    trixbox1*CLI>
    Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: ACK
       Timestamp: 00199ms  SCall: 02212  DCall: 00001 [192.168.9.100:4569]
    trixbox1*CLI>
    [trixbox1.localdomain ~]# asterisk -rvvv
    Asterisk 1.4.22, Copyright (C) 1999 - 2008 Digium, Inc. and others.
    Created by Mark Spencer <markster@digium.com>
    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
    Connected to Asterisk 1.4.22 currently running on trixbox1 (pid = 25013)
    Verbosity is at least 10
    Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
       Timestamp: 00013ms  SCall: 02135  DCall: 00000 [192.168.9.100:4569]
    Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG
       Timestamp: 00013ms  SCall: 00001  DCall: 02135 [192.168.9.100:4569]
    Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK
       Timestamp: 00013ms  SCall: 02135  DCall: 00001 [192.168.9.100:4569]
    Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
       Timestamp: 00003ms  SCall: 00448  DCall: 00000 [192.168.9.100:4569]
    
    Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: ACK
       Timestamp: 00173ms  SCall: 00448  DCall: 00001 [192.168.9.100:4569]
    Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
       Timestamp: 00008ms  SCall: 16273  DCall: 00000 [192.168.9.100:4569]
    Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG
       Timestamp: 00008ms  SCall: 00001  DCall: 16273 [192.168.9.100:4569]
    Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK
       Timestamp: 00008ms  SCall: 16273  DCall: 00001 [192.168.9.100:4569]
        -- Executing [901148662518462@from-internal:1] Macro("SIP/1101-b7613f98", "user-callerid|SKIPTTL|") in new stack
        -- Executing [s@macro-user-callerid:1] Set("SIP/1101-b7613f98", "AMPUSER=1101") in new stack
        -- Executing [s@macro-user-callerid:2] GotoIf("SIP/1101-b7613f98", "0?report") in new stack
        -- Executing [s@macro-user-callerid:3] ExecIf("SIP/1101-b7613f98", "1|Set|REALCALLERIDNUM=1101") in new stack
        -- Executing [s@macro-user-callerid:4] Set("SIP/1101-b7613f98", "AMPUSER=1101") in new stack
        -- Executing [s@macro-user-callerid:5] Set("SIP/1101-b7613f98", "AMPUSERCIDNAME=USER USER") in new stack
        -- Executing [s@macro-user-callerid:6] GotoIf("SIP/1101-b7613f98", "0?report") in new stack
        -- Executing [s@macro-user-callerid:7] Set("SIP/1101-b7613f98", "AMPUSERCID=1101") in new stack
        -- Executing [s@macro-user-callerid:8] Set("SIP/1101-b7613f98", "CALLERID(all)="USER USER" <1101>") in new stack
        -- Executing [s@macro-user-callerid:9] ExecIf("SIP/1101-b7613f98", "0|Set|CHANNEL(language)=") in new stack
        -- Executing [s@macro-user-callerid:10] GotoIf("SIP/1101-b7613f98", "1?continue") in new stack
        -- Goto (macro-user-callerid,s,19)
        -- Executing [s@macro-user-callerid:19] NoOp("SIP/1101-b7613f98", "Using CallerID "USER USER" <1101>") in new stack
        -- Executing [901148662518462@from-internal:2] Set("SIP/1101-b7613f98", "_NODEST=") in new stack
        -- Executing [901148662518462@from-internal:3] Macro("SIP/1101-b7613f98", "record-enable|1101|OUT|") in new stack
        -- Executing [s@macro-record-enable:1] GotoIf("SIP/1101-b7613f98", "1?check") in new stack
        -- Goto (macro-record-enable,s,4)
        -- Executing [s@macro-record-enable:4] AGI("SIP/1101-b7613f98", "recordingcheck|20100121-202413|1264101853.62") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
      recordingcheck|20100121-202413|1264101853.62: Outbound recording not enabled
        -- AGI Script recordingcheck completed, returning 0
        -- Executing [s@macro-record-enable:5] MacroExit("SIP/1101-b7613f98", "") in new stack
        -- Executing [901148662518462@from-internal:4] Macro("SIP/1101-b7613f98", "dialout-trunk|1|01148662518462|") in new stack
        -- Executing [s@macro-dialout-trunk:1] Set("SIP/1101-b7613f98", "DIAL_TRUNK=1") in new stack
        -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/1101-b7613f98", "0?sub-pincheck|s|1") in new stack
        -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1101-b7613f98", "1?disabletrunk|1") in new stack
        -- Goto (macro-dialout-trunk,disabletrunk,1)
        -- Executing [disabletrunk@macro-dialout-trunk:1] NoOp("SIP/1101-b7613f98", "TRUNK: ZAP/g0 DISABLED - falling through to next trunk") in new stack
        -- Executing [901148662518462@from-internal:5] Macro("SIP/1101-b7613f98", "outisbusy|") in new stack
        -- Executing [s@macro-outisbusy:1] Playback("SIP/1101-b7613f98", "all-circuits-busy-now|noanswer") in new stack
        -- <SIP/1101-b7613f98> Playing 'all-circuits-busy-now' (language 'en')
        -- Executing [s@macro-outisbusy:2] Playback("SIP/1101-b7613f98", "pls-try-call-later|noanswer") in new stack
        -- <SIP/1101-b7613f98> Playing 'pls-try-call-later' (language 'en')
        -- Executing [s@macro-outisbusy:3] Macro("SIP/1101-b7613f98", "hangupcall") in new stack
        -- Executing [s@macro-hangupcall:1] GotoIf("SIP/1101-b7613f98", "1?skiprg") in new stack
        -- Goto (macro-hangupcall,s,4)
        -- Executing [s@macro-hangupcall:4] GotoIf("SIP/1101-b7613f98", "1?skipblkvm") in new stack
        -- Goto (macro-hangupcall,s,7)
        -- Executing [s@macro-hangupcall:7] GotoIf("SIP/1101-b7613f98", "1?theend") in new stack
        -- Goto (macro-hangupcall,s,9)
        -- Executing [s@macro-hangupcall:9] Hangup("SIP/1101-b7613f98", "") in new stack
      == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/1101-b7613f98' in macro 'hangupcall'
      == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/1101-b7613f98' in macro 'outisbusy'
      == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/1101-b7613f98'
        -- Executing [901148662518462@from-internal:1] Macro("SIP/1101-b7615528", "user-callerid|SKIPTTL|") in new stack
        -- Executing [s@macro-user-callerid:1] Set("SIP/1101-b7615528", "AMPUSER=1101") in new stack
        -- Executing [s@macro-user-callerid:2] GotoIf("SIP/1101-b7615528", "0?report") in new stack
        -- Executing [s@macro-user-callerid:3] ExecIf("SIP/1101-b7615528", "1|Set|REALCALLERIDNUM=1101") in new stack
        -- Executing [s@macro-user-callerid:4] Set("SIP/1101-b7615528", "AMPUSER=1101") in new stack
        -- Executing [s@macro-user-callerid:5] Set("SIP/1101-b7615528", "AMPUSERCIDNAME=USER USER") in new stack
        -- Executing [s@macro-user-callerid:6] GotoIf("SIP/1101-b7615528", "0?report") in new stack
        -- Executing [s@macro-user-callerid:7] Set("SIP/1101-b7615528", "AMPUSERCID=1101") in new stack
        -- Executing [s@macro-user-callerid:8] Set("SIP/1101-b7615528", "CALLERID(all)="USER USER" <1101>") in new stack
        -- Executing [s@macro-user-callerid:9] ExecIf("SIP/1101-b7615528", "0|Set|CHANNEL(language)=") in new stack
        -- Executing [s@macro-user-callerid:10] GotoIf("SIP/1101-b7615528", "1?continue") in new stack
        -- Goto (macro-user-callerid,s,19)
        -- Executing [s@macro-user-callerid:19] NoOp("SIP/1101-b7615528", "Using CallerID "USER USER" <1101>") in new stack
        -- Executing [901148662518462@from-internal:2] Set("SIP/1101-b7615528", "_NODEST=") in new stack
        -- Executing [901148662518462@from-internal:3] Macro("SIP/1101-b7615528", "record-enable|1101|OUT|") in new stack
        -- Executing [s@macro-record-enable:1] GotoIf("SIP/1101-b7615528", "1?check") in new stack
        -- Goto (macro-record-enable,s,4)
        -- Executing [s@macro-record-enable:4] AGI("SIP/1101-b7615528", "recordingcheck|20100121-202435|1264101875.63") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
      recordingcheck|20100121-202435|1264101875.63: Outbound recording not enabled
        -- AGI Script recordingcheck completed, returning 0
        -- Executing [s@macro-record-enable:5] MacroExit("SIP/1101-b7615528", "") in new stack
        -- Executing [901148662518462@from-internal:4] Macro("SIP/1101-b7615528", "dialout-trunk|1|01148662518462|") in new stack
        -- Executing [s@macro-dialout-trunk:1] Set("SIP/1101-b7615528", "DIAL_TRUNK=1") in new stack
        -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/1101-b7615528", "0?sub-pincheck|s|1") in new stack
        -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1101-b7615528", "1?disabletrunk|1") in new stack
        -- Goto (macro-dialout-trunk,disabletrunk,1)
        -- Executing [disabletrunk@macro-dialout-trunk:1] NoOp("SIP/1101-b7615528", "TRUNK: ZAP/g0 DISABLED - falling through to next trunk") in new stack
        -- Executing [901148662518462@from-internal:5] Macro("SIP/1101-b7615528", "outisbusy|") in new stack
        -- Executing [s@macro-outisbusy:1] Playback("SIP/1101-b7615528", "all-circuits-busy-now|noanswer") in new stack
        -- <SIP/1101-b7615528> Playing 'all-circuits-busy-now' (language 'en')
    Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
       Timestamp: 00012ms  SCall: 01339  DCall: 00000 [192.168.9.100:4569]
    trixbox1*CLI>
    Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: ACK
       Timestamp: 00185ms  SCall: 01339  DCall: 00001 [192.168.9.100:4569]
        -- Executing [s@macro-outisbusy:2] Playback("SIP/1101-b7615528", "pls-try-call-later|noanswer") in new stack
        -- <SIP/1101-b7615528> Playing 'pls-try-call-later' (language 'en')
      == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/1101-b7615528' in macro 'outisbusy'
      == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/1101-b7615528'
    Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
       Timestamp: 00019ms  SCall: 09550  DCall: 00000 [192.168.9.100:4569]
    Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG
       Timestamp: 00019ms  SCall: 00001  DCall: 09550 [192.168.9.100:4569]
    Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK
       Timestamp: 00019ms  SCall: 09550  DCall: 00001 [192.168.9.100:4569]
    Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
       Timestamp: 00010ms  SCall: 05802  DCall: 00000 [192.168.9.100:4569]
    
    Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: ACK
       Timestamp: 00182ms  SCall: 05802  DCall: 00001 [192.168.9.100:4569]
    Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
       Timestamp: 00014ms  SCall: 04971  DCall: 00000 [192.168.9.100:4569]
    Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG
       Timestamp: 00014ms  SCall: 00001  DCall: 04971 [192.168.9.100:4569]
    Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK
       Timestamp: 00014ms  SCall: 04971  DCall: 00001 [192.168.9.100:4569]
    Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
       Timestamp: 00005ms  SCall: 02291  DCall: 00000 [192.168.9.100:4569]
    
    Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: ACK
       Timestamp: 00178ms  SCall: 02291  DCall: 00001 [192.168.9.100:4569]
    
    Elastix has 1.4.28 Asterisk and Trixbox has 1.4.22 Asterisk - I am pretty sure there is something that is not compatybile in these both versions.

    Any advice appreciate. Thank You
     
  8. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    Executing [disabletrunk@macro-dialout-trunk:1] NoOp("SIP/123-b7609890", "TRUNK: ZAP/g0 DISABLED - falling through to next trunk") in new stack
    -- Executing [9128@from-internal:5] Macro("SIP/123-b7609890", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/123-b7609890", "all-circuits-busy-now|noanswer") in new stack
    -- <SIP/123-b7609890> Playing 'all-circuits-busy-now' (language 'en')
    == Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/123-b7609890' in macro 'outisbusy'
    == Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/123-b7609890'



    Is that line "TRUNK: ZAP/g0 DISABLED - falling through to next trunk") in new stack ok ?
     
  9. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    There is one wired think -

    Call goes through IAX2 from Elastix to Trixbox but from Trixbox to Elastix not, pleaying message All Circuits Are busy now .....


    Anyone has similar problem??? I can't reinstall Trixbox since it is located in Europe, at least it is not easy.

    Please advice,

    Thank You
     
  10. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    what would be if I have

    server A and outgoing calls are 9|.

    server B using IAX2 so If I want to forward call throught IAX2 should I make dial plan from B to A like this: 9|9.
     
  11. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
  12. Siu

    Siu

    Joined:
    Jan 15, 2010
    Messages:
    30
    Likes Received:
    0
    First, your server B do not use 9 for outgoing, and server B outbound route dail patterns use 9. that is fine.
     
  13. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    OK I found the problem. I was given a right direction toward requirecalltoken=no and you were very close.

    When I opened iax_general_custom.conf in Elastix I found:

    calltokenoptional = 127.0.0.1/255.255.255.0 I don't understand why this code get there in fresh installation. This simply make it more complicated becasue even if you hook up another Elastix no one can use IAX2 trunk becasue simply
    calltokenoptional = 127.0.0.1/255.255.255.0 has mask 127.x.x.x

    Getting rid of that line from iax_general_custom.conf did not help and I don't know why BUT I wrote:
    calltokenoptional = 0.0.0.0/0.0.0.0
    maxcallnumbers = 16382

    And this worked.

    Cheers, MST
     

Share This Page