Can receive call but can`t make calls

I can receive calls but when I dial out I get the following message:

the number you have dialed does not exist or has not been allocated.

You’ve forgotten to include the logs:

https://wiki.freepbx.org/display/SUP/Providing+Great+Debug

Is the announcement coming from FreePBX or the provider? I seem to remember that the FreePBX message similar to this is not exactly as you quote.

Possibilities include not having an outgoing route for the number you have dialled, or that route’s not modifying the number into the form required by the provider.

Hi Thank you for the reply. I have been battling with this for ages now. I am here in south africa and my code is +27

Please see below

== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio TOS bits 184 in TCLASS field.
== Using SIP RTP Audio CoS mark 5
– Executing [[email protected]:1] Macro(“PJSIP/100-0000002f”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/100-0000002f”, “TOUCH_MONITOR=1672490242.47”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/100-0000002f”, “CHANCONTEXT=”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/100-0000002f”, “CHANCONTEXT=”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/100-0000002f”, “CHANEXTENCONTEXT=100-0000002f”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/100-0000002f”, “CHANEXTEN=100-0000002f”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/100-0000002f”, “CALLERID(number)=100”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/100-0000002f”, “AMPUSER=100”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/100-0000002f”, “HOTDESCKCHAN=100-0000002f”) in new stack
– Executing [[email protected]:9] Set(“PJSIP/100-0000002f”, “HOTDESKEXTEN=100”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/100-0000002f”, “HOTDESKCALL=0”) in new stack
– Executing [[email protected]-callerid:11] ExecIf(“PJSIP/100-0000002f”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [[email protected]:12] ExecIf(“PJSIP/100-0000002f”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [[email protected]:13] GotoIf(“PJSIP/100-0000002f”, “0?report”) in new stack
– Executing [[email protected]:14] ExecIf(“PJSIP/100-0000002f”, “1?Set(REALCALLERIDNUM=100)”) in new stack
– Executing [[email protected]:15] Set(“PJSIP/100-0000002f”, “AMPUSER=100”) in new stack
– Executing [[email protected]:16] GotoIf(“PJSIP/100-0000002f”, “0?limit”) in new stack
– Executing [[email protected]:17] Set(“PJSIP/100-0000002f”, “AMPUSERCIDNAME=Quian”) in new stack
– Executing [[email protected]:18] ExecIf(“PJSIP/100-0000002f”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:19] GotoIf(“PJSIP/100-0000002f”, “0?report”) in new stack
– Executing [[email protected]:20] Set(“PJSIP/100-0000002f”, “AMPUSERCID=100”) in new stack
– Executing [[email protected]:21] Set(“PJSIP/100-0000002f”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:22] Set(“PJSIP/100-0000002f”, “CALLERID(all)=“Quian” <100>”) in new stack
– Executing [[email protected]:23] ExecIf(“PJSIP/100-0000002f”, “0?Set(CUSDIAL=)”) in new stack
– Executing [[email protected]:24] ExecIf(“PJSIP/100-0000002f”, “0?Set(CALLERID(all)=“Quian” <100>)”) in new stack
– Executing [[email protected]:25] GotoIf(“PJSIP/100-0000002f”, “0?limit”) in new stack
– Executing [[email protected]:26] ExecIf(“PJSIP/100-0000002f”, “1?Set(GROUP(concurrency_limit)=100)”) in new stack
– Executing [[email protected]:27] ExecIf(“PJSIP/100-0000002f”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:28] NoOp(“PJSIP/100-0000002f”, “Macro Depth is 1”) in new stack
– Executing [[email protected]:29] GotoIf(“PJSIP/100-0000002f”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,30)
– Executing [[email protected]:30] GotoIf(“PJSIP/100-0000002f”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,49)
– Executing [[email protected]:49] Set(“PJSIP/100-0000002f”, “CALLERID(number)=100”) in new stack
– Executing [[email protected]:50] Set(“PJSIP/100-0000002f”, “CALLERID(name)=Quian”) in new stack
– Executing [[email protected]:51] GotoIf(“PJSIP/100-0000002f”, “0?cnum”) in new stack
– Executing [[email protected]:52] Set(“PJSIP/100-0000002f”, “CDR(cnam)=Quian”) in new stack
– Executing [[email protected]:53] Set(“PJSIP/100-0000002f”, “CDR(cnum)=100”) in new stack
– Executing [[email protected]:54] Set(“PJSIP/100-0000002f”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Gosub(“PJSIP/100-0000002f”, “sub-record-check,s,1(out,+27826423014,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/100-0000002f”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/100-0000002f”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/100-0000002f”, “NOW=1672490242”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/100-0000002f”, “__DAY=31”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/100-0000002f”, “__MONTH=12”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/100-0000002f”, “__YEAR=2022”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/100-0000002f”, “__TIMESTR=20221231-123722”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/100-0000002f”, “__FROMEXTEN=100”) in new stack
– Executing [[email protected]:9] Set(“PJSIP/100-0000002f”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“PJSIP/100-0000002f”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“PJSIP/100-0000002f”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/100-0000002f”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/100-0000002f”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/100-0000002f”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“PJSIP/100-0000002f”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [[email protected]:1] NoOp(“PJSIP/100-0000002f”, “Outbound Recording Check from 100 to +27826423014”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/100-0000002f”, “RECMODE=dontcare”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/100-0000002f”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [[email protected]:7] Gosub(“PJSIP/100-0000002f”, “recordcheck,1(dontcare,out,+27826423014)”) in new stack
– Executing [[email protected]:1] NoOp(“PJSIP/100-0000002f”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“PJSIP/100-0000002f”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“PJSIP/100-0000002f”, “”) in new stack
– Executing [[email protected]:8] Return(“PJSIP/100-0000002f”, “”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/100-0000002f”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/100-0000002f”, “_ROUTEID=1”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/100-0000002f”, “_ROUTENAME=Axxess Out”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/100-0000002f”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/100-0000002f”, “_CALLERIDNAMEINTERNAL=Quian”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/100-0000002f”, “_CALLERIDNUMINTERNAL=100”) in new stack
– Executing [[email protected]:9] Set(“PJSIP/100-0000002f”, “_EMAILNOTIFICATION=FALSE”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/100-0000002f”, “_NODEST=”) in new stack
– Executing [[email protected]:11] Macro(“PJSIP/100-0000002f”, “dialout-trunk,1,+27826423014,off”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/100-0000002f”, “DIAL_TRUNK=1”) in new stack
– Executing [[email protected]:2] ExecIf(“PJSIP/100-0000002f”, “0?Set(DIAL_OPTIONS=Hhtr)”) in new stack
– Executing [[email protected]:3] GosubIf(“PJSIP/100-0000002f”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/100-0000002f”, “0?Set(CALLERID(num)=100)”) in new stack
– Executing [[email protected]:5] GotoIf(“PJSIP/100-0000002f”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/100-0000002f”, “DIAL_NUMBER=+27826423014”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/100-0000002f”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/100-0000002f”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [[email protected]:9] Set(“PJSIP/100-0000002f”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [[email protected]:10] GotoIf(“PJSIP/100-0000002f”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,12)
– Executing [[email protected]:12] GotoIf(“PJSIP/100-0000002f”, “0?skipoutcid”) in new stack
– Executing [[email protected]:13] Macro(“PJSIP/100-0000002f”, “outbound-callerid,1”) in new stack
– Executing [[email protected]:1] NoOp(“PJSIP/100-0000002f”, “100”) in new stack
– Executing [[email protected]:2] NoOp(“PJSIP/100-0000002f”, “”) in new stack
– Executing [[email protected]:3] NoOp(“PJSIP/100-0000002f”, “off”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/100-0000002f”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [[email protected]:5] ExecIf(“PJSIP/100-0000002f”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/100-0000002f”, “HOTDESCKCHAN=100-0000002f”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/100-0000002f”, “HOTDESKEXTEN=100”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/100-0000002f”, “HOTDESKCALL=0”) in new stack
– Executing [[email protected]:9] ExecIf(“PJSIP/100-0000002f”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [[email protected]:10] ExecIf(“PJSIP/100-0000002f”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [[email protected]:11] Set(“PJSIP/100-0000002f”, “ALLOWTHISROUTE=NO”) in new stack
– Executing [[email protected]:12] ExecIf(“PJSIP/100-0000002f”, “0?Set(ALLOWTHISROUTE=YES)”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/100-0000002f”, “0?Hangup()”) in new stack
– Executing [[email protected]:14] ExecIf(“PJSIP/100-0000002f”, “0?Set(REALCALLERIDNUM=100)”) in new stack
– Executing [[email protected]:15] ExecIf(“PJSIP/100-0000002f”, “0?Set(AMPUSER=100)”) in new stack
– Executing [[email protected]:16] GotoIf(“PJSIP/100-0000002f”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,20)
– Executing [[email protected]:20] Set(“PJSIP/100-0000002f”, “USEROUTCID=0333442639”) in new stack
– Executing [[email protected]:21] Set(“PJSIP/100-0000002f”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:22] ExecIf(“PJSIP/100-0000002f”, “0?Set(EMERGENCYCID=)”) in new stack
– Executing [[email protected]:23] Set(“PJSIP/100-0000002f”, “TRUNKOUTCID=0333442639”) in new stack
– Executing [[email protected]:24] GotoIf(“PJSIP/100-0000002f”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,30)
– Executing [[email protected]:30] ExecIf(“PJSIP/100-0000002f”, “1?Set(CALLERID(all)=0333442639)”) in new stack
– Executing [[email protected]:31] ExecIf(“PJSIP/100-0000002f”, “1?Set(CALLERID(all)=0333442639)”) in new stack
– Executing [[email protected]:32] ExecIf(“PJSIP/100-0000002f”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:33] ExecIf(“PJSIP/100-0000002f”, “0?Set(CALLERID(all)=100)”) in new stack
– Executing [[email protected]:34] ExecIf(“PJSIP/100-0000002f”, “0?Set(CALLERID(all)=100)”) in new stack
– Executing [[email protected]:35] Set(“PJSIP/100-0000002f”, “TIOHIDE=no”) in new stack
– Executing [[email protected]:36] ExecIf(“PJSIP/100-0000002f”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:37] ExecIf(“PJSIP/100-0000002f”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:38] ExecIf(“PJSIP/100-0000002f”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:39] ExecIf(“PJSIP/100-0000002f”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:40] Set(“PJSIP/100-0000002f”, “CDR(outbound_cnum)=0333442639”) in new stack
– Executing [[email protected]:41] Set(“PJSIP/100-0000002f”, “CDR(outbound_cnam)=”) in new stack
– Executing [[email protected]:14] GosubIf(“PJSIP/100-0000002f”, “1?sub-flp-1,s,1()”) in new stack
– Executing [[email protected]:1] ExecIf(“PJSIP/100-0000002f”, “1?Return()”) in new stack
– Executing [[email protected]:15] Set(“PJSIP/100-0000002f”, “OUTNUM=+27826423014”) in new stack
– Executing [[email protected]:16] Set(“PJSIP/100-0000002f”, “custom=PJSIP”) in new stack
– Executing [[email protected]:17] ExecIf(“PJSIP/100-0000002f”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [[email protected]:18] ExecIf(“PJSIP/100-0000002f”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [[email protected]:19] GotoIf(“PJSIP/100-0000002f”, “1?gocall”) in new stack
– Goto (macro-dialout-trunk,s,21)
– Executing [[email protected]:21] Macro(“PJSIP/100-0000002f”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“PJSIP/100-0000002f”, “”) in new stack
– Executing [[email protected]:22] GotoIf(“PJSIP/100-0000002f”, “0?skipcrm”) in new stack
– Executing [[email protected]:23] Set(“PJSIP/100-0000002f”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [[email protected]:24] Set(“PJSIP/100-0000002f”, “__CRM_DESTINATION=+27826423014”) in new stack
– Executing [[email protected]:25] Set(“PJSIP/100-0000002f”, “__CRM_SOURCE=100”) in new stack
– Executing [[email protected]:26] AGI(“PJSIP/100-0000002f”, “agi://127.0.0.1/sangomacrm.agi”) in new stack
– <PJSIP/100-0000002f>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
– Executing [[email protected]:27] Set(“PJSIP/100-0000002f”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [[email protected]:28] NoOp(“PJSIP/100-0000002f”, “CRM Finished”) in new stack
– Executing [[email protected]:29] GotoIf(“PJSIP/100-0000002f”, “0?bypass,1”) in new stack
– Executing [[email protected]:30] ExecIf(“PJSIP/100-0000002f”, “1?Set(CONNECTEDLINE(num,i)=+27826423014)”) in new stack
– Executing [[email protected]:31] ExecIf(“PJSIP/100-0000002f”, “1?Set(CONNECTEDLINE(name,i)=CID:0333442639)”) in new stack
– Executing [[email protected]:32] ExecIf(“PJSIP/100-0000002f”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)0333442639)”) in new stack
– Executing [[email protected]:33] GotoIf(“PJSIP/100-0000002f”, “0?customtrunk”) in new stack
– Executing [[email protected]:34] ExecIf(“PJSIP/100-0000002f”, “0?Set(DIAL_TRUNK_OPTIONS=)”) in new stack
– Executing [[email protected]:35] Set(“PJSIP/100-0000002f”, “HASH(__SIPHEADERS,Alert-Info)=unset”) in new stack
– Executing [[email protected]:36] Dial(“PJSIP/100-0000002f”, “PJSIP/[email protected],300,Tb(func-apply-sipheaders^s^1,(1))U(sub-send-obroute-email^+27826423014^+27826423014^1^1672490242^^0333442639)”) in new stack
– PJSIP/Axxess-00000030 Internal Gosub(func-apply-sipheaders,s,1(1)) start
– Executing [[email protected]:1] ExecIf(“PJSIP/Axxess-00000030”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [[email protected]:2] NoOp(“PJSIP/Axxess-00000030”, “Applying SIP Headers to channel PJSIP/Axxess-00000030”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/Axxess-00000030”, “TECH=PJSIP”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/Axxess-00000030”, “SIPHEADERKEYS=Alert-Info”) in new stack
– Executing [[email protected]:5] While(“PJSIP/Axxess-00000030”, “1”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/Axxess-00000030”, “sipheader=unset”) in new stack
– Executing [[email protected]:7] ExecIf(“PJSIP/Axxess-00000030”, “1?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack
[2022-12-31 12:37:22] ERROR[19537]: res_pjsip_header_funcs.c:547 remove_header: No headers had been previously added to this session.
– Executing [[email protected]:8] ExecIf(“PJSIP/Axxess-00000030”, “0?Set(sipheader=http://127.0.0.1;info=unset)”) in new stack
– Executing [[email protected]:9] ExecIf(“PJSIP/Axxess-00000030”, “0?Set(sipheader=http://127.0.0.1unset)”) in new stack
– Executing [[email protected]:10] ExecIf(“PJSIP/Axxess-00000030”, “0?Set(PJSIP_HEADER(add,Alert-Info)=unset)”) in new stack
– Executing [[email protected]:11] EndWhile(“PJSIP/Axxess-00000030”, “”) in new stack
– Executing [[email protected]:5] While(“PJSIP/Axxess-00000030”, “0”) in new stack
– Executing [[email protected]:12] Return(“PJSIP/Axxess-00000030”, “”) in new stack
== Spawn extension (from-pstn, +27826423014, 1) exited non-zero on ‘PJSIP/Axxess-00000030’
– PJSIP/Axxess-00000030 Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
– Called PJSIP/[email protected]
> 0x7f48940a8850 – Strict RTP learning after remote address set to: 197.155.250.136:17914
– PJSIP/Axxess-00000030 is making progress passing it to PJSIP/100-0000002f
> 0x7f48940a8850 – Strict RTP switching to RTP target address 197.155.250.136:17914 as source
> 0x7f48941c66b0 – Strict RTP learning after remote address set to: 192.143.58.182:58696
> 0x7f48941c66b0 – Strict RTP switching to RTP target address 192.143.58.182:58696 as source
== Spawn extension (macro-dialout-trunk, s, 36) exited non-zero on ‘PJSIP/100-0000002f’ in macro ‘dialout-trunk’
== Spawn extension (from-internal, +27826423014, 11) exited non-zero on ‘PJSIP/100-0000002f’
– Executing [[email protected]:1] Macro(“PJSIP/100-0000002f”, “hangupcall”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/100-0000002f”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [[email protected]:3] ExecIf(“PJSIP/100-0000002f”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [[email protected]:4] Hangup(“PJSIP/100-0000002f”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘PJSIP/100-0000002f’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘PJSIP/100-0000002f’
– PJSIP/100-0000002f Internal Gosub(crm-hangup,s,1) start
– Executing [[email protected]:1] NoOp(“PJSIP/100-0000002f”, “Sending Hangup to CRM”) in new stack
– Executing [[email protected]:2] NoOp(“PJSIP/100-0000002f”, “HANGUP CAUSE: 127”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/100-0000002f”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [[email protected]:4] NoOp(“PJSIP/100-0000002f”, “MASTER CHANNEL: 1672490242.47 = 1672490242.47”) in new stack
– Executing [[email protected]:5] GotoIf(“PJSIP/100-0000002f”, “0?return”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/100-0000002f”, “__CRM_HANGUP=1”) in new stack
– Executing [[email protected]:7] AGI(“PJSIP/100-0000002f”, “agi://127.0.0.1/sangomacrm.agi”) in new stack
– <PJSIP/100-0000002f>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
– Executing [[email protected]:8] Return(“PJSIP/100-0000002f”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘PJSIP/100-0000002f’
– PJSIP/100-0000002f Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=

This is not actually an error and can be ignored.

This looks like +27826423014 was sent in the SIP URI, but in your next post

this shows that 0826423014 was sent in the SIP URI.
Are you certain that these were both from the same call attempt?

I suggest that you set From Domain in the trunk to the same value that SIP Server is set to, which I assume is sip.internet.co.za . Then, retry calls using both formats of outgoing number.

If no luck, paste the Asterisk log for the call (including SIP trace) at pastebin.freepbx.org and post the link here. If you are too new to post links, post the last 8 hex characters of the URL.

I found this dial plan link and have follwed it

I now get call cannot be completed as dialed. Please check the number and dial again.

Please see logs

Connected to Asterisk 16.25.0 currently running on freepbx (pid = 7009)
freepbxCLI> sip set debug on
No such command ‘sip set debug on’ (type ‘core show help sip set’ for other poss ible commands)
freepbx
CLI> pjsip set logger on
PJSIP Logging enabled
freepbx*CLI>
<— Received SIP request (998 bytes) from UDP:192.143.58.182:61351 —>
INVITE sip:[email protected];transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.3.196:61351;branch=z9hG4bK-524287-1—b7a11603fccb0c30; rport
Max-Forwards: 70
Contact: sip:[email protected]:61351;transport=UDP
To: sip:[email protected]
From: sip:[email protected];transport=UDP;tag=2570e327
Call-ID: y7OEu7Od6pzLxcjbO4lCig…
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIB E
Content-Type: application/sdp
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco- serviceuri
User-Agent: Z 5.5.14 v2.10.18.6
Allow-Events: presence, kpml, talk
Content-Length: 333

v=0
o=Z 0 257660054 IN IP4 192.143.58.182
s=Z
c=IN IP4 192.143.58.182
t=0 0
m=audio 53661 RTP/AVP 106 9 98 101 0 8 3
a=rtpmap:106 opus/48000/2
a=fmtp:106 sprop-maxcapturerate=16000; minptime=20; useinbandfec=1
a=rtpmap:98 telephone-event/48000
a=fmtp:98 0-16
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv

<— Transmitting SIP response (515 bytes) to UDP:192.143.58.182:61351 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.3.196:61351;rport=61351;received=192.143.58.182;branch= z9hG4bK-524287-1—b7a11603fccb0c30
Call-ID: y7OEu7Od6pzLxcjbO4lCig…
From: sip:[email protected];tag=2570e327
To: sip:[email protected];tag=z9hG4bK-524287-1—b7a11603fccb0c30
CSeq: 1 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1672497756/8b0c1f1292e8f3919f10 0f6f7c1aac9a”,opaque=“1f32e9e83b332b30”,algorithm=md5,qop=“auth”
Server: FPBX-16.0.19(16.25.0)
Content-Length: 0

<— Received SIP request (367 bytes) from UDP:192.143.58.182:61351 —>
ACK sip:[email protected];transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.3.196:61351;branch=z9hG4bK-524287-1—b7a11603fccb0c30; rport
Max-Forwards: 70
To: sip:[email protected];tag=z9hG4bK-524287-1—b7a11603fccb0c30
From: sip:[email protected];transport=UDP;tag=2570e327
Call-ID: y7OEu7Od6pzLxcjbO4lCig…
CSeq: 1 ACK
Content-Length: 0

<— Received SIP request (1302 bytes) from UDP:192.143.58.182:61351 —>
INVITE sip:[email protected];transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.3.196:61351;branch=z9hG4bK-524287-1—91d964f993e191c1; rport
Max-Forwards: 70
Contact: sip:[email protected]:61351;transport=UDP
To: sip:[email protected]
From: sip:[email protected];transport=UDP;tag=2570e327
Call-ID: y7OEu7Od6pzLxcjbO4lCig…
CSeq: 2 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIB E
Content-Type: application/sdp
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco- serviceuri
User-Agent: Z 5.5.14 v2.10.18.6
Authorization: Digest username=“100”,realm=“asterisk”,nonce=“1672497756/8b0c1f12 92e8f3919f100f6f7c1aac9a",uri="sip:[email protected];transport=UDP”,resp onse=“f697ad7cd9d1b5159b8a1389e770ce3d”,cnonce="26398c32bfe2ae0c4e4d1a3d6cf75f9e ",nc=00000001,qop=auth,algorithm=md5,opaque=“1f32e9e83b332b30”
Allow-Events: presence, kpml, talk
Content-Length: 333

v=0
o=Z 0 257660054 IN IP4 192.143.58.182
s=Z
c=IN IP4 192.143.58.182
t=0 0
m=audio 53661 RTP/AVP 106 9 98 101 0 8 3
a=rtpmap:106 opus/48000/2
a=fmtp:106 sprop-maxcapturerate=16000; minptime=20; useinbandfec=1
a=rtpmap:98 telephone-event/48000
a=fmtp:98 0-16
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv

<— Transmitting SIP response (323 bytes) to UDP:192.143.58.182:61351 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.3.196:61351;rport=61351;received=192.143.58.182;branch= z9hG4bK-524287-1—91d964f993e191c1
Call-ID: y7OEu7Od6pzLxcjbO4lCig…
From: sip:[email protected];tag=2570e327
To: sip:[email protected]
CSeq: 2 INVITE
Server: FPBX-16.0.19(16.25.0)
Content-Length: 0

<— Transmitting SIP response (857 bytes) to UDP:192.143.58.182:61351 —>
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.3.196:61351;rport=61351;received=192.143.58.182;branch= z9hG4bK-524287-1—91d964f993e191c1
Call-ID: y7OEu7Od6pzLxcjbO4lCig…
From: sip:[email protected];tag=2570e327
To: sip:[email protected];tag=f73e1740-0802-417e-a3a6-6e3c66120c25
CSeq: 2 INVITE
Server: FPBX-16.0.19(16.25.0)
Contact: sip:102.67.141.174:5060
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NO TIFY, PUBLISH, MESSAGE, REFER
Content-Type: application/sdp
Content-Length: 302

v=0
o=- 0 257660056 IN IP4 102.67.141.174
s=Asterisk
c=IN IP4 102.67.141.174
t=0 0
m=audio 10716 RTP/AVP 0 8 3 9 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

<— Transmitting SIP request (456 bytes) to UDP:197.155.248.129:5060 —>
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 102.67.141.174:5060;rport;branch=z9hG4bKPj6192d2fa-afd7-4cc8-ae 12-16a67a46566b
From: sip:[email protected];tag=7f2189f3-6f23-4328-bf67-f51ad662b8b5
To: sip:[email protected]
Contact: sip:[email protected]:5060
Call-ID: b9dbe85b-a500-4bea-a7e0-543237fd6b49
CSeq: 17335 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-16.0.19(16.25.0)
Content-Length: 0

<— Received SIP response (417 bytes) from UDP:197.155.248.129:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 102.67.141.174:5060;rport=5060;branch=z9hG4bKPj6192d2fa-afd7-4c c8-ae12-16a67a46566b;received=102.67.141.174
From: sip:[email protected];tag=7f2189f3-6f23-4328-bf67-f51ad662b8b5
To: sip:[email protected];tag=806c9e69b2d21ee4ac48090a1d264b38.de4 8
Call-ID: b9dbe85b-a500-4bea-a7e0-543237fd6b49
CSeq: 17335 OPTIONS
Server: Telviva SIP proxy
Content-Length: 0

<— Received SIP request (967 bytes) from UDP:192.143.58.182:61351 —>
REGISTER sip:102.67.141.174;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.3.196:61351;branch=z9hG4bK-524287-1—81837ae180b6c09b; rport
Max-Forwards: 70
Contact: sip:[email protected]:61351;transport=UDP;rinstance=efa56e98115810e3
To: sip:[email protected];transport=UDP
From: sip:[email protected];transport=UDP;tag=2b676546
Call-ID: mKtdMs4BuYRYVTnTfCqEOw…
CSeq: 437 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIB E
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco- serviceuri
User-Agent: Z 5.5.14 v2.10.18.6
Authorization: Digest username=“100”,realm=“asterisk”,nonce=“1672497704/79d0028a fcf0e38706ca17b468020088”,uri=“sip:102.67.141.174;transport=UDP”,response=“5701e 02cad89e929a49e51e3e8226b51”,cnonce=“37134460962d9dfd68d7b7eb9e47f4ef”,nc=000000 02,qop=auth,algorithm=md5,opaque=“57e6bd7e43d99a1f”
Allow-Events: presence, kpml, talk
Content-Length: 0

<— Transmitting SIP response (523 bytes) to UDP:192.143.58.182:61351 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.3.196:61351;rport=61351;received=192.143.58.182;branch= z9hG4bK-524287-1—81837ae180b6c09b
Call-ID: mKtdMs4BuYRYVTnTfCqEOw…
From: sip:[email protected];tag=2b676546
To: sip:[email protected];tag=z9hG4bK-524287-1—81837ae180b6c09b
CSeq: 437 REGISTER
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1672497758/43aace7e6258c458eb01 2a903334e190”,opaque=“3e3b257d700780d0”,stale=true,algorithm=md5,qop=“auth”
Server: FPBX-16.0.19(16.25.0)
Content-Length: 0

<— Received SIP request (967 bytes) from UDP:192.143.58.182:61351 —>
REGISTER sip:102.67.141.174;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.3.196:61351;branch=z9hG4bK-524287-1—a9330876cadb50d7; rport
Max-Forwards: 70
Contact: sip:[email protected]:61351;transport=UDP;rinstance=efa56e98115810e3
To: sip:[email protected];transport=UDP
From: sip:[email protected];transport=UDP;tag=2b676546
Call-ID: mKtdMs4BuYRYVTnTfCqEOw…
CSeq: 438 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIB E
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco- serviceuri
User-Agent: Z 5.5.14 v2.10.18.6
Authorization: Digest username=“100”,realm=“asterisk”,nonce=“1672497758/43aace7e 6258c458eb012a903334e190”,uri=“sip:102.67.141.174;transport=UDP”,response=“c7a2f b8aa2ebadba724fe756bf256eb0”,cnonce=“3353eb6d9ff871b10558da9ee315a75d”,nc=000000 01,qop=auth,algorithm=md5,opaque=“3e3b257d700780d0”
Allow-Events: presence, kpml, talk
Content-Length: 0

<— Transmitting SIP response (485 bytes) to UDP:192.143.58.182:61351 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.3.196:61351;rport=61351;received=192.143.58.182;branch= z9hG4bK-524287-1—a9330876cadb50d7
Call-ID: mKtdMs4BuYRYVTnTfCqEOw…
From: sip:[email protected];tag=2b676546
To: sip:[email protected];tag=z9hG4bK-524287-1—a9330876cadb50d7
CSeq: 438 REGISTER
Date: Sat, 31 Dec 2022 14:42:38 GMT
Contact: sip:[email protected]:61351;rinstance=efa56e98115810e3;expires=59
Expires: 60
Server: FPBX-16.0.19(16.25.0)
Content-Length: 0

<— Received SIP request (670 bytes) from UDP:192.143.58.182:61351 —>
CANCEL sip:[email protected];transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.3.196:61351;branch=z9hG4bK-524287-1—91d964f993e191c1; rport
Max-Forwards: 70
To: sip:[email protected]
From: sip:[email protected];transport=UDP;tag=2570e327
Call-ID: y7OEu7Od6pzLxcjbO4lCig…
CSeq: 2 CANCEL
User-Agent: Z 5.5.14 v2.10.18.6
Authorization: Digest username=“100”,realm=“asterisk”,nonce=“1672497756/8b0c1f12 92e8f3919f100f6f7c1aac9a",uri="sip:[email protected];transport=UDP”,resp onse=“f1cdbdc0cfeb90b37f34d23a0ea828db”,cnonce="7af93965f39f835e416ef3991f5d6a37 ",nc=00000002,qop=auth,algorithm=md5,opaque=“1f32e9e83b332b30”
Content-Length: 0

<— Transmitting SIP response (360 bytes) to UDP:192.143.58.182:61351 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.3.196:61351;rport=61351;received=192.143.58.182;branch= z9hG4bK-524287-1—91d964f993e191c1
Call-ID: y7OEu7Od6pzLxcjbO4lCig…
From: sip:[email protected];tag=2570e327
To: sip:[email protected];tag=f73e1740-0802-417e-a3a6-6e3c66120c25
CSeq: 2 CANCEL
Server: FPBX-16.0.19(16.25.0)
Content-Length: 0

<— Transmitting SIP response (487 bytes) to UDP:192.143.58.182:61351 —>
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 192.168.3.196:61351;rport=61351;received=192.143.58.182;branch= z9hG4bK-524287-1—91d964f993e191c1
Call-ID: y7OEu7Od6pzLxcjbO4lCig…
From: sip:[email protected];tag=2570e327
To: sip:[email protected];tag=f73e1740-0802-417e-a3a6-6e3c66120c25
CSeq: 2 INVITE
Server: FPBX-16.0.19(16.25.0)
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NO TIFY, PUBLISH, MESSAGE, REFER
Content-Length: 0

<— Received SIP request (368 bytes) from UDP:192.143.58.182:61351 —>
ACK sip:[email protected];transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.3.196:61351;branch=z9hG4bK-524287-1—91d964f993e191c1; rport
Max-Forwards: 70
To: sip:[email protected];tag=f73e1740-0802-417e-a3a6-6e3c66120c25
From: sip:[email protected];transport=UDP;tag=2570e327
Call-ID: y7OEu7Od6pzLxcjbO4lCig…
CSeq: 2 ACK
Content-Length: 0

freepbxCLI> pjsip set logger off
PJSIP Logging disabled
freepbx
CLI>

Thanks for the reply. Please see my last post after adding the dialing plans.
Sorry my last 2 were from different times without dial plans

That error means that what you dialed does not match any Outbound Route.

Assuming that the provider will accept numbers formatted like 0826423014, your dial patterns should look like:

prepend: (leave blank); prefix: (leave blank); match pattern: 0X.
prepend: 0; prefix +27; match pattern X.

This will allow dialing with either initial 0 or initial +27. If you haven’t already done so, also set From Domain and retest.

1 Like

That worked all sorted. Thank you so Much!!!

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