Outbound issue

Hi, I hope you are doing well.

I am trying to build VoIP (voice over internet protocol) system, I used “IRIS4000” module and connect it to Orange pi zero with 32G SD card and Debian 8.1 system. I followed the configuration in the “eicss” website for “IRIS4000” module, and install “libasound2-dev”, “wiringPi” libraries. Now I can receive calls, but I have some problems I can’t solve it.
1- I can not finished outbound dial, when I try to make call I can hear two rings then the ring stops. You can see in the photo Debian’s ssh logs while making outbound call:

debian%20logs%20outbound%20call

And this is Asterisk logs while making outbound call:

 Connected to Asterisk 13.24.1 currently running on orangepizero (pid = 3115)
  == Setting global variable 'SIPDOMAIN' to '192.168.0.207'
    -- Executing [[email protected]:1] Macro("PJSIP/100-00000002", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [[email protected]:1] Set("PJSIP/100-00000002", "TOUCH_MONITOR=1547629556.2") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/100-00000002", "AMPUSER=100") in new stack
    -- Executing [[email protected]:3] GotoIf("PJSIP/100-00000002", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("PJSIP/100-00000002", "1?Set(REALCALLERIDNUM=100)") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/100-00000002", "AMPUSER=100") in new stack
    -- Executing [[email protected]:6] GotoIf("PJSIP/100-00000002", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/100-00000002", "AMPUSERCIDNAME=orange100") in new stack
    -- Executing [[email protected]:8] ExecIf("PJSIP/100-00000002", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
    -- Executing [[email protected]:9] GotoIf("PJSIP/100-00000002", "0?report") in new stack
    -- Executing [[email protected]:10] Set("PJSIP/100-00000002", "AMPUSERCID=100") in new stack
    -- Executing [[email protected]:11] Set("PJSIP/100-00000002", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:12] Set("PJSIP/100-00000002", "CALLERID(all)="orange100" <100>") in new stack
    -- Executing [[email protected]:13] GotoIf("PJSIP/100-00000002", "0?limit") in new stack
    -- Executing [[email protected]:14] ExecIf("PJSIP/100-00000002", "1?Set(GROUP(concurrency_limit)=100)") in new stack
    -- Executing [[email protected]:15] NoOp("PJSIP/100-00000002", "Macro Depth is 1") in new stack
    -- Executing [[email protected]:16] GotoIf("PJSIP/100-00000002", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,17)
    -- Executing [[email protected]:17] GotoIf("PJSIP/100-00000002", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,35)
    -- Executing [[email protected]:35] Set("PJSIP/100-00000002", "CALLERID(number)=100") in new stack
    -- Executing [[email protected]:36] Set("PJSIP/100-00000002", "CALLERID(name)=orange100") in new stack
    -- Executing [[email protected]:37] GotoIf("PJSIP/100-00000002", "0?cnum") in new stack
    -- Executing [[email protected]:38] Set("PJSIP/100-00000002", "CDR(cnam)=orange100") in new stack
    -- Executing [[email protected]:39] Set("PJSIP/100-00000002", "CDR(cnum)=100") in new stack
    -- Executing [[email protected]:40] Set("PJSIP/100-00000002", "CHANNEL(language)=en") in new stack
    -- Executing [[email protected]:2] Gosub("PJSIP/100-00000002", "sub-record-check,s,1(out,73214634,dontcare)") in new stack
    -- Executing [[email protected]:1] GotoIf("PJSIP/100-00000002", "0?initialized") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/100-00000002", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/100-00000002", "NOW=1547629556") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/100-00000002", "__DAY=16") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/100-00000002", "__MONTH=01") in new stack
    -- Executing [[email protected]:6] Set("PJSIP/100-00000002", "__YEAR=2019") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/100-00000002", "__TIMESTR=20190116-100556") in new stack
    -- Executing [[email protected]:8] Set("PJSIP/100-00000002", "__FROMEXTEN=100") in new stack
    -- Executing [[email protected]:9] Set("PJSIP/100-00000002", "__MON_FMT=wav") in new stack
    -- Executing [[email protected]:10] NoOp("PJSIP/100-00000002", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("PJSIP/100-00000002", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("PJSIP/100-00000002", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [[email protected]:13] ExecIf("PJSIP/100-00000002", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("PJSIP/100-00000002", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("PJSIP/100-00000002", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [[email protected]:1] NoOp("PJSIP/100-00000002", "Outbound Recording Check from 100 to 73214634") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/100-00000002", "RECMODE=dontcare") in new stack
    -- Executing [[email protected]:3] ExecIf("PJSIP/100-00000002", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [[email protected]:7] Gosub("PJSIP/100-00000002", "recordcheck,1(dontcare,out,73214634)") in new stack
    -- Executing [[email protected]:1] NoOp("PJSIP/100-00000002", "Starting recording check against dontcare") in new stack
    -- Executing [[email protected]:2] Goto("PJSIP/100-00000002", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [[email protected]:3] Return("PJSIP/100-00000002", "") in new stack
    -- Executing [[email protected]:8] Return("PJSIP/100-00000002", "") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/100-00000002", "MOHCLASS=default") in new stack
    -- Executing [[email protected]:4] ExecIf("PJSIP/100-00000002", "1?Set(TRUNKCIDOVERRIDE=4002)") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/100-00000002", "_NODEST=") in new stack
    -- Executing [[email protected]:6] Macro("PJSIP/100-00000002", "dialout-trunk,2,3214634,,off") in new stack
    -- Executing [[email protected]:1] Set("PJSIP/100-00000002", "DIAL_TRUNK=2") in new stack
    -- Executing [[email protected]:2] ExecIf("PJSIP/100-00000002", "0?Set(DIAL_OPTIONS=tr)") in new stack
    -- Executing [[email protected]:3] GosubIf("PJSIP/100-00000002", "0?sub-pincheck,s,1()") in new stack
    -- Executing [[email protected]:4] GotoIf("PJSIP/100-00000002", "0?disabletrunk,1") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/100-00000002", "DIAL_NUMBER=3214634") in new stack
    -- Executing [[email protected]:6] Set("PJSIP/100-00000002", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/100-00000002", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [[email protected]:8] Set("PJSIP/100-00000002", "DIAL_TRUNK_OPTIONS=T") in new stack
    -- Executing [[email protected]:9] GotoIf("PJSIP/100-00000002", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,11)
    -- Executing [[email protected]:11] GotoIf("PJSIP/100-00000002", "0?skipoutcid") in new stack
    -- Executing [[email protected]:12] Macro("PJSIP/100-00000002", "outbound-callerid,2") in new stack
    -- Executing [[email protected]:1] ExecIf("PJSIP/100-00000002", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [[email protected]:2] ExecIf("PJSIP/100-00000002", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [[email protected]:3] ExecIf("PJSIP/100-00000002", "0?Set(REALCALLERIDNUM=100)") in new stack
    -- Executing [[email protected]:4] ExecIf("PJSIP/100-00000002", "0?Set(AMPUSER=100)") in new stack
    -- Executing [[email protected]:5] GotoIf("PJSIP/100-00000002", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,9)
    -- Executing [[email protected]:9] Set("PJSIP/100-00000002", "USEROUTCID=") in new stack
    -- Executing [[email protected]:10] Set("PJSIP/100-00000002", "EMERGENCYCID=") in new stack
    -- Executing [[email protected]:11] Set("PJSIP/100-00000002", "TRUNKOUTCID=4002") in new stack
    -- Executing [[email protected]:12] GotoIf("PJSIP/100-00000002", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,17)
    -- Executing [[email protected]:17] ExecIf("PJSIP/100-00000002", "1?Set(CALLERID(all)=4002)") in new stack
    -- Executing [[email protected]:18] ExecIf("PJSIP/100-00000002", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [[email protected]:19] ExecIf("PJSIP/100-00000002", "1?Set(CALLERID(all)=4002)") in new stack
    -- Executing [[email protected]:20] ExecIf("PJSIP/100-00000002", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [[email protected]:21] ExecIf("PJSIP/100-00000002", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [[email protected]:22] Set("PJSIP/100-00000002", "CDR(outbound_cnum)=4002") in new stack
    -- Executing [[email protected]:23] Set("PJSIP/100-00000002", "CDR(outbound_cnam)=") in new stack
    -- Executing [[email protected]:13] GosubIf("PJSIP/100-00000002", "0?sub-flp-2,s,1()") in new stack
    -- Executing [[email protected]:14] Set("PJSIP/100-00000002", "OUTNUM=3214634") in new stack
    -- Executing [[email protected]:15] Set("PJSIP/100-00000002", "custom=PJSIP") in new stack
    -- Executing [[email protected]:16] ExecIf("PJSIP/100-00000002", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
    -- Executing [[email protected]:17] ExecIf("PJSIP/100-00000002", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
    -- Executing [[email protected]:18] Macro("PJSIP/100-00000002", "dialout-trunk-predial-hook,") in new stack
    -- Executing [[email protected]:1] MacroExit("PJSIP/100-00000002", "") in new stack
    -- Executing [[email protected]:19] GotoIf("PJSIP/100-00000002", "0?bypass,1") in new stack
    -- Executing [[email protected]:20] ExecIf("PJSIP/100-00000002", "1?Set(CONNECTEDLINE(num,i)=3214634)") in new stack
    -- Executing [[email protected]:21] ExecIf("PJSIP/100-00000002", "1?Set(CONNECTEDLINE(name,i)=CID:4002)") in new stack
    -- Executing [[email protected]:22] ExecIf("PJSIP/100-00000002", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)4002)") in new stack
    -- Executing [[email protected]:23] GotoIf("PJSIP/100-00000002", "0?customtrunk") in new stack
    -- Executing [[email protected]:24] Dial("PJSIP/100-00000002", "PJSIP/[email protected]_PJSIP,300,T") in new stack
    -- Called PJSIP/[email protected]_PJSIP
    -- PJSIP/IRIS4000_PJSIP-00000003 is ringing
    -- PJSIP/IRIS4000_PJSIP-00000003 is ringing
    -- PJSIP/IRIS4000_PJSIP-00000003 answered PJSIP/100-00000002
       > 0xb611bf48 -- Strict RTP learning after remote address set to: 192.168.0.207:10002
       > 0xb6117550 -- Strict RTP learning after remote address set to: 95.212.144.100:8000
    -- Channel PJSIP/IRIS4000_PJSIP-00000003 joined 'simple_bridge' basic-bridge <45bb0840-e35f-4a6f-ac47-1005a6e64cd8>
    -- Channel PJSIP/100-00000002 joined 'simple_bridge' basic-bridge <45bb0840-e35f-4a6f-ac47-1005a6e64cd8>
       > 0xb6117550 -- Strict RTP qualifying stream type: audio
       > 0xb6117550 -- Strict RTP switching source address to 192.168.0.96:8000
       > 0xb611bf48 -- Strict RTP qualifying stream type: audio
       > 0xb611bf48 -- Strict RTP switching source address to 127.0.0.1:10002
    -- Channel PJSIP/100-00000002 left 'simple_bridge' basic-bridge <45bb0840-e35f-4a6f-ac47-1005a6e64cd8>
    -- Channel PJSIP/IRIS4000_PJSIP-00000003 left 'simple_bridge' basic-bridge <45bb0840-e35f-4a6f-ac47-1005a6e64cd8>
  == Spawn extension (macro-dialout-trunk, s, 24) exited non-zero on 'PJSIP/100-00000002' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 73214634, 6) exited non-zero on 'PJSIP/100-00000002'
    -- Executing [[email protected]:1] Macro("PJSIP/100-00000002", "hangupcall") in new stack
    -- Executing [[email protected]:1] GotoIf("PJSIP/100-00000002", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [[email protected]:3] ExecIf("PJSIP/100-00000002", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [[email protected]:4] Hangup("PJSIP/100-00000002", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/100-00000002' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/100-00000002'

And I have to mention that the receiver phone didn’t ring. What may the problem be?

2- When I receive call the number didn’t appear correctly it appears like this “00000002”. Is there anything I should change in configuration file to see the correct number?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.