Can get phone to register to SIP but not PJSIP

I’ve created several extensions for testing but have found that I can get X-Lite and MicroSIP to connect to SIP successfully, but when trying to connect to my extension configured for PJSIP, Asterisk CLI tels me that it’s the wrong password.

SIP is listening on port 5060 (UDP)
PJSIP is listening on port 5160(UDP)

I just tried using Zoiper and have the following when trying to connect to PJSIP
SIP TCP not found
SIP UDP not found
IAX UDP not found
“We couldn’t detect any transport type”

Yet, with SIP, SIP UDP was found straight away.

What am I missing? Am I using the wrong port? Wrong softphone?

I have been told that we need to use PJSIP with FlowRoute. Is this correct?

That is because Zoiper automatic configuration tries to contact port 5060. If you configure it manually, you will be able to connect.

Thanks Arielgrin. That got it to connect.

Now facing the issue of when dialing a number it tells me that the number is busy when I know it’s not. Could this be a dial pattern issue?

It sounds as if the call is being rejected. Is this an internal or external call? If the issue is with the dialplan you would hear a message saying something like your call cannot be completed as dialed.

I’m trying to make an external call. I get “the number you have dialed is not in service”

Here is a copy of my routes. There’s a few of them.

They look weird, like a combination of Australia and USA routes that a trunking provider is unlikely to accept.

For testing, just set a pattern such as
XX.
and dial the number in the exact format that you expect your provider to accept.

If no luck, confirm that calling internal services such as *60 (speaking clock) and *43 (echo test) work correctly. Next, at the Asterisk command prompt, enable SIP logging
sip set debug on
for a chan_sip trunk or
pjsip set logger on
for a pjsip trunk.

Make a failing call and you may see from the provider’s response what’s wrong. If not, post details here.

Thanks Stewart, will get most of that that done shortly.
The *60 and *43 work correctly.

I have extracted the data from the log file for the most recent failed call: (removed a little due to size limits here)

