Outbound call issue

Hello everyone,

So I have fixed the issue of incoming call now I was trying to use FreePBX for outbound but I am not being able to do that.

So here is the trunk pjsip setup.

But after that I am not being able to call anyone.

Here are the logs

  == 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 [2123852066@from-internal:1] Macro("PJSIP/801-00000018", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("PJSIP/801-00000018", "TOUCH_MONITOR=1656932748.252") in new stack
    -- Executing [s@macro-user-callerid:2] Set("PJSIP/801-00000018", "CHANCONTEXT=") in new stack
    -- Executing [s@macro-user-callerid:3] Set("PJSIP/801-00000018", "CHANCONTEXT=") in new stack
    -- Executing [s@macro-user-callerid:4] Set("PJSIP/801-00000018", "CHANEXTENCONTEXT=801-00000018") in new stack
    -- Executing [s@macro-user-callerid:5] Set("PJSIP/801-00000018", "CHANEXTEN=801-00000018") in new stack
    -- Executing [s@macro-user-callerid:6] Set("PJSIP/801-00000018", "CALLERID(number)=801") in new stack
    -- Executing [s@macro-user-callerid:7] Set("PJSIP/801-00000018", "AMPUSER=801") in new stack
    -- Executing [s@macro-user-callerid:8] Set("PJSIP/801-00000018", "HOTDESCKCHAN=801-00000018") in new stack
    -- Executing [s@macro-user-callerid:9] Set("PJSIP/801-00000018", "HOTDESKEXTEN=801") in new stack
    -- Executing [s@macro-user-callerid:10] Set("PJSIP/801-00000018", "HOTDESKCALL=0") in new stack
    -- Executing [s@macro-user-callerid:11] ExecIf("PJSIP/801-00000018", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("PJSIP/801-00000018", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("PJSIP/801-00000018", "0?report") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("PJSIP/801-00000018", "1?Set(REALCALLERIDNUM=801)") in new stack
    -- Executing [s@macro-user-callerid:15] Set("PJSIP/801-00000018", "AMPUSER=801") in new stack
    -- Executing [s@macro-user-callerid:16] GotoIf("PJSIP/801-00000018", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:17] Set("PJSIP/801-00000018", "AMPUSERCIDNAME=name") in new stack
    -- Executing [s@macro-user-callerid:18] ExecIf("PJSIP/801-00000018", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
    -- Executing [s@macro-user-callerid:19] GotoIf("PJSIP/801-00000018", "0?report") in new stack
    -- Executing [s@macro-user-callerid:20] Set("PJSIP/801-00000018", "AMPUSERCID=801") in new stack
    -- Executing [s@macro-user-callerid:21] Set("PJSIP/801-00000018", "__DIAL_OPTIONS=HhTtr") in new stack
    -- Executing [s@macro-user-callerid:22] Set("PJSIP/801-00000018", "CALLERID(all)="name" <801>") in new stack
    -- Executing [s@macro-user-callerid:23] ExecIf("PJSIP/801-00000018", "0?Set(CUSDIAL=)") in new stack
    -- Executing [s@macro-user-callerid:24] ExecIf("PJSIP/801-00000018", "0?Set(CALLERID(all)="name" <801>)") in new stack
    -- Executing [s@macro-user-callerid:25] GotoIf("PJSIP/801-00000018", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:26] ExecIf("PJSIP/801-00000018", "1?Set(GROUP(concurrency_limit)=801)") in new stack
    -- Executing [s@macro-user-callerid:27] NoOp("PJSIP/801-00000018", "Macro Depth is 1") in new stack
    -- Executing [s@macro-user-callerid:28] GotoIf("PJSIP/801-00000018", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [s@macro-user-callerid:29] GotoIf("PJSIP/801-00000018", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,47)
    -- Executing [s@macro-user-callerid:47] Set("PJSIP/801-00000018", "CALLERID(number)=801") in new stack
    -- Executing [s@macro-user-callerid:48] Set("PJSIP/801-00000018", "CALLERID(name)=name") in new stack
    -- Executing [s@macro-user-callerid:49] GotoIf("PJSIP/801-00000018", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:50] Set("PJSIP/801-00000018", "CDR(cnam)=name") in new stack
    -- Executing [s@macro-user-callerid:51] Set("PJSIP/801-00000018", "CDR(cnum)=801") in new stack
    -- Executing [s@macro-user-callerid:52] Set("PJSIP/801-00000018", "CHANNEL(language)=en") in new stack
    -- Executing [2123852066@from-internal:2] Gosub("PJSIP/801-00000018", "sub-record-check,s,1(out,2123852066,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("PJSIP/801-00000018", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("PJSIP/801-00000018", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("PJSIP/801-00000018", "NOW=1656932748") in new stack
    -- Executing [s@sub-record-check:4] Set("PJSIP/801-00000018", "__DAY=04") in new stack
    -- Executing [s@sub-record-check:5] Set("PJSIP/801-00000018", "__MONTH=07") in new stack
    -- Executing [s@sub-record-check:6] Set("PJSIP/801-00000018", "__YEAR=2022") in new stack
    -- Executing [s@sub-record-check:7] Set("PJSIP/801-00000018", "__TIMESTR=20220704-070548") in new stack
    -- Executing [s@sub-record-check:8] Set("PJSIP/801-00000018", "__FROMEXTEN=801") in new stack
    -- Executing [s@sub-record-check:9] Set("PJSIP/801-00000018", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("PJSIP/801-00000018", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("PJSIP/801-00000018", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("PJSIP/801-00000018", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("PJSIP/801-00000018", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("PJSIP/801-00000018", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("PJSIP/801-00000018", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] NoOp("PJSIP/801-00000018", "Outbound Recording Check from 801 to 2123852066") in new stack
    -- Executing [out@sub-record-check:2] Set("PJSIP/801-00000018", "RECMODE=dontcare") in new stack
    -- Executing [out@sub-record-check:3] ExecIf("PJSIP/801-00000018", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [out@sub-record-check:7] Gosub("PJSIP/801-00000018", "recordcheck,1(dontcare,out,2123852066)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/801-00000018", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/801-00000018", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("PJSIP/801-00000018", "") in new stack
    -- Executing [out@sub-record-check:8] Return("PJSIP/801-00000018", "") in new stack
    -- Executing [2123852066@from-internal:3] Set("PJSIP/801-00000018", "_ROUTEID=1") in new stack
    -- Executing [2123852066@from-internal:4] Set("PJSIP/801-00000018", "_ROUTENAME=main") in new stack
    -- Executing [2123852066@from-internal:5] Set("PJSIP/801-00000018", "MOHCLASS=default") in new stack
    -- Executing [2123852066@from-internal:6] ExecIf("PJSIP/801-00000018", "1?Set(TRUNKCIDOVERRIDE=13479803070)") in new stack
    -- Executing [2123852066@from-internal:7] Set("PJSIP/801-00000018", "_CALLERIDNAMEINTERNAL=name") in new stack
    -- Executing [2123852066@from-internal:8] Set("PJSIP/801-00000018", "_CALLERIDNUMINTERNAL=801") in new stack
    -- Executing [2123852066@from-internal:9] Set("PJSIP/801-00000018", "_EMAILNOTIFICATION=FALSE") in new stack
    -- Executing [2123852066@from-internal:10] Set("PJSIP/801-00000018", "_NODEST=") in new stack
    -- Executing [2123852066@from-internal:11] Macro("PJSIP/801-00000018", "dialout-trunk,2,12123852066,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("PJSIP/801-00000018", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("PJSIP/801-00000018", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack
    -- Executing [s@macro-dialout-trunk:3] GosubIf("PJSIP/801-00000018", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:4] ExecIf("PJSIP/801-00000018", "0?Set(CALLERID(num)=801)") in new stack
    -- Executing [s@macro-dialout-trunk:5] GotoIf("PJSIP/801-00000018", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("PJSIP/801-00000018", "DIAL_NUMBER=12123852066") in new stack
    -- Executing [s@macro-dialout-trunk:7] Set("PJSIP/801-00000018", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
    -- Executing [s@macro-dialout-trunk:8] Set("PJSIP/801-00000018", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:9] Set("PJSIP/801-00000018", "DIAL_TRUNK_OPTIONS=T") in new stack
    -- Executing [s@macro-dialout-trunk:10] GotoIf("PJSIP/801-00000018", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,12)
    -- Executing [s@macro-dialout-trunk:12] GotoIf("PJSIP/801-00000018", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:13] Macro("PJSIP/801-00000018", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] NoOp("PJSIP/801-00000018", "801") in new stack
    -- Executing [s@macro-outbound-callerid:2] NoOp("PJSIP/801-00000018", "") in new stack
    -- Executing [s@macro-outbound-callerid:3] NoOp("PJSIP/801-00000018", "off") in new stack
    -- Executing [s@macro-outbound-callerid:4] ExecIf("PJSIP/801-00000018", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:5] ExecIf("PJSIP/801-00000018", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:6] Set("PJSIP/801-00000018", "HOTDESCKCHAN=801-00000018") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("PJSIP/801-00000018", "HOTDESKEXTEN=801") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("PJSIP/801-00000018", "HOTDESKCALL=0") in new stack
    -- Executing [s@macro-outbound-callerid:9] ExecIf("PJSIP/801-00000018", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [s@macro-outbound-callerid:10] ExecIf("PJSIP/801-00000018", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("PJSIP/801-00000018", "ALLOWTHISROUTE=NO") in new stack
    -- Executing [s@macro-outbound-callerid:12] ExecIf("PJSIP/801-00000018", "0?Set(ALLOWTHISROUTE=YES)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("PJSIP/801-00000018", "0?Hangup()") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("PJSIP/801-00000018", "0?Set(REALCALLERIDNUM=801)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("PJSIP/801-00000018", "0?Set(AMPUSER=801)") in new stack
    -- Executing [s@macro-outbound-callerid:16] GotoIf("PJSIP/801-00000018", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,20)
    -- Executing [s@macro-outbound-callerid:20] Set("PJSIP/801-00000018", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:21] Set("PJSIP/801-00000018", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:22] ExecIf("PJSIP/801-00000018", "0?Set(EMERGENCYCID=)") in new stack
    -- Executing [s@macro-outbound-callerid:23] Set("PJSIP/801-00000018", "TRUNKOUTCID=13479803070") in new stack
    -- Executing [s@macro-outbound-callerid:24] GotoIf("PJSIP/801-00000018", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,30)
    -- Executing [s@macro-outbound-callerid:30] ExecIf("PJSIP/801-00000018", "1?Set(CALLERID(all)=13479803070)") in new stack
    -- Executing [s@macro-outbound-callerid:31] ExecIf("PJSIP/801-00000018", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:32] ExecIf("PJSIP/801-00000018", "1?Set(CALLERID(all)=13479803070)") in new stack
    -- Executing [s@macro-outbound-callerid:33] ExecIf("PJSIP/801-00000018", "0?Set(CALLERID(all)=801)") in new stack
    -- Executing [s@macro-outbound-callerid:34] ExecIf("PJSIP/801-00000018", "0?Set(CALLERID(all)=801)") in new stack
    -- Executing [s@macro-outbound-callerid:35] Set("PJSIP/801-00000018", "TIOHIDE=no") in new stack
    -- Executing [s@macro-outbound-callerid:36] ExecIf("PJSIP/801-00000018", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:37] ExecIf("PJSIP/801-00000018", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:38] ExecIf("PJSIP/801-00000018", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:39] ExecIf("PJSIP/801-00000018", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:40] Set("PJSIP/801-00000018", "CDR(outbound_cnum)=13479803070") in new stack
    -- Executing [s@macro-outbound-callerid:41] Set("PJSIP/801-00000018", "CDR(outbound_cnam)=") in new stack
    -- Executing [s@macro-dialout-trunk:14] GosubIf("PJSIP/801-00000018", "0?sub-flp-2,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:15] Set("PJSIP/801-00000018", "OUTNUM=12123852066") in new stack
    -- Executing [s@macro-dialout-trunk:16] Set("PJSIP/801-00000018", "custom=PJSIP") in new stack
    -- Executing [s@macro-dialout-trunk:17] ExecIf("PJSIP/801-00000018", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
    -- Executing [s@macro-dialout-trunk:18] ExecIf("PJSIP/801-00000018", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:19] Macro("PJSIP/801-00000018", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("PJSIP/801-00000018", "") in new stack
    -- Executing [s@macro-dialout-trunk:20] GotoIf("PJSIP/801-00000018", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:21] ExecIf("PJSIP/801-00000018", "1?Set(CONNECTEDLINE(num,i)=12123852066)") in new stack
    -- Executing [s@macro-dialout-trunk:22] ExecIf("PJSIP/801-00000018", "1?Set(CONNECTEDLINE(name,i)=CID:13479803070)") in new stack
    -- Executing [s@macro-dialout-trunk:23] ExecIf("PJSIP/801-00000018", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)13479803070)") in new stack
    -- Executing [s@macro-dialout-trunk:24] GotoIf("PJSIP/801-00000018", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:25] ExecIf("PJSIP/801-00000018", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack
    -- Executing [s@macro-dialout-trunk:26] Set("PJSIP/801-00000018", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("PJSIP/801-00000018", "PJSIP/12123852066@outbound,300,Tb(func-apply-sipheaders^s^1,(2))U(sub-send-obroute-email^12123852066^2123852066^2^1656932748^^13479803070)") in new stack
    -- PJSIP/outbound-00000019 Internal Gosub(func-apply-sipheaders,s,1(2)) start
    -- Executing [s@func-apply-sipheaders:1] NoOp("PJSIP/outbound-00000019", "Applying SIP Headers to channel PJSIP/outbound-00000019") in new stack
    -- Executing [s@func-apply-sipheaders:2] Set("PJSIP/outbound-00000019", "TECH=PJSIP") in new stack
    -- Executing [s@func-apply-sipheaders:3] Set("PJSIP/outbound-00000019", "SIPHEADERKEYS=Alert-Info") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("PJSIP/outbound-00000019", "1") in new stack
    -- Executing [s@func-apply-sipheaders:5] Set("PJSIP/outbound-00000019", "sipheader=unset") in new stack
    -- Executing [s@func-apply-sipheaders:6] ExecIf("PJSIP/outbound-00000019", "1?Set(PJSIP_HEADER(remove,Alert-Info)=)") in new stack
[2022-07-04 07:05:48] ERROR[9422]: res_pjsip_header_funcs.c:546 remove_header: No headers had been previously added to this session.
    -- Executing [s@func-apply-sipheaders:7] ExecIf("PJSIP/outbound-00000019", "0?Set(sipheader=<http://127.0.0.1>;info=unset)") in new stack
    -- Executing [s@func-apply-sipheaders:8] ExecIf("PJSIP/outbound-00000019", "0?Set(sipheader=<http://127.0.0.1>unset)") in new stack
    -- Executing [s@func-apply-sipheaders:9] ExecIf("PJSIP/outbound-00000019", "0?Set(PJSIP_HEADER(add,Alert-Info)=unset)") in new stack
    -- Executing [s@func-apply-sipheaders:10] EndWhile("PJSIP/outbound-00000019", "") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("PJSIP/outbound-00000019", "0") in new stack
    -- Executing [s@func-apply-sipheaders:11] Return("PJSIP/outbound-00000019", "") in new stack
  == Spawn extension (from-pstn, 2123852066, 1) exited non-zero on 'PJSIP/outbound-00000019'
    -- PJSIP/outbound-00000019 Internal Gosub(func-apply-sipheaders,s,1(2)) complete GOSUB_RETVAL=
    -- Called PJSIP/12123852066@outbound
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:28] NoOp("PJSIP/801-00000018", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new stack
    -- Executing [s@macro-dialout-trunk:29] GotoIf("PJSIP/801-00000018", "0?continue,1:s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("PJSIP/801-00000018", "RC=21") in new stack
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("PJSIP/801-00000018", "21,1") in new stack
    -- Goto (macro-dialout-trunk,21,1)
    -- Executing [21@macro-dialout-trunk:1] Goto("PJSIP/801-00000018", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] NoOp("PJSIP/801-00000018", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:2] ExecIf("PJSIP/801-00000018", "1?Set(CALLERID(number)=801)") in new stack
    -- Executing [2123852066@from-internal:12] Macro("PJSIP/801-00000018", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("PJSIP/801-00000018", "") in new stack
    -- Executing [s@macro-outisbusy:2] GotoIf("PJSIP/801-00000018", "0?emergency,1") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("PJSIP/801-00000018", "0?intracompany,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("PJSIP/801-00000018", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
    -- <PJSIP/801-00000018> Playing 'all-circuits-busy-now.ulaw' (language 'en')

Kindly Help,

Thank you

Please enable “pjsip set logger on” at the CLI, as the default logging level doesn’t provide enough detail as to why the channel was considered unavailable.

<--- Transmitting SIP request (461 bytes) to UDP:209.216.2.202:5060 --->
OPTIONS sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 172.19.0.1:5060;rport;branch=z9hG4bKPj43ed781d-eb15-4a2d-bb1b-d44b98b4e57c
From: <sip:[email protected]>;tag=e5e8bf8d-deaf-4e1f-8068-a722e4812a8c
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: 1298ba62-644c-41ce-86c6-087ce3b861c8
CSeq: 6329 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-16.0.21.3(16.27.0)
Content-Length:  0


<--- Received SIP response (628 bytes) from UDP:209.216.2.202:5060 --->
SIP/2.0 200 OK
v:SIP/2.0/UDP 172.19.0.1:5060;rport=5060;branch=z9hG4bKPj43ed781d-eb15-4a2d-bb1b-d44b98b4e57c
f:<sip:[email protected]>;tag=e5e8bf8d-deaf-4e1f-8068-a722e4812a8c
t:<sip:[email protected]>;tag=5c4pytN76geyc
i:1298ba62-644c-41ce-86c6-087ce3b861c8
CSeq:6329 OPTIONS
m:<sip:209.216.2.202>
Accept:application/sdp
Allow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REGISTER,REFER,NOTIFY,PUBLISH,SUBSCRIBE
k:timer,path,replaces
u:talk,hold,conference,presence,as-feature-event,dialog,line-seize,call-info,sla,include-session-description,presence.winfo,message-summary,refer
l:0


<--- Transmitting SIP request (596 bytes) to UDP:209.216.2.202:5060 --->
REGISTER sip:provider.domain.com SIP/2.0
Via: SIP/2.0/UDP 172.19.0.1:5060;rport;branch=z9hG4bKPj247398d5-24f6-407a-917e-b13f6544dd71
From: <sip:[email protected]>;tag=02e230a3-19aa-4181-9b49-31f3f9831d2c
To: <sip:[email protected]>
Call-ID: 69d2fd9c-92dd-4669-86f3-f5e0d90a702c
CSeq: 43983 REGISTER
Contact: <sip:[email protected]:5060;line=nrsbbsd>
Expires: 3600
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Max-Forwards: 70
User-Agent: FPBX-16.0.21.3(16.27.0)
Content-Length:  0


<--- Received SIP response (583 bytes) from UDP:209.216.2.202:5060 --->
SIP/2.0 401 Unauthorized
v:SIP/2.0/UDP 172.19.0.1:5060;rport=5060;branch=z9hG4bKPj247398d5-24f6-407a-917e-b13f6544dd71
f:<sip:[email protected]>;tag=02e230a3-19aa-4181-9b49-31f3f9831d2c
t:<sip:[email protected]>;tag=HSK0KZZH4USyQ
i:69d2fd9c-92dd-4669-86f3-f5e0d90a702c
CSeq:43983 REGISTER
Allow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REGISTER,REFER,NOTIFY,PUBLISH,SUBSCRIBE
k:timer,path,replaces
WWW-Authenticate:Digest realm="provider.domain.com",nonce="c2c05b07-8f06-4951-86a8-f1c11ee6d7f6",algorithm=MD5,qop="auth"
l:0


<--- Transmitting SIP request (880 bytes) to UDP:209.216.2.202:5060 --->
REGISTER sip:provider.domain.com SIP/2.0
Via: SIP/2.0/UDP 172.19.0.1:5060;rport;branch=z9hG4bKPjcebe78cf-4e8c-4db8-b7b4-517279cd301f
From: <sip:[email protected]>;tag=02e230a3-19aa-4181-9b49-31f3f9831d2c
To: <sip:[email protected]>
Call-ID: 69d2fd9c-92dd-4669-86f3-f5e0d90a702c
CSeq: 43984 REGISTER
Contact: <sip:[email protected]:5060;line=nrsbbsd>
Expires: 3600
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Max-Forwards: 70
User-Agent: FPBX-16.0.21.3(16.27.0)
Authorization: Digest username="13479803070", realm="provider.domain.com", nonce="c2c05b07-8f06-4951-86a8-f1c11ee6d7f6", uri="sip:provider.domain.com", response="d046e0b84b58e501d018cc21286c7eda", algorithm=MD5, cnonce="69b3717487ce4275a9ba87f959fa6443", qop=auth, nc=00000001
Content-Length:  0


<--- Received SIP response (454 bytes) from UDP:209.216.2.202:5060 --->
SIP/2.0 403 Forbidden
v:SIP/2.0/UDP 172.19.0.1:5060;rport=5060;branch=z9hG4bKPjcebe78cf-4e8c-4db8-b7b4-517279cd301f
f:<sip:[email protected]>;tag=02e230a3-19aa-4181-9b49-31f3f9831d2c
t:<sip:[email protected]>;tag=mmZaSgjvUpvpa
i:69d2fd9c-92dd-4669-86f3-f5e0d90a702c
CSeq:43984 REGISTER
Allow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REGISTER,REFER,NOTIFY,PUBLISH,SUBSCRIBE
k:timer,path,replaces
l:0


[2022-07-04 07:49:27] WARNING[1040]: res_pjsip_outbound_registration.c:1059 handle_registration_response: 403 Forbidden fatal response received from 'sip:provider.domain.com' on registration attempt to 'sip:[email protected]', retrying in '30' seconds
<--- Transmitting SIP request (486 bytes) to UDP:192.168.1.10:64658 --->
OPTIONS sip:[email protected]:64658;rinstance=88cc950aa2b921fe SIP/2.0
Via: SIP/2.0/UDP 172.19.0.1:5060;rport;branch=z9hG4bKPjce9492fd-9ac5-4e69-b58f-25b1d1863838
From: <sip:[email protected]>;tag=3acd3a6f-bbbf-4f18-834d-51d8ee9319de
To: <sip:[email protected];rinstance=88cc950aa2b921fe>
Contact: <sip:[email protected]:5060>
Call-ID: 954b2f4c-3ca3-4017-83a5-74f8214afa56
CSeq: 62233 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-16.0.21.3(16.27.0)
Content-Length:  0


<--- Received SIP response (693 bytes) from UDP:192.168.1.10:64658 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.19.0.1:5060;rport=5060;branch=z9hG4bKPjce9492fd-9ac5-4e69-b58f-25b1d1863838
Contact: <sip:192.168.1.10:64658>
To: <sip:[email protected];rinstance=88cc950aa2b921fe>;tag=9c3f8833
From: <sip:[email protected]>;tag=3acd3a6f-bbbf-4f18-834d-51d8ee9319de
Call-ID: 954b2f4c-3ca3-4017-83a5-74f8214afa56
CSeq: 62233 OPTIONS
Accept: application/sdp, application/sdp
Accept-Language: en
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco-serviceuri
User-Agent: Z 5.5.8 v2.10.17.2
Allow-Events: presence, kpml, talk
Content-Length: 0


<--- Transmitting SIP request (449 bytes) to UDP:209.216.2.202:5060 --->
OPTIONS sip:provider.domain.com:5060 SIP/2.0
Via: SIP/2.0/UDP 172.19.0.1:5060;rport;branch=z9hG4bKPj43120446-728e-4c5f-8b3a-1f57eea82ca0
From: <sip:[email protected]>;tag=0183d847-cfc1-4657-b4ad-439ff8c0bd20
To: <sip:provider.domain.com>
Contact: <sip:[email protected]:5060>
Call-ID: 5cd5b423-ea7e-46ba-81f5-9dcb62d29e3f
CSeq: 54981 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-16.0.21.3(16.27.0)
Content-Length:  0


<--- Received SIP response (620 bytes) from UDP:209.216.2.202:5060 --->
SIP/2.0 200 OK
v:SIP/2.0/UDP 172.19.0.1:5060;rport=5060;branch=z9hG4bKPj43120446-728e-4c5f-8b3a-1f57eea82ca0
f:<sip:[email protected]>;tag=0183d847-cfc1-4657-b4ad-439ff8c0bd20
t:<sip:provider.domain.com>;tag=HXQ5p6BNjgXQj
i:5cd5b423-ea7e-46ba-81f5-9dcb62d29e3f
CSeq:54981 OPTIONS
m:<sip:209.216.2.202>
Accept:application/sdp
Allow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REGISTER,REFER,NOTIFY,PUBLISH,SUBSCRIBE
k:timer,path,replaces
u:talk,hold,conference,presence,as-feature-event,dialog,line-seize,call-info,sla,include-session-description,presence.winfo,message-summary,refer
l:0


<--- Received SIP request (875 bytes) from UDP:192.168.1.10:64658 --->
REGISTER sip:172.19.0.1;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.1.10:64658;branch=z9hG4bK-524287-1---323ddee296f15e60;rport
Max-Forwards: 70
Contact: <sip:[email protected]:64658;transport=UDP;rinstance=88cc950aa2b921fe>
To: <sip:[email protected];transport=UDP>
From: <sip:[email protected];transport=UDP>;tag=2c761121
Call-ID: prVSi_txrKub4yzSP5mhkA..
CSeq: 379 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
User-Agent: Z 5.5.8 v2.10.17.2
Authorization: Digest username="8082",realm="asterisk",nonce="1656935324/2ee0e65fa96666effc8f6d8556a32fdb",uri="sip:172.19.0.1;transport=UDP",response="a38641262d3c6e26b71f141ec5506e2a",cnonce="9a2d6e2e76331f0b9c8484898b91008b",nc=00000002,qop=auth,algorithm=MD5,opaque="28ddcb890355a8c4"
Allow-Events: presence, kpml, talk
Content-Length: 0


<--- Transmitting SIP response (526 bytes) to UDP:192.168.1.10:64658 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.10:64658;rport=64658;received=192.168.1.10;branch=z9hG4bK-524287-1---323ddee296f15e60
Call-ID: prVSi_txrKub4yzSP5mhkA..
From: <sip:[email protected]>;tag=2c761121
To: <sip:[email protected]>;tag=z9hG4bK-524287-1---323ddee296f15e60
CSeq: 379 REGISTER
WWW-Authenticate: Digest realm="asterisk",nonce="1656935378/3473dc6d0ffda2c23c264bee7a5ec8db",opaque="06a8b7a57ff9fdbe",stale=true,algorithm=MD5,qop="auth"
Server: FPBX-16.0.21.3(16.27.0)
Content-Length:  0


<--- Received SIP request (875 bytes) from UDP:192.168.1.10:64658 --->
REGISTER sip:172.19.0.1;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.1.10:64658;branch=z9hG4bK-524287-1---907456acf3689777;rport
Max-Forwards: 70
Contact: <sip:[email protected]:64658;transport=UDP;rinstance=88cc950aa2b921fe>
To: <sip:[email protected];transport=UDP>
From: <sip:[email protected];transport=UDP>;tag=2c761121
Call-ID: prVSi_txrKub4yzSP5mhkA..
CSeq: 380 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
User-Agent: Z 5.5.8 v2.10.17.2
Authorization: Digest username="8082",realm="asterisk",nonce="1656935378/3473dc6d0ffda2c23c264bee7a5ec8db",uri="sip:172.19.0.1;transport=UDP",response="87dd8c4859617d256ff27351c4d94223",cnonce="43ac225995632621deaf5b94bbf8b06f",nc=00000001,qop=auth,algorithm=MD5,opaque="06a8b7a57ff9fdbe"
Allow-Events: presence, kpml, talk
Content-Length: 0


<--- Transmitting SIP response (489 bytes) to UDP:192.168.1.10:64658 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.10:64658;rport=64658;received=192.168.1.10;branch=z9hG4bK-524287-1---907456acf3689777
Call-ID: prVSi_txrKub4yzSP5mhkA..
From: <sip:[email protected]>;tag=2c761121
To: <sip:[email protected]>;tag=z9hG4bK-524287-1---907456acf3689777
CSeq: 380 REGISTER
Date: Mon, 04 Jul 2022 11:49:38 GMT
Contact: <sip:[email protected]:64658;rinstance=88cc950aa2b921fe>;expires=59
Expires: 60
Server: FPBX-16.0.21.3(16.27.0)
Content-Length:  0

This log doesn’t contain any call attempts,. However your register attempt is being rejected as forbidden. The most likely reason for this is that you are sending a contact address on your private network. That suggests you have not set your public address correctly.

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