Hello guys.
I’m deploying Freepbx system. I do not have any issues with incoming calls. I have an issue with outgoing calls. As I understood from logfiles, My extension is unauthorized: SIP/2.0 401 Unauthorized||
It does not matter if it’s a sipphone or Openstage 15 desk phone.
As a result of outgoing call I hear the voicemail "All circuits are busy now. Please try your call again later. In the logfile there is 503 Message:503 SIP/2.0 503 Service Unavailable
Can you give me a hint where should I change the configuration. The freepbx version is 16.0.030.
I attach a logging of a test call.
Thank you.
<— Received SIP request (987 bytes) from UDP:192.168.1.137:56399 —>
INVITE sip:[email protected];transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.1.137:56399;branch=z9hG4bK-524287-1—a6ba145148695fe4;rport
Max-Forwards: 70
Contact: sip:[email protected]:56399;transport=UDP
To: sip:[email protected]
From: sip:[email protected];transport=UDP;tag=7020441c
Call-ID: 98-RVGKc_Jo4ZjA47h6HhA…
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
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: 331
v=0
o=Z 0 517978179 IN IP4 192.168.1.137
s=Z
c=IN IP4 192.168.1.137
t=0 0
m=audio 50939 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 (509 bytes) to UDP:192.168.1.137:56399 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.137:56399;rport=56399;received=192.168.1.137;branch=z9hG4bK-524287-1—a6ba145148695fe4
Call-ID: 98-RVGKc_Jo4ZjA47h6HhA…
From: sip:[email protected]2.168.1.71;tag=7020441c
To: sip:[email protected];tag=z9hG4bK-524287-1—a6ba145148695fe4
CSeq: 1 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1675627132/dd7cfad8c3cc1bb9a2c96ecd327e79f9”,opaque=“64161cc26d4d63df”,algorithm=MD5,qop=“auth”
Server: FPBX-16.0.30(18.16.0)
Content-Length: 0
<— Received SIP request (359 bytes) from UDP:192.168.1.137:56399 —>
ACK sip:[email protected];transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.1.137:56399;branch=z9hG4bK-524287-1—a6ba145148695fe4;rport
Max-Forwards: 70
To: sip:[email protected];tag=z9hG4bK-524287-1—a6ba145148695fe4
From: sip:[email protected];transport=UDP;tag=7020441c
Call-ID: 98-RVGKc_Jo4ZjA47h6HhA…
CSeq: 1 ACK
Content-Length: 0
<— Received SIP request (1288 bytes) from UDP:192.168.1.137:56399 —>
INVITE sip:[email protected];transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.1.137:56399;branch=z9hG4bK-524287-1—9f966d29fde56d00;rport
Max-Forwards: 70
Contact: sip:[email protected]:56399;transport=UDP
To: sip:[email protected]
From: sip:[email protected];transport=UDP;tag=7020441c
Call-ID: 98-RVGKc_Jo4ZjA47h6HhA…
CSeq: 2 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
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=“201”,realm=“asterisk”,nonce=“1675627132/dd7cfad8c3cc1bb9a2c96ecd327e79f9”,uri="sip:[email protected];transport=UDP",response=“de861ddb5948c3049ba698ed59df1bb1”,cnonce=“c30071184b1490fddc1718bd9f29ed60”,nc=00000001,qop=auth,algorithm=MD5,opaque=“64161cc26d4d63df”
Allow-Events: presence, kpml, talk
Content-Length: 331
v=0
o=Z 0 517978179 IN IP4 192.168.1.137
s=Z
c=IN IP4 192.168.1.137
t=0 0
m=audio 50939 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 (317 bytes) to UDP:192.168.1.137:56399 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.137:56399;rport=56399;received=192.168.1.137;branch=z9hG4bK-524287-1—9f966d29fde56d00
Call-ID: 98-RVGKc_Jo4ZjA47h6HhA…
From: sip:[email protected];tag=7020441c
To: sip:[email protected]
CSeq: 2 INVITE
Server: FPBX-16.0.30(18.16.0)
Content-Length: 0
== 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/201-000000c7”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/201-000000c7”, “TOUCH_MONITOR=1675627132.429”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/201-000000c7”, “CHANCONTEXT=”) in new stack
– Executing [[email protected]:3] Progress(“PJSIP/201-000000c7”, “”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/201-000000c7”, “CHANCONTEXT=”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/201-000000c7”, “CHANEXTENCONTEXT=201-000000c7”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/201-000000c7”, “CHANEXTEN=201-000000c7”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/201-000000c7”, “CALLERID(number)=201”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/201-000000c7”, “AMPUSER=201”) in new stack
– Executing [[email protected]:9] Set(“PJSIP/201-000000c7”, “HOTDESCKCHAN=201-000000c7”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/201-000000c7”, “HOTDESKEXTEN=201”) in new stack
– Executing [[email protected]:11] Set(“PJSIP/201-000000c7”, “HOTDESKCALL=0”) in new stack
– Executing [[email protected]:12] ExecIf(“PJSIP/201-000000c7”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/201-000000c7”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/201-000000c7”, “0?report”) in new stack
– Executing [[email protected]:15] ExecIf(“PJSIP/201-000000c7”, “1?Set(REALCALLERIDNUM=201)”) in new stack
– Executing [[email protected]:16] Set(“PJSIP/201-000000c7”, “AMPUSER=201”) in new stack
– Executing [[email protected]:17] GotoIf(“PJSIP/201-000000c7”, “0?limit”) in new stack
– Executing [[email protected]:18] Set(“PJSIP/201-000000c7”, “AMPUSERCIDNAME=Gabi Gruszewska”) in new stack
– Executing [[email protected]:19] ExecIf(“PJSIP/201-000000c7”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:20] GotoIf(“PJSIP/201-000000c7”, “0?report”) in new stack
– Executing [[email protected]:21] Set(“PJSIP/201-000000c7”, “AMPUSERCID=201”) in new stack
– Executing [[email protected]:22] Set(“PJSIP/201-000000c7”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:23] Set(“PJSIP/201-000000c7”, “CALLERID(all)=“Gabi Gruszewska” <201>”) in new stack
– Executing [[email protected]:24] ExecIf(“PJSIP/201-000000c7”, “0?Set(CUSDIAL=)”) in new stack
> 0x7f230837a9c0 – Strict RTP learning after remote address set to: 192.168.1.137:50939
<— Transmitting SIP response (845 bytes) to UDP:192.168.1.137:56399 —>
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.1.137:56399;rport=56399;received=192.168.1.137;branch=z9hG4bK-524287-1—9f966d29fde56d00
Call-ID: 98-RVGKc_Jo4ZjA47h6HhA…
From: sip:[email protected];tag=7020441c
To: sip:[email protected];tag=3f3010e4-b48a-47a6-8e8d-86b5d646328f
CSeq: 2 INVITE
Server: FPBX-16.0.30(18.16.0)
Contact: sip:192.168.1.71:5060
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, REFER
Content-Type: application/sdp
Content-Length: 298
v=0
o=- 0 517978181 IN IP4 192.168.1.71
s=Asterisk
c=IN IP4 192.168.1.71
t=0 0
m=audio 12458 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
-- Executing [[email protected]:25] ExecIf("PJSIP/201-000000c7", "0?Set(CALLERID(all)="Gabi Gruszewska" <201>)") in new stack
-- Executing [[email protected]:26] GotoIf("PJSIP/201-000000c7", "0?limit") in new stack
-- Executing [[email protected]:27] ExecIf("PJSIP/201-000000c7", "1?Set(GROUP(concurrency_limit)=201)") in new stack
-- Executing [[email protected]:28] ExecIf("PJSIP/201-000000c7", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [[email protected]:29] NoOp("PJSIP/201-000000c7", "Macro Depth is 1") in new stack
-- Executing [[email protected]:30] GotoIf("PJSIP/201-000000c7", "1?report2:macroerror") in new stack
-- Goto (macro-user-callerid,s,31)
-- Executing [[email protected]:31] GotoIf("PJSIP/201-000000c7", "1?continue") in new stack
-- Goto (macro-user-callerid,s,50)
-- Executing [[email protected]:50] Set("PJSIP/201-000000c7", "CALLERID(number)=201") in new stack
-- Executing [[email protected]:51] Set("PJSIP/201-000000c7", "CALLERID(name)=Gabi Gruszewska") in new stack
-- Executing [[email protected]:52] GotoIf("PJSIP/201-000000c7", "0?cnum") in new stack
-- Executing [[email protected]:53] Set("PJSIP/201-000000c7", "CDR(cnam)=Gabi Gruszewska") in new stack
-- Executing [[email protected]:54] Set("PJSIP/201-000000c7", "CDR(cnum)=201") in new stack
-- Executing [[email protected]:55] Set("PJSIP/201-000000c7", "CHANNEL(language)=en") in new stack
-- Executing [[email protected]:2] Gosub("PJSIP/201-000000c7", "sub-record-check,s,1(out,507xxxxxx,dontcare)") in new stack
-- Executing [[email protected]:1] GotoIf("PJSIP/201-000000c7", "0?initialized") in new stack
-- Executing [[email protected]:2] Set("PJSIP/201-000000c7", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [[email protected]:3] Set("PJSIP/201-000000c7", "NOW=1675627132") in new stack
-- Executing [[email protected]:4] Set("PJSIP/201-000000c7", "__DAY=05") in new stack
-- Executing [[email protected]:5] Set("PJSIP/201-000000c7", "__MONTH=02") in new stack
-- Executing [[email protected]:6] Set("PJSIP/201-000000c7", "__YEAR=2023") in new stack
-- Executing [[email protected]:7] Set("PJSIP/201-000000c7", "__TIMESTR=20230205-205852") in new stack
-- Executing [[email protected]:8] Set("PJSIP/201-000000c7", "__FROMEXTEN=201") in new stack
-- Executing [[email protected]:9] Set("PJSIP/201-000000c7", "__MON_FMT=wav") in new stack
-- Executing [[email protected]:10] NoOp("PJSIP/201-000000c7", "Recordings initialized") in new stack
-- Executing [[email protected]:11] ExecIf("PJSIP/201-000000c7", "0?Set(ARG3=dontcare)") in new stack
-- Executing [[email protected]:12] Set("PJSIP/201-000000c7", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [[email protected]:13] ExecIf("PJSIP/201-000000c7", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [[email protected]:14] GotoIf("PJSIP/201-000000c7", "3?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [[email protected]:17] GotoIf("PJSIP/201-000000c7", "1?sub-record-check,out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [[email protected]:1] NoOp("PJSIP/201-000000c7", "Outbound Recording Check from 201 to 507xxxxxx") in new stack
-- Executing [[email protected]:2] Set("PJSIP/201-000000c7", "RECMODE=dontcare") in new stack
-- Executing [[email protected]:3] ExecIf("PJSIP/201-000000c7", "1?Goto(routewins)") in new stack
-- Goto (sub-record-check,out,7)
-- Executing [[email protected]:7] Gosub("PJSIP/201-000000c7", "recordcheck,1(dontcare,out,507xxxxxx)") in new stack
-- Executing [[email protected]:1] NoOp("PJSIP/201-000000c7", "Starting recording check against dontcare") in new stack
-- Executing [[email protected]:2] Goto("PJSIP/201-000000c7", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [[email protected]:3] Return("PJSIP/201-000000c7", "") in new stack
-- Executing [[email protected]:8] Return("PJSIP/201-000000c7", "") in new stack
-- Executing [[email protected]:3] ExecIf("PJSIP/201-000000c7", "0 ?Set(CDR(accountcode)=)") in new stack
-- Executing [[email protected]:4] Set("PJSIP/201-000000c7", "_ROUTEID=3") in new stack
-- Executing [[email protected]:5] Set("PJSIP/201-000000c7", "_ROUTENAME=fcn_out") in new stack
-- Executing [[email protected]:6] Set("PJSIP/201-000000c7", "MOHCLASS=default") in new stack
-- Executing [[email protected]:7] ExecIf("PJSIP/201-000000c7", "1?Set(TRUNKCIDOVERRIDE=585xxxxxx)") in new stack
-- Executing [[email protected]:8] Set("PJSIP/201-000000c7", "_CALLERIDNAMEINTERNAL=Gabi Gruszewska") in new stack
-- Executing [[email protected]:9] Set("PJSIP/201-000000c7", "_CALLERIDNUMINTERNAL=201") in new stack
-- Executing [[email protected]:10] Set("PJSIP/201-000000c7", "_EMAILNOTIFICATION=FALSE") in new stack
-- Executing [[email protected]:11] Set("PJSIP/201-000000c7", "_NODEST=") in new stack
-- Executing [[email protected]:12] Macro("PJSIP/201-000000c7", "dialout-trunk,1,507xxxxxx,,off") in new stack
-- Executing [[email protected]:1] Set("PJSIP/201-000000c7", "DIAL_TRUNK=1") in new stack
-- Executing [[email protected]:2] ExecIf("PJSIP/201-000000c7", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack
-- Executing [[email protected]:3] GosubIf("PJSIP/201-000000c7", "0?sub-pincheck,s,1()") in new stack
-- Executing [[email protected]:4] ExecIf("PJSIP/201-000000c7", "0?Set(CALLERID(num)=201)") in new stack
-- Executing [[email protected]:5] GotoIf("PJSIP/201-000000c7", "0?disabletrunk,1") in new stack
-- Executing [[email protected]:6] Set("PJSIP/201-000000c7", "DIAL_NUMBER=507xxxxxx") in new stack
-- Executing [[email protected]:7] Set("PJSIP/201-000000c7", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
-- Executing [[email protected]:8] Set("PJSIP/201-000000c7", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [[email protected]:9] Set("PJSIP/201-000000c7", "DIAL_TRUNK_OPTIONS=T") in new stack
-- Executing [[email protected]:10] GotoIf("PJSIP/201-000000c7", "0?nomax") in new stack
-- Executing [[email protected]:11] GotoIf("PJSIP/201-000000c7", "0?chanfull") in new stack
-- Executing [[email protected]:12] GotoIf("PJSIP/201-000000c7", "0?skipoutcid") in new stack
-- Executing [[email protected]:13] Macro("PJSIP/201-000000c7", "outbound-callerid,1") in new stack
-- Executing [[email protected]:1] NoOp("PJSIP/201-000000c7", "201") in new stack
-- Executing [[email protected]:2] NoOp("PJSIP/201-000000c7", "") in new stack
-- Executing [[email protected]:3] NoOp("PJSIP/201-000000c7", "off") in new stack
-- Executing [[email protected]:4] ExecIf("PJSIP/201-000000c7", "0?Set(CALLERID(name-pres)=)") in new stack
-- Executing [[email protected]:5] ExecIf("PJSIP/201-000000c7", "0?Set(CALLERID(num-pres)=)") in new stack
-- Executing [[email protected]:6] Set("PJSIP/201-000000c7", "HOTDESCKCHAN=201-000000c7") in new stack
-- Executing [[email protected]:7] Set("PJSIP/201-000000c7", "HOTDESKEXTEN=201") in new stack
-- Executing [[email protected]:8] Set("PJSIP/201-000000c7", "HOTDESKCALL=0") in new stack
-- Executing [[email protected]:9] ExecIf("PJSIP/201-000000c7", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [[email protected]:10] ExecIf("PJSIP/201-000000c7", "0?Set(CALLERID(name)=)") in new stack
-- Executing [[email protected]:11] Set("PJSIP/201-000000c7", "ALLOWTHISROUTE=NO") in new stack
-- Executing [[email protected]:12] ExecIf("PJSIP/201-000000c7", "0?Set(ALLOWTHISROUTE=YES)") in new stack
-- Executing [[email protected]:13] ExecIf("PJSIP/201-000000c7", "0?Hangup()") in new stack
-- Executing [[email protected]:14] ExecIf("PJSIP/201-000000c7", "0?Set(REALCALLERIDNUM=201)") in new stack
-- Executing [[email protected]:15] ExecIf("PJSIP/201-000000c7", "0?Set(AMPUSER=201)") in new stack
-- Executing [[email protected]:16] GotoIf("PJSIP/201-000000c7", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,20)
-- Executing [[email protected]:20] Set("PJSIP/201-000000c7", "USEROUTCID=") in new stack
-- Executing [[email protected]:21] Set("PJSIP/201-000000c7", "EMERGENCYCID=") in new stack
-- Executing [[email protected]:22] ExecIf("PJSIP/201-000000c7", "0?Set(SCDEXT=YES)") in new stack
-- Executing [[email protected]:23] ExecIf("PJSIP/201-000000c7", "0?Set(EMERGENCYCID=)") in new stack
-- Executing [[email protected]:24] ExecIf("PJSIP/201-000000c7", "0?Set(CALLERID(name)=)") in new stack
-- Executing [[email protected]:25] ExecIf("PJSIP/201-000000c7", "0?Set(EMERGENCYCID=)") in new stack
-- Executing [[email protected]:26] Set("PJSIP/201-000000c7", "TRUNKOUTCID=+48585xxxxxx") in new stack
-- Executing [[email protected]:27] GotoIf("PJSIP/201-000000c7", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,33)
-- Executing [[email protected]:33] ExecIf("PJSIP/201-000000c7", "1?Set(CALLERID(all)=+48585xxxxxx)") in new stack
-- Executing [[email protected]:34] ExecIf("PJSIP/201-000000c7", "0?Set(CALLERID(all)=)") in new stack
-- Executing [[email protected]:35] ExecIf("PJSIP/201-000000c7", "1?Set(CALLERID(all)=585xxxxxx)") in new stack
-- Executing [[email protected]:36] ExecIf("PJSIP/201-000000c7", "0?Set(CALLERID(all)=201)") in new stack
-- Executing [[email protected]:37] ExecIf("PJSIP/201-000000c7", "0?Set(CALLERID(all)=201)") in new stack
-- Executing [[email protected]:38] Set("PJSIP/201-000000c7", "TIOHIDE=no") in new stack
-- Executing [[email protected]:39] ExecIf("PJSIP/201-000000c7", "0?Set(CALLERID(name-pres)=prohib_passed_screen)") in new stack
-- Executing [[email protected]:40] ExecIf("PJSIP/201-000000c7", "0?Set(CALLERID(num-pres)=prohib_passed_screen)") in new stack
-- Executing [[email protected]:41] ExecIf("PJSIP/201-000000c7", "0?Set(CALLERID(name-pres)=prohib_passed_screen)") in new stack
-- Executing [[email protected]:42] ExecIf("PJSIP/201-000000c7", "0?Set(CALLERID(num-pres)=prohib_passed_screen)") in new stack
-- Executing [[email protected]:43] Set("PJSIP/201-000000c7", "CDR(outbound_cnum)=585xxxxxx") in new stack
-- Executing [[email protected]:44] Set("PJSIP/201-000000c7", "CDR(outbound_cnam)=") in new stack
-- Executing [[email protected]:14] GosubIf("PJSIP/201-000000c7", "0?sub-flp-1,s,1()") in new stack
-- Executing [[email protected]:15] Set("PJSIP/201-000000c7", "OUTNUM=507xxxxxx") in new stack
-- Executing [[email protected]:16] Set("PJSIP/201-000000c7", "custom=PJSIP") in new stack
-- Executing [[email protected]:17] ExecIf("PJSIP/201-000000c7", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
-- Executing [[email protected]:18] ExecIf("PJSIP/201-000000c7", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
-- Executing [[email protected]:19] GotoIf("PJSIP/201-000000c7", "1?gocall") in new stack
-- Goto (macro-dialout-trunk,s,21)
-- Executing [[email protected]:21] Macro("PJSIP/201-000000c7", "dialout-trunk-predial-hook,") in new stack
-- Executing [[email protected]:1] MacroExit("PJSIP/201-000000c7", "") in new stack
-- Executing [[email protected]:22] GotoIf("PJSIP/201-000000c7", "0?skipcrm") in new stack
-- Executing [[email protected]:23] Set("PJSIP/201-000000c7", "__CRM_DIRECTION=OUTBOUND") in new stack
-- Executing [[email protected]:24] Set("PJSIP/201-000000c7", "__CRM_DESTINATION=507xxxxxx") in new stack
-- Executing [[email protected]:25] Set("PJSIP/201-000000c7", "__CRM_SOURCE=201") in new stack
-- Executing [[email protected]:26] AGI("PJSIP/201-000000c7", "agi://127.0.0.1/sangomacrm.agi") in new stack
> 0x7f230837a9c0 -- Strict RTP switching to RTP target address 192.168.1.137:50939 as source
-- <PJSIP/201-000000c7>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
-- Executing [[email protected]:27] Set("PJSIP/201-000000c7", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
-- Executing [[email protected]:28] NoOp("PJSIP/201-000000c7", "CRM Finished") in new stack
-- Executing [[email protected]:29] GotoIf("PJSIP/201-000000c7", "0?bypass,1") in new stack
-- Executing [[email protected]:30] ExecIf("PJSIP/201-000000c7", "1?Set(CONNECTEDLINE(num,i)=507xxxxxx)") in new stack
-- Executing [[email protected]:31] ExecIf("PJSIP/201-000000c7", "1?Set(CONNECTEDLINE(name,i)=CID:585xxxxxx)") in new stack
-- Executing [[email protected]:32] ExecIf("PJSIP/201-000000c7", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)585xxxxxx)") in new stack
-- Executing [[email protected]:33] GotoIf("PJSIP/201-000000c7", "0?customtrunk") in new stack
-- Executing [[email protected]:34] ExecIf("PJSIP/201-000000c7", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack
-- Executing [[email protected]:35] Set("PJSIP/201-000000c7", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
-- Executing [[email protected]:36] Dial("PJSIP/201-000000c7", "PJSIP/[email protected],300,Tb(func-apply-sipheaders^s^1,(1))U(sub-send-obroute-email^507xxxxxx^507xxxxxx^1^1675627132^^585xxxxxx)") in new stack
-- PJSIP/fcn-000000c8 Internal Gosub(func-apply-sipheaders,s,1(1)) start
-- Executing [[email protected]:1] ExecIf("PJSIP/fcn-000000c8", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
-- Executing [[email protected]:2] NoOp("PJSIP/fcn-000000c8", "Applying SIP Headers to channel PJSIP/fcn-000000c8") in new stack
-- Executing [[email protected]:3] Set("PJSIP/fcn-000000c8", "TECH=PJSIP") in new stack
-- Executing [[email protected]:4] Set("PJSIP/fcn-000000c8", "SIPHEADERKEYS=Alert-Info") in new stack
-- Executing [[email protected]:5] While("PJSIP/fcn-000000c8", "1") in new stack
-- Executing [[email protected]:6] Set("PJSIP/fcn-000000c8", "sipheader=unset") in new stack
-- Executing [[email protected]:7] ExecIf("PJSIP/fcn-000000c8", "1?Set(PJSIP_HEADER(remove,Alert-Info)=)") in new stack
[2023-02-05 20:58:52] ERROR[18551]: res_pjsip_header_funcs.c:717 remove_header: No headers had been previously added to this session.
– Executing [[email protected]:8] ExecIf(“PJSIP/fcn-000000c8”, “0?Set(sipheader=http://127.0.0.1;info=unset)”) in new stack
– Executing [[email protected]:9] ExecIf(“PJSIP/fcn-000000c8”, “0?Set(sipheader=http://127.0.0.1unset)”) in new stack
– Executing [[email protected]:10] ExecIf(“PJSIP/fcn-000000c8”, “0?Set(PJSIP_HEADER(add,Alert-Info)=unset)”) in new stack
– Executing [[email protected]:11] EndWhile(“PJSIP/fcn-000000c8”, “”) in new stack
– Executing [[email protected]:5] While(“PJSIP/fcn-000000c8”, “0”) in new stack
– Executing [[email protected]:12] Return(“PJSIP/fcn-000000c8”, “”) in new stack
== Spawn extension (func-apply-sipheaders, s, 12) exited non-zero on ‘PJSIP/fcn-000000c8’
– PJSIP/fcn-000000c8 Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
– Called PJSIP/[email protected]
<— Transmitting SIP request (976 bytes) to UDP:213.218.116.66:5060 —>
INVITE sip:sip.freeconet.pl SIP/2.0
Via: SIP/2.0/UDP 192.168.1.71:5060;rport;branch=z9hG4bKPj9766ccbc-8b48-4a2e-88c2-23c12a1fd153
From: sip:[email protected];tag=6c39c89e-8b83-4e58-b2cc-3ed055412416
To: sip:[email protected]
Contact: sip:[email protected]:5060
Call-ID: 18d245e9-a62e-4825-8a61-76aeda1613ec
CSeq: 19527 INVITE
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Route: sip:[email protected]:5060
Max-Forwards: 70
User-Agent: FPBX-16.0.30(18.16.0)
Content-Type: application/sdp
Content-Length: 260
v=0
o=- 1755944627 1755944627 IN IP4 192.168.1.71
s=Asterisk
c=IN IP4 192.168.1.71
t=0 0
m=audio 18144 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:230
a=sendrecv
<— Received SIP response (395 bytes) from UDP:213.218.116.66:5060 —>
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.1.71:5060;rport=46916;branch=z9hG4bKPj9766ccbc-8b48-4a2e-88c2-23c12a1fd153
From: sip:[email protected];tag=6c39c89e-8b83-4e58-b2cc-3ed055412416
To: sip:[email protected];tag=021dcb287e58103b8769536f43974d88.f196
Call-ID: 18d245e9-a62e-4825-8a61-76aeda1613ec
CSeq: 19527 INVITE
Server: Carrier-eX v.0.9
Content-Length: 0
<— Transmitting SIP request (471 bytes) to UDP:213.218.116.66:5060 —>
ACK sip:sip.freeconet.pl SIP/2.0
Via: SIP/2.0/UDP 192.168.1.71:5060;rport;branch=z9hG4bKPj9766ccbc-8b48-4a2e-88c2-23c12a1fd153
From: sip:[email protected];tag=6c39c89e-8b83-4e58-b2cc-3ed055412416
To: sip:[email protected];tag=021dcb287e58103b8769536f43974d88.f196
Call-ID: 18d245e9-a62e-4825-8a61-76aeda1613ec
CSeq: 19527 ACK
Route: sip:[email protected]:5060
Max-Forwards: 70
User-Agent: FPBX-16.0.30(18.16.0)
Content-Length: 0
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:37] NoOp(“PJSIP/201-000000c7”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21”) in new stack
– Executing [[email protected]:38] GotoIf(“PJSIP/201-000000c7”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] Set(“PJSIP/201-000000c7”, “RC=21”) in new stack
– Executing [[email protected]:2] Goto(“PJSIP/201-000000c7”, “21,1”) in new stack
– Goto (macro-dialout-trunk,21,1)
– Executing [[email protected]:1] Goto(“PJSIP/201-000000c7”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] NoOp(“PJSIP/201-000000c7”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks”) in new stack
– Executing [[email protected]:2] ExecIf(“PJSIP/201-000000c7”, “1?Set(CALLERID(number)=201)”) in new stack
– Executing [[email protected]:13] Macro(“PJSIP/201-000000c7”, “outisbusy,”) in new stack
– Executing [[email protected]:1] Progress(“PJSIP/201-000000c7”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“PJSIP/201-000000c7”, “0?emergency,1”) in new stack
– Executing [[email protected]:3] GotoIf(“PJSIP/201-000000c7”, “0?intracompany,1”) in new stack
– Executing [[email protected]:4] Playback(“PJSIP/201-000000c7”, “all-circuits-busy-now&please-try-call-later, noanswer”) in new stack
<— Transmitting SIP response (912 bytes) to UDP:192.168.1.137:56399 —>
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.1.137:56399;rport=56399;received=192.168.1.137;branch=z9hG4bK-524287-1—9f966d29fde56d00
Call-ID: 98-RVGKc_Jo4ZjA47h6HhA…
From: sip:[email protected];tag=7020441c
To: sip:[email protected];tag=3f3010e4-b48a-47a6-8e8d-86b5d646328f
CSeq: 2 INVITE
Server: FPBX-16.0.30(18.16.0)
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, REFER
Contact: sip:192.168.1.71:5060
P-Asserted-Identity: “CID:585xxxxxx” sip:[email protected]
Content-Type: application/sdp
Content-Length: 298
v=0
o=- 0 517978181 IN IP4 192.168.1.71
s=Asterisk
c=IN IP4 192.168.1.71
t=0 0
m=audio 12458 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
-- <PJSIP/201-000000c7> Playing 'all-circuits-busy-now.ulaw' (language 'en')
-- <PJSIP/201-000000c7> Playing 'please-try-call-later.ulaw' (language 'en')