[2018-11-21 18:36:39] VERBOSE[2733] pbx_variables.c: Setting global variable ‘SIPDOMAIN’ to ‘192.168.2.95’
[2018-11-21 18:36:39] VERBOSE[2733] netsock2.c: Using SIP RTP Audio TOS bits 184
[2018-11-21 18:36:39] VERBOSE[2733] netsock2.c: Using SIP RTP Audio TOS bits 184 in TCLASS field.
[2018-11-21 18:36:39] VERBOSE[2733] netsock2.c: Using SIP RTP Audio CoS mark 5
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] Macro(“PJSIP/1974-00000010”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] Set(“PJSIP/1974-00000010”, “TOUCH_MONITOR=1542785799.16”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:2] Set(“PJSIP/1974-00000010”, “AMPUSER=1974”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:3] GotoIf(“PJSIP/1974-00000010”, “0?report”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:4] ExecIf(“PJSIP/1974-00000010”, “1?Set(REALCALLERIDNUM=1974)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:5] Set(“PJSIP/1974-00000010”, “AMPUSER=1974”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:6] GotoIf(“PJSIP/1974-00000010”, “0?limit”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:7] Set(“PJSIP/1974-00000010”, “AMPUSERCIDNAME=Tech”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:8] ExecIf(“PJSIP/1974-00000010”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:9] GotoIf(“PJSIP/1974-00000010”, “0?report”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]allerid:10] Set(“PJSIP/1974-00000010”, “AMPUSERCID=1974”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:11] Set(“PJSIP/1974-00000010”, “__DIAL_OPTIONS=HhTtr”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:12] Set(“PJSIP/1974-00000010”, “CALLERID(all)=“Tech” <1974>”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:13] GotoIf(“PJSIP/1974-00000010”, “0?limit”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:14] ExecIf(“PJSIP/1974-00000010”, “1?Set(GROUP(concurrency_limit)=1974)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:15] ExecIf(“PJSIP/1974-00000010”, “0?Set(CHANNEL(language)=)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:16] NoOp(“PJSIP/1974-00000010”, “Macro Depth is 1”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:17] GotoIf(“PJSIP/1974-00000010”, “1?report2:macroerror”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx_builtins.c: Goto (macro-user-callerid,s,18)
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:18] GotoIf(“PJSIP/1974-00000010”, “1?continue”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx_builtins.c: Goto (macro-user-callerid,s,37)
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:37] Set(“PJSIP/1974-00000010”, “CALLERID(number)=1974”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:38] Set(“PJSIP/1974-00000010”, “CALLERID(name)=Tech”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:39] GotoIf(“PJSIP/1974-00000010”, “0?cnum”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:40] Set(“PJSIP/1974-00000010”, “CDR(cnam)=Tech”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:41] Set(“PJSIP/1974-00000010”, “CDR(cnum)=1974”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:42] Set(“PJSIP/1974-00000010”, “CHANNEL(language)=en”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:2] Gosub(“PJSIP/1974-00000010”, “sub-record-check,s,1(out,0249328934,yes)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] GotoIf(“PJSIP/1974-00000010”, “0?initialized”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:2] Set(“PJSIP/1974-00000010”, “__REC_STATUS=INITIALIZED”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:3] Set(“PJSIP/1974-00000010”, “NOW=1542785799”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:4] Set(“PJSIP/1974-00000010”, “__DAY=21”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:5] Set(“PJSIP/1974-00000010”, “__MONTH=11”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:6] Set(“PJSIP/1974-00000010”, “__YEAR=2018”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:7] Set(“PJSIP/1974-00000010”, “__TIMESTR=20181121-183639”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:8] Set(“PJSIP/1974-00000010”, “__FROMEXTEN=1974”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:9] Set(“PJSIP/1974-00000010”, “__MON_FMT=wav”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:10] NoOp(“PJSIP/1974-00000010”, “Recordings initialized”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:11] ExecIf(“PJSIP/1974-00000010”, “0?Set(ARG3=dontcare)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:12] Set(“PJSIP/1974-00000010”, “REC_POLICY_MODE_SAVE=”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:13] ExecIf(“PJSIP/1974-00000010”, “0?Set(REC_STATUS=NO)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:14] GotoIf(“PJSIP/1974-00000010”, “3?checkaction”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx_builtins.c: Goto (sub-record-check,s,17)
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:17] GotoIf(“PJSIP/1974-00000010”, “1?sub-record-check,out,1”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx_builtins.c: Goto (sub-record-check,out,1)
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] NoOp(“PJSIP/1974-00000010”, “Outbound Recording Check from 1974 to 0249328934”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:2] Set(“PJSIP/1974-00000010”, “RECMODE=dontcare”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:3] ExecIf(“PJSIP/1974-00000010”, “1?Goto(routewins)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx_builtins.c: Goto (sub-record-check,out,7)
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:7] Gosub(“PJSIP/1974-00000010”, “recordcheck,1(yes,out,0249328934)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] NoOp(“PJSIP/1974-00000010”, “Starting recording check against yes”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:2] Goto(“PJSIP/1974-00000010”, “yes”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx_builtins.c: Goto (sub-record-check,recordcheck,9)
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:9] ExecIf(“PJSIP/1974-00000010”, “0?Return()”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:10] Set(“PJSIP/1974-00000010”, “__REC_POLICY_MODE=YES”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:11] Goto(“PJSIP/1974-00000010”, “startrec”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx_builtins.c: Goto (sub-record-check,recordcheck,16)
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:16] NoOp(“PJSIP/1974-00000010”, “Starting recording: out, 0249328934”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:17] Set(“PJSIP/1974-00000010”, “AUDIOHOOK_INHERIT(MixMonitor)=yes”) in new stack
[2018-11-21 18:36:39] ERROR[89864][C-00000008] pbx_functions.c: Function AUDIOHOOK_INHERIT not registered
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:18] Set(“PJSIP/1974-00000010”, “__CALLFILENAME=out-0249328934-1974-20181121-183639-1542785799.16”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:19] MixMonitor(“PJSIP/1974-00000010”, “2018/11/21/out-0249328934-1974-20181121-183639-1542785799.16.wav,abi(LOCAL_MIXMON_ID),”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:20] Set(“PJSIP/1974-00000010”, “__MIXMON_ID=0x7faab4087460”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:21] Set(“PJSIP/1974-00000010”, “__RECORD_ID=PJSIP/1974-00000010”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:22] Set(“PJSIP/1974-00000010”, “__REC_STATUS=RECORDING”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:23] Set(“PJSIP/1974-00000010”, “CDR(recordingfile)=out-0249328934-1974-20181121-183639-1542785799.16.wav”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:24] Return(“PJSIP/1974-00000010”, “”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:8] Return(“PJSIP/1974-00000010”, “”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:3] ExecIf(“PJSIP/1974-00000010”, “0 ?Set(CDR(accountcode)=)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:4] Set(“PJSIP/1974-00000010”, “MOHCLASS=default”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:5] ExecIf(“PJSIP/1974-00000010”, “0?Set(TRUNKCIDOVERRIDE=123456789)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:6] Set(“PJSIP/1974-00000010”, “_NODEST=”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:7] Macro(“PJSIP/1974-00000010”, “dialout-trunk,1,0249328934,off”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] Set(“PJSIP/1974-00000010”, “DIAL_TRUNK=1”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:2] ExecIf(“PJSIP/1974-00000010”, “0?Set(DIAL_OPTIONS=Hhtr)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:3] GosubIf(“PJSIP/1974-00000010”, “0?sub-pincheck,s,1()”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:4] ExecIf(“PJSIP/1974-00000010”, “0?Set(CALLERID(num)=1974)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:5] GotoIf(“PJSIP/1974-00000010”, “0?disabletrunk,1”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:6] Set(“PJSIP/1974-00000010”, “DIAL_NUMBER=0249328934”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:7] Set(“PJSIP/1974-00000010”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:8] Set(“PJSIP/1974-00000010”, “OUTBOUND_GROUP=OUT_1”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:9] Set(“PJSIP/1974-00000010”, “DIAL_TRUNK_OPTIONS=T”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:10] GotoIf(“PJSIP/1974-00000010”, “1?nomax”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx_builtins.c: Goto (macro-dialout-trunk,s,12)
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:12] GotoIf(“PJSIP/1974-00000010”, “0?skipoutcid”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:13] Macro(“PJSIP/1974-00000010”, “outbound-callerid,1”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] NoOp(“PJSIP/1974-00000010”, “1974”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:2] NoOp(“PJSIP/1974-00000010”, “”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:3] NoOp(“PJSIP/1974-00000010”, “off”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:4] ExecIf(“PJSIP/1974-00000010”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:5] ExecIf(“PJSIP/1974-00000010”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:6] ExecIf(“PJSIP/1974-00000010”, “0?Set(REALCALLERIDNUM=1974)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:7] ExecIf(“PJSIP/1974-00000010”, “0?Set(AMPUSER=1974)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:8] GotoIf(“PJSIP/1974-00000010”, “1?normcid”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx_builtins.c: Goto (macro-outbound-callerid,s,12)
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:12] Set(“PJSIP/1974-00000010”, “USEROUTCID=123456789”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:13] Set(“PJSIP/1974-00000010”, “EMERGENCYCID=”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:14] Set(“PJSIP/1974-00000010”, “TRUNKOUTCID=“PCADirect” <123456789>”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:15] GotoIf(“PJSIP/1974-00000010”, “1?trunkcid”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx_builtins.c: Goto (macro-outbound-callerid,s,20)
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:20] ExecIf(“PJSIP/1974-00000010”, “1?Set(CALLERID(all)=“PCADirect” <123456789>)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:21] ExecIf(“PJSIP/1974-00000010”, “1?Set(CALLERID(all)=123456789)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:22] ExecIf(“PJSIP/1974-00000010”, “0?Set(CALLERID(all)=)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:23] ExecIf(“PJSIP/1974-00000010”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:24] ExecIf(“PJSIP/1974-00000010”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:25] Set(“PJSIP/1974-00000010”, “CDR(outbound_cnum)=123456789”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:26] Set(“PJSIP/1974-00000010”, “CDR(outbound_cnam)=”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:14] GosubIf(“PJSIP/1974-00000010”, “1?sub-flp-1,s,1()”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] ExecIf(“PJSIP/1974-00000010”, “0?Set(TARGET_FLP_1=328934)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:2] GotoIf(“PJSIP/1974-00000010”, “0?match”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:3] ExecIf(“PJSIP/1974-00000010”, “0?Return()”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:4] ExecIf(“PJSIP/1974-00000010”, “0?Return()”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:5] ExecIf(“PJSIP/1974-00000010”, “0?Return()”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:6] ExecIf(“PJSIP/1974-00000010”, “0?Set(TARGET_FLP_1=9328934)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:7] GotoIf(“PJSIP/1974-00000010”, “0?match”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:8] ExecIf(“PJSIP/1974-00000010”, “0?Return()”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:9] ExecIf(“PJSIP/1974-00000010”, “0?Return()”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:10] ExecIf(“PJSIP/1974-00000010”, “0?Return()”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:11] ExecIf(“PJSIP/1974-00000010”, “0?Return()”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:12] ExecIf(“PJSIP/1974-00000010”, “1?Return()”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:15] Set(“PJSIP/1974-00000010”, “OUTNUM=0249328934”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:16] Set(“PJSIP/1974-00000010”, “custom=PJSIP”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:17] ExecIf(“PJSIP/1974-00000010”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:18] ExecIf(“PJSIP/1974-00000010”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:19] Macro(“PJSIP/1974-00000010”, “dialout-trunk-predial-hook,”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] MacroExit(“PJSIP/1974-00000010”, “”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:20] GotoIf(“PJSIP/1974-00000010”, “0?skipcrm”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:21] Set(“PJSIP/1974-00000010”, “__CRM_DIRECTION=OUTBOUND”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:22] Set(“PJSIP/1974-00000010”, “__CRM_DESTINATION=0249328934”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:23] Set(“PJSIP/1974-00000010”, “__CRM_SOURCE=1974”) in new stack
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:24] AGI(“PJSIP/1974-00000010”, “sangomacrm.agi”) in new stack
[2018-11-21 18:36:39] VERBOSE[89865][C-00000008] app_mixmonitor.c: Begin MixMonitor Recording PJSIP/1974-00000010
[2018-11-21 18:36:39] VERBOSE[89864][C-00000008] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] res_agi.c: <PJSIP/1974-00000010>AGI Script sangomacrm.agi completed, returning 0
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:25] Set(“PJSIP/1974-00000010”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:26] NoOp(“PJSIP/1974-00000010”, “CRM Finished”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:27] GotoIf(“PJSIP/1974-00000010”, “0?bypass,1”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:28] ExecIf(“PJSIP/1974-00000010”, “1?Set(CONNECTEDLINE(num,i)=0249328934)”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:29] ExecIf(“PJSIP/1974-00000010”, “1?Set(CONNECTEDLINE(name,i)=CID:123456789)”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:30] ExecIf(“PJSIP/1974-00000010”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)123456789)”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:31] GotoIf(“PJSIP/1974-00000010”, “0?customtrunk”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:32] Dial(“PJSIP/1974-00000010”, “PJSIP/[email protected],300,Tb(func-apply-sipheaders^s^1)”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] app_stack.c: PJSIP/PCA-00000011 Internal Gosub(func-apply-sipheaders,s,1) start
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] ExecIf(“PJSIP/PCA-00000011”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:2] NoOp(“PJSIP/PCA-00000011”, “Applying SIP Headers to channel”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:3] Set(“PJSIP/PCA-00000011”, “SIPHEADERKEYS=”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:4] ExecIf(“PJSIP/PCA-00000011”, “0?Set(Rheader=1)”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:5] While(“PJSIP/PCA-00000011”, “0”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] app_while.c: Jumping to priority 9
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:10] ExecIf(“PJSIP/PCA-00000011”, “0?SIPRemoveHeader(Alert-Info:)”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:11] ExecIf(“PJSIP/PCA-00000011”, “0?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:12] Return(“PJSIP/PCA-00000011”, “”) in new stack
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] app_stack.c: Spawn extension (from-pstn, 0249328934, 1) exited non-zero on ‘PJSIP/PCA-00000011’
[2018-11-21 18:36:43] VERBOSE[89864][C-00000008] app_stack.c: PJSIP/PCA-00000011 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
[2018-11-21 18:36:44] VERBOSE[89864][C-00000008] app_dial.c: Called PJSIP/[email protected]
[2018-11-21 18:36:44] VERBOSE[89864][C-00000008] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
[2018-11-21 18:36:44] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:33] NoOp(“PJSIP/1974-00000010”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1”) in new stack
[2018-11-21 18:36:44] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:34] GotoIf(“PJSIP/1974-00000010”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
[2018-11-21 18:36:44] VERBOSE[89864][C-00000008] pbx_builtins.c: Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
[2018-11-21 18:36:44] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] Set(“PJSIP/1974-00000010”, “RC=1”) in new stack
[2018-11-21 18:36:44] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:2] Goto(“PJSIP/1974-00000010”, “1,1”) in new stack
[2018-11-21 18:36:44] VERBOSE[89864][C-00000008] pbx_builtins.c: Goto (macro-dialout-trunk,1,1)
[2018-11-21 18:36:44] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] Goto(“PJSIP/1974-00000010”, “s-INVALIDNMBR,1”) in new stack
[2018-11-21 18:36:44] VERBOSE[89864][C-00000008] pbx_builtins.c: Goto (macro-dialout-trunk,s-INVALIDNMBR,1)
[2018-11-21 18:36:44] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] NoOp(“PJSIP/1974-00000010”, “Dial failed due to trunk reporting Address Incomplete - giving up”) in new stack
[2018-11-21 18:36:44] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:2] Progress(“PJSIP/1974-00000010”, “”) in new stack
[2018-11-21 18:36:44] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:3] Playback(“PJSIP/1974-00000010”, “ss-noservice,noanswer”) in new stack
[2018-11-21 18:36:44] VERBOSE[89864][C-00000008] file.c: <PJSIP/1974-00000010> Playing ‘ss-noservice.g722’ (language ‘en’)
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:4] Busy(“PJSIP/1974-00000010”, “20”) in new stack
[2018-11-21 18:36:49] WARNING[89864][C-00000008] translate.c: no samples for ulawtolin
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] app_macro.c: Spawn extension (macro-dialout-trunk, s-INVALIDNMBR, 4) exited non-zero on ‘PJSIP/1974-00000010’ in macro ‘dialout-trunk’
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Spawn extension (from-internal, 0249328934, 7) exited non-zero on ‘PJSIP/1974-00000010’
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] Macro(“PJSIP/1974-00000010”, “hangupcall”) in new stack
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] GotoIf(“PJSIP/1974-00000010”, “1?theend”) in new stack
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:3] ExecIf(“PJSIP/1974-00000010”, “0?Set(CDR(recordingfile)=)”) in new stack
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:4] NoOp(“PJSIP/1974-00000010”, " monior file= /var/spool/asterisk/monitor/2018/11/21/out-0249328934-1974-20181121-183639-1542785799.16.wav") in new stack
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:5] AGI(“PJSIP/1974-00000010”, “attendedtransfer-rec-restart.php,/var/spool/asterisk/monitor/2018/11/21/out-0249328934-1974-20181121-183639-1542785799.16.wav”) in new stack
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] res_agi.c: <PJSIP/1974-00000010>AGI Script attendedtransfer-rec-restart.php completed, returning 0
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:6] Hangup(“PJSIP/1974-00000010”, “”) in new stack
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] app_macro.c: Spawn extension (macro-hangupcall, s, 6) exited non-zero on ‘PJSIP/1974-00000010’ in macro ‘hangupcall’
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on ‘PJSIP/1974-00000010’
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] app_stack.c: PJSIP/1974-00000010 Internal Gosub(crm-hangup,s,1) start
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:1] NoOp(“PJSIP/1974-00000010”, “Sending Hangup to CRM”) in new stack
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:2] NoOp(“PJSIP/1974-00000010”, “HANGUP CAUSE: 17”) in new stack
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:3] ExecIf(“PJSIP/1974-00000010”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:4] NoOp(“PJSIP/1974-00000010”, “MASTER CHANNEL: 1542785799.16 = 1542785799.16”) in new stack
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:5] GotoIf(“PJSIP/1974-00000010”, “0?return”) in new stack
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:6] Set(“PJSIP/1974-00000010”, “__CRM_HANGUP=1”) in new stack
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:7] AGI(“PJSIP/1974-00000010”, “sangomacrm.agi”) in new stack
[2018-11-21 18:36:49] VERBOSE[89864][C-00000008] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
[2018-11-21 18:36:50] VERBOSE[89864][C-00000008] res_agi.c: <PJSIP/1974-00000010>AGI Script sangomacrm.agi completed, returning 0
[2018-11-21 18:36:50] VERBOSE[89864][C-00000008] pbx.c: Executing [[email protected]:8] Return(“PJSIP/1974-00000010”, “”) in new stack
[2018-11-21 18:36:50] VERBOSE[89864][C-00000008] app_stack.c: Spawn extension (from-internal, h, 1) exited non-zero on ‘PJSIP/1974-00000010’
[2018-11-21 18:36:50] VERBOSE[89864][C-00000008] app_stack.c: PJSIP/1974-00000010 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
[2018-11-21 18:36:50] VERBOSE[89865][C-00000008] app_mixmonitor.c: MixMonitor close filestream (mixed)
[2018-11-21 18:36:50] VERBOSE[89865][C-00000008] app_mixmonitor.c: End MixMonitor Recording PJSIP/1974-00000010
[2018-11-21 18:36:59] VERBOSE[89553] asterisk.c: Remote UNIX connection disconnected

I will remove all of my routes shortly and wil add a single basic one to try again.

If we take the ‘Address Incomplete’ error at face value, the provider is likely rejecting the call because the number is not formatted as they expect. Assuming that you are calling to Newcastle, Australia, the provider may want 61249328934 or +61249328934. And if they are not Australian, you might need to send 0061249328934 or 01161249328934. Check their documentation.

However, the error indication may not be accurate or may be caused by e.g. a domain name not being as expected. To troubleshoot that, please provide a SIP trace as noted in the previous post, as well as the relevant trunk settings and a link to the provider’s documentation for setting up a trunk.

The connection to the SIP trunk provider and the connections to the extensions are totally unrelated.

Flowroute works just fine with both SIP and PJSIP.

Your softphones work with both SIP and PJSIP.

There are no differences that matter between the two protocols for basic phone services.

Edit: Had oyu setup the default FreePBX 14 distribution, you would have PJSIP on port 5060 and would be posting the opposite right now.

Thanks for your input Jared, but that issue is now resolved. :+1:

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