QUESTION How to use g729 codec on iax2 trunk

silimms

New Member
Joined
Feb 18, 2016
Messages
23
Reaction score
1
Hello, I have 2 sip server,
1.Elastix ===> extension is 1XXX
2.Incredible pbx 13-12 ===>extension is 9XXX

When I use 1XXX call 9XXX, I use "asterisk -rvvvvvvvv"

I can see this log
Code:
Connected to Asterisk 11.15.0 currently running on pbx
  == Using SIP VIDEO TOS bits 136
  == Using SIP VIDEO CoS mark 6
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
  -- Executing [9803@from-internal:1] Macro("SIP/1802-000005e9", "user-callerid,LIMIT,EXTERNAL,") in new stack
  -- Executing [s@macro-user-callerid:1] Set("SIP/1802-000005e9", "TOUCH_MONITOR=1458295328.88150") in new stack
  -- Executing [s@macro-user-callerid:2] Set("SIP/1802-000005e9", "AMPUSER=1802") in new stack
  -- Executing [s@macro-user-callerid:3] GotoIf("SIP/1802-000005e9", "0?report") in new stack
  -- Executing [s@macro-user-callerid:4] ExecIf("SIP/1802-000005e9", "1?Set(REALCALLERIDNUM=1802)") in new stack
  -- Executing [s@macro-user-callerid:5] Set("SIP/1802-000005e9", "AMPUSER=1802") in new stack
  -- Executing [s@macro-user-callerid:6] GotoIf("SIP/1802-000005e9", "0?limit") in new stack
  -- Executing [s@macro-user-callerid:7] Set("SIP/1802-000005e9", "AMPUSERCIDNAME=Joy Hsieh") in new stack
  -- Executing [s@macro-user-callerid:8] GotoIf("SIP/1802-000005e9", "0?report") in new stack
  -- Executing [s@macro-user-callerid:9] Set("SIP/1802-000005e9", "AMPUSERCID=1802") in new stack
  -- Executing [s@macro-user-callerid:10] Set("SIP/1802-000005e9", "__DIAL_OPTIONS=tr") in new stack
  -- Executing [s@macro-user-callerid:11] Set("SIP/1802-000005e9", "CALLERID(all)="Joy Hsieh" <1802>") in new stack
  -- Executing [s@macro-user-callerid:12] GotoIf("SIP/1802-000005e9", "0?limit") in new stack
  -- Executing [s@macro-user-callerid:13] ExecIf("SIP/1802-000005e9", "1?Set(GROUP(concurrency_limit)=1802)") in new stack
  -- Executing [s@macro-user-callerid:14] ExecIf("SIP/1802-000005e9", "0?Set(CHANNEL(language)=)") in new stack
  -- Executing [s@macro-user-callerid:15] GotoIf("SIP/1802-000005e9", "1?continue") in new stack
  -- Goto (macro-user-callerid,s,28)
  -- Executing [s@macro-user-callerid:28] Set("SIP/1802-000005e9", "CALLERID(number)=1802") in new stack
  -- Executing [s@macro-user-callerid:29] Set("SIP/1802-000005e9", "CALLERID(name)=Joy Hsieh") in new stack
  -- Executing [s@macro-user-callerid:30] Set("SIP/1802-000005e9", "CDR(cnum)=1802") in new stack
  -- Executing [s@macro-user-callerid:31] Set("SIP/1802-000005e9", "CDR(cnam)=Joy Hsieh") in new stack
  -- Executing [s@macro-user-callerid:32] Set("SIP/1802-000005e9", "CHANNEL(language)=tw") in new stack
  -- Executing [9803@from-internal:2] Set("SIP/1802-000005e9", "MOHCLASS=default") in new stack
  -- Executing [9803@from-internal:3] Set("SIP/1802-000005e9", "_NODEST=") in new stack
  -- Executing [9803@from-internal:4] Gosub("SIP/1802-000005e9", "sub-record-check,s,1(out,9803,)") in new stack
  -- Executing [s@sub-record-check:1] Set("SIP/1802-000005e9", "REC_POLICY_MODE_SAVE=") in new stack
  -- Executing [s@sub-record-check:2] GotoIf("SIP/1802-000005e9", "1?check") in new stack
  -- Goto (sub-record-check,s,7)
  -- Executing [s@sub-record-check:7] Set("SIP/1802-000005e9", "__MON_FMT=wav") in new stack
  -- Executing [s@sub-record-check:8] GotoIf("SIP/1802-000005e9", "1?next") in new stack
  -- Goto (sub-record-check,s,11)
  -- Executing [s@sub-record-check:11] ExecIf("SIP/1802-000005e9", "0?Return()") in new stack
  -- Executing [s@sub-record-check:12] ExecIf("SIP/1802-000005e9", "0?Set(__REC_POLICY_MODE=)") in new stack
  -- Executing [s@sub-record-check:13] GotoIf("SIP/1802-000005e9", "0?out,1") in new stack
  -- Executing [s@sub-record-check:14] Set("SIP/1802-000005e9", "__REC_STATUS=INITIALIZED") in new stack
  -- Executing [s@sub-record-check:15] Set("SIP/1802-000005e9", "NOW=1458295328") in new stack
  -- Executing [s@sub-record-check:16] Set("SIP/1802-000005e9", "__DAY=18") in new stack
  -- Executing [s@sub-record-check:17] Set("SIP/1802-000005e9", "__MONTH=03") in new stack
  -- Executing [s@sub-record-check:18] Set("SIP/1802-000005e9", "__YEAR=2016") in new stack
  -- Executing [s@sub-record-check:19] Set("SIP/1802-000005e9", "__TIMESTR=20160318-180208") in new stack
  -- Executing [s@sub-record-check:20] Set("SIP/1802-000005e9", "__FROMEXTEN=1802") in new stack
  -- Executing [s@sub-record-check:21] Set("SIP/1802-000005e9", "__CALLFILENAME=out-9803-1802-20160318-180208-1458295328.88150") in new stack
  -- Executing [s@sub-record-check:22] Goto("SIP/1802-000005e9", "out,1") in new stack
  -- Goto (sub-record-check,out,1)
  -- Executing [out@sub-record-check:1] ExecIf("SIP/1802-000005e9", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
  -- Executing [out@sub-record-check:2] GosubIf("SIP/1802-000005e9", "0?record,1(exten,9803,1802)") in new stack
  -- Executing [out@sub-record-check:3] Return("SIP/1802-000005e9", "") in new stack
  -- Executing [9803@from-internal:5] Macro("SIP/1802-000005e9", "dialout-trunk,4,9803,,off") in new stack
  -- Executing [s@macro-dialout-trunk:1] Set("SIP/1802-000005e9", "DIAL_TRUNK=4") in new stack
  -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/1802-000005e9", "0?sub-pincheck,s,1()") in new stack
  -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1802-000005e9", "0?disabletrunk,1") in new stack
  -- Executing [s@macro-dialout-trunk:4] Set("SIP/1802-000005e9", "DIAL_NUMBER=9803") in new stack
  -- Executing [s@macro-dialout-trunk:5] Set("SIP/1802-000005e9", "DIAL_TRUNK_OPTIONS=tr") in new stack
  -- Executing [s@macro-dialout-trunk:6] Set("SIP/1802-000005e9", "OUTBOUND_GROUP=OUT_4") in new stack
  -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/1802-000005e9", "1?nomax") in new stack
  -- Goto (macro-dialout-trunk,s,9)
  -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/1802-000005e9", "0?skipoutcid") in new stack
  -- Executing [s@macro-dialout-trunk:10] Set("SIP/1802-000005e9", "DIAL_TRUNK_OPTIONS=") in new stack
  -- Executing [s@macro-dialout-trunk:11] Macro("SIP/1802-000005e9", "outbound-callerid,4") in new stack
  -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/1802-000005e9", "0?Set(CALLERPRES()=)") in new stack
  -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/1802-000005e9", "0?Set(REALCALLERIDNUM=1802)") in new stack
  -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/1802-000005e9", "1?normcid") in new stack
  -- Goto (macro-outbound-callerid,s,6)
  -- Executing [s@macro-outbound-callerid:6] Set("SIP/1802-000005e9", "USEROUTCID=") in new stack
  -- Executing [s@macro-outbound-callerid:7] Set("SIP/1802-000005e9", "EMERGENCYCID=") in new stack
  -- Executing [s@macro-outbound-callerid:8] Set("SIP/1802-000005e9", "TRUNKOUTCID=") in new stack
  -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/1802-000005e9", "1?trunkcid") in new stack
  -- Goto (macro-outbound-callerid,s,14)
  -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/1802-000005e9", "0?Set(CALLERID(all)=)") in new stack
  -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/1802-000005e9", "0?Set(CALLERID(all)=)") in new stack
  -- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/1802-000005e9", "0?Set(CALLERID(all)=)") in new stack
  -- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/1802-000005e9", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
  -- Executing [s@macro-outbound-callerid:18] Set("SIP/1802-000005e9", "CDR(outbound_cnum)=1802") in new stack
  -- Executing [s@macro-outbound-callerid:19] Set("SIP/1802-000005e9", "CDR(outbound_cnam)=Joy Hsieh") in new stack
  -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/1802-000005e9", "0?sub-flp-4,s,1()") in new stack
  -- Executing [s@macro-dialout-trunk:13] Set("SIP/1802-000005e9", "OUTNUM=9803") in new stack
  -- Executing [s@macro-dialout-trunk:14] Set("SIP/1802-000005e9", "custom=IAX2/elastix2incrediblepbx") in new stack
  -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/1802-000005e9", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
  -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/1802-000005e9", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack
  -- Executing [s@macro-dialout-trunk:17] Macro("SIP/1802-000005e9", "dialout-trunk-predial-hook,") in new stack
  -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/1802-000005e9", "") in new stack
  -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1802-000005e9", "0?bypass,1") in new stack
  -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/1802-000005e9", "1?Set(CONNECTEDLINE(num,i)=9803)") in new stack
  -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/1802-000005e9", "1?Set(CONNECTEDLINE(name,i)=CID:1802)") in new stack
  -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/1802-000005e9", "0?customtrunk") in new stack
  -- Executing [s@macro-dialout-trunk:22] Dial("SIP/1802-000005e9", "IAX2/elastix2incrediblepbx/9803,300,") in new stack
  -- Called IAX2/elastix2incrediblepbx/9803
  -- Call accepted by 192.168.0.250 (format g729)
  -- Format for call is (g729)
  -- IAX2/elastix2incrediblepbx-26483 is ringing
  -- IAX2/elastix2incrediblepbx-26483 is ringing
 
Last edited:

silimms

New Member
Joined
Feb 18, 2016
Messages
23
Reaction score
1
But When I use 9XXX call 1XXX
I can see this log
Code:
   -- Executing [1802@from-internal:1] Macro("PJSIP/9803-00000000", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("PJSIP/9803-00000000", "TOUCH_MONITOR=1458291376.0") in new stack
    -- Executing [s@macro-user-callerid:2] Set("PJSIP/9803-00000000", "AMPUSER=9803") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("PJSIP/9803-00000000", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("PJSIP/9803-00000000", "1?Set(REALCALLERIDNUM=9803)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("PJSIP/9803-00000000", "AMPUSER=9803") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("PJSIP/9803-00000000", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("PJSIP/9803-00000000", "AMPUSERCIDNAME=9803") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("PJSIP/9803-00000000", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("PJSIP/9803-00000000", "AMPUSERCID=9803") in new stack
    -- Executing [s@macro-user-callerid:10] Set("PJSIP/9803-00000000", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("PJSIP/9803-00000000", "CALLERID(all)="9803" <9803>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("PJSIP/9803-00000000", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("PJSIP/9803-00000000", "1?Set(GROUP(concurrency_limit)=9803)") in new stack
    -- Executing [s@macro-user-callerid:14] GosubIf("PJSIP/9803-00000000", "7?sub-ccss,s,1(from-internal,)") in new stack
    -- Executing [s@sub-ccss:1] ExecIf("PJSIP/9803-00000000", "0?Return()") in new stack
    -- Executing [s@sub-ccss:2] Set("PJSIP/9803-00000000", "CCSS_SETUP=TRUE") in new stack
    -- Executing [s@sub-ccss:3] GosubIf("PJSIP/9803-00000000", "0?monitor_config,1(from-internal,):monitor_default,1(from-internal,)") in new stack
    -- Executing [monitor_default@sub-ccss:1] GotoIf("PJSIP/9803-00000000", "0?is_exten") in new stack
    -- Executing [monitor_default@sub-ccss:2] StackPop("PJSIP/9803-00000000", "") in new stack
    -- Executing [monitor_default@sub-ccss:3] Return("PJSIP/9803-00000000", "FALSE") in new stack
    -- Executing [s@macro-user-callerid:15] ExecIf("PJSIP/9803-00000000", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:16] GotoIf("PJSIP/9803-00000000", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [s@macro-user-callerid:29] Set("PJSIP/9803-00000000", "CALLERID(number)=9803") in new stack
    -- Executing [s@macro-user-callerid:30] Set("PJSIP/9803-00000000", "CALLERID(name)=9803") in new stack
    -- Executing [s@macro-user-callerid:31] Set("PJSIP/9803-00000000", "CDR(cnum)=9803") in new stack
    -- Executing [s@macro-user-callerid:32] Set("PJSIP/9803-00000000", "CDR(cnam)=9803") in new stack
    -- Executing [s@macro-user-callerid:33] Set("PJSIP/9803-00000000", "CHANNEL(language)=en") in new stack
    -- Executing [1802@from-internal:2] Gosub("PJSIP/9803-00000000", "sub-record-check,s,1(out,1802,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("PJSIP/9803-00000000", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("PJSIP/9803-00000000", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("PJSIP/9803-00000000", "NOW=1458291376") in new stack
    -- Executing [s@sub-record-check:4] Set("PJSIP/9803-00000000", "__DAY=18") in new stack
    -- Executing [s@sub-record-check:5] Set("PJSIP/9803-00000000", "__MONTH=03") in new stack
    -- Executing [s@sub-record-check:6] Set("PJSIP/9803-00000000", "__YEAR=2016") in new stack
    -- Executing [s@sub-record-check:7] Set("PJSIP/9803-00000000", "__TIMESTR=20160318-165616") in new stack
    -- Executing [s@sub-record-check:8] Set("PJSIP/9803-00000000", "__FROMEXTEN=9803") in new stack
    -- Executing [s@sub-record-check:9] Set("PJSIP/9803-00000000", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("PJSIP/9803-00000000", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("PJSIP/9803-00000000", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("PJSIP/9803-00000000", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("PJSIP/9803-00000000", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("PJSIP/9803-00000000", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("PJSIP/9803-00000000", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] NoOp("PJSIP/9803-00000000", "Outbound Recording Check from 9803 to 1802") in new stack
    -- Executing [out@sub-record-check:2] Set("PJSIP/9803-00000000", "RECMODE=dontcare") in new stack
    -- Executing [out@sub-record-check:3] ExecIf("PJSIP/9803-00000000", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [out@sub-record-check:7] Gosub("PJSIP/9803-00000000", "recordcheck,1(dontcare,out,1802)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/9803-00000000", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/9803-00000000", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("PJSIP/9803-00000000", "") in new stack
    -- Executing [out@sub-record-check:8] Return("PJSIP/9803-00000000", "") in new stack
    -- Executing [1802@from-internal:3] Set("PJSIP/9803-00000000", "MOHCLASS=default") in new stack
    -- Executing [1802@from-internal:4] Set("PJSIP/9803-00000000", "_NODEST=") in new stack
    -- Executing [1802@from-internal:5] Macro("PJSIP/9803-00000000", "dialout-trunk,20,1802,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("PJSIP/9803-00000000", "DIAL_TRUNK=20") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("PJSIP/9803-00000000", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("PJSIP/9803-00000000", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("PJSIP/9803-00000000", "DIAL_NUMBER=1802") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("PJSIP/9803-00000000", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("PJSIP/9803-00000000", "OUTBOUND_GROUP=OUT_20") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("PJSIP/9803-00000000", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("PJSIP/9803-00000000", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("PJSIP/9803-00000000", "DIAL_TRUNK_OPTIONS=Tt") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("PJSIP/9803-00000000", "outbound-callerid,20") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("PJSIP/9803-00000000", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("PJSIP/9803-00000000", "0?Set(REALCALLERIDNUM=9803)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("PJSIP/9803-00000000", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
 

silimms

New Member
Joined
Feb 18, 2016
Messages
23
Reaction score
1
Code:
    -- Executing [s@macro-outbound-callerid:6] Set("PJSIP/9803-00000000", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("PJSIP/9803-00000000", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("PJSIP/9803-00000000", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("PJSIP/9803-00000000", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,14)
    -- Executing [s@macro-outbound-callerid:14] ExecIf("PJSIP/9803-00000000", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("PJSIP/9803-00000000", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:16] ExecIf("PJSIP/9803-00000000", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:17] ExecIf("PJSIP/9803-00000000", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:18] Set("PJSIP/9803-00000000", "CDR(outbound_cnum)=9803") in new stack
    -- Executing [s@macro-outbound-callerid:19] Set("PJSIP/9803-00000000", "CDR(outbound_cnam)=9803") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("PJSIP/9803-00000000", "0?sub-flp-20,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("PJSIP/9803-00000000", "OUTNUM=1802") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("PJSIP/9803-00000000", "custom=IAX2/incrediblepbx2elastix") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("PJSIP/9803-00000000", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("PJSIP/9803-00000000", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("PJSIP/9803-00000000", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("PJSIP/9803-00000000", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("PJSIP/9803-00000000", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("PJSIP/9803-00000000", "1?Set(CONNECTEDLINE(num,i)=1802)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("PJSIP/9803-00000000", "1?Set(CONNECTEDLINE(name,i)=CID:9803)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("PJSIP/9803-00000000", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:22] Dial("PJSIP/9803-00000000", "IAX2/incrediblepbx2elastix/1802,300,Tt") in new stack
    -- Called IAX2/incrediblepbx2elastix/1802
    -- Call accepted by 192.168.0.9:4569 (format ulaw)
    -- Format for call is (ulaw)
    -- IAX2/incrediblepbx2elastix-28354 is ringing
    -- IAX2/incrediblepbx2elastix-28354 is ringing
    -- IAX2/incrediblepbx2elastix-28354 stopped sounds
    -- IAX2/incrediblepbx2elastix-28354 answered PJSIP/9803-00000000
    -- Channel IAX2/incrediblepbx2elastix-28354 joined 'simple_bridge' basic-bridge <cc9a010c-1c79-4d62-8345-7d227a0a9694>
    -- Channel PJSIP/9803-00000000 joined 'simple_bridge' basic-bridge <cc9a010c-1c79-4d62-8345-7d227a0a9694>
       > 0x7fad140179c0 -- Probation passed - setting RTP source address to 192.168.0.118:5004
    -- Channel PJSIP/9803-00000000 left 'simple_bridge' basic-bridge <cc9a010c-1c79-4d62-8345-7d227a0a9694>
    -- Channel IAX2/incrediblepbx2elastix-28354 left 'simple_bridge' basic-bridge <cc9a010c-1c79-4d62-8345-7d227a0a9694>
    -- Hungup 'IAX2/incrediblepbx2elastix-28354'
  == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'PJSIP/9803-00000000' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 1802, 5) exited non-zero on 'PJSIP/9803-00000000'
    -- Executing [h@from-internal:1] Hangup("PJSIP/9803-00000000", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/9803-00000000'


How can I use g729 codec on iax2 trunk, not ulaw?
Because 9XXX extension can't hear 1XXX sound when I call from 9XXX

This is my iax trunk setting
elastix:
Code:
username=elastix
type=friend
secret=XXXXXXX
host=192.168.0.250
qualify=yes
context=from-internal
disallow=all
trunk=yes
nat=yes
allow=g729&g722&ulaw&VP8&H264

Code:
username=incrediblepbx
type=friend
secret=XXXXXXX
host=192.168.0.9
qualify=yes
disallow=all
trunk=yes
nat=yes
allow=g729&g722&ulaw&VP8&H264
 

tbrummell

Guru
Joined
Jan 8, 2011
Messages
1,275
Reaction score
339
Go to Asterisk IAX Settings, there you will see the order of priority of your Codecs, as well as who/what makes the priority decision. Compare those settings on the 2 servers.
 

silimms

New Member
Joined
Feb 18, 2016
Messages
23
Reaction score
1
thanks... problem solved
I think wrong, the problem is on Elastix, not Incrediblepbx
 

Members online

Forum statistics

Threads
25,815
Messages
167,789
Members
19,245
Latest member
rahee
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.
Top