Problem with DID

I would like to add more than one number to freepbx.
I have two numbers:

  • +48 22 247 20 40
  • +48 95 737 66 83
    I would like one number to direct to ivr and the other to the queue. If I add two inbound routes and enter this number in the DID field, it doesn’t work. Please help
1 Like

Which channel technology are you using?

If you are using chan_sip or chan_pjsip, please provide a copy of the incoming INVITE showing all the places where this number appears. You can do this by enabling the full log and using the CLI command “sip set debug on” or “pjsip set logger on”, (This setting is volatile and will be lost if you reload the configuration.)

FreePBX takes SIP “DIDs” from the request URI user part, by default, although there is an alternative initial context that takes it from the To: header user part.

I use chan_pjsip

Connected to Asterisk 16.28.0~dfsg-0+deb10u3 currently running on vps-86a91f9c (pid = 12285)
vps-86a91f9c*CLI> pjsip set logger on
PJSIP Logging enabled
<--- Received SIP request (274 bytes) from UDP:193.43.148.37:5060 --->
OPTIONS sip:[email protected]:5060;line=daocqyj SIP/2.0
Via: SIP/2.0/UDP 193.43.148.37:5060;branch=0
From: sip:[email protected];tag=93f5f165
To: sip:[email protected]:5060;line=daocqyj
Call-ID: [email protected]
CSeq: 1 OPTIONS
Content-Length: 0


<--- Transmitting SIP response (794 bytes) to UDP:193.43.148.37:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 193.43.148.37:5060;rport=5060;received=193.43.148.37;branch=0
Call-ID: [email protected]
From: <sip:[email protected]>;tag=93f5f165
To: <sip:[email protected]>;tag=0;line=daocqyj
CSeq: 1 OPTIONS
Accept: application/sdp, application/dialog-info+xml, application/simple-message-summary, application/pidf+xml, application/xpidf+xml, application/cpim-pidf+xml, application/simple-message-summary, application/pidf+xml, application/dialog-info+xml, message/sipfrag;version=2.0
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Accept-Encoding: identity
Accept-Language: en
Server: FPBX-15.0.37.4(16.28.0)
Content-Length:  0


<--- Transmitting SIP request (444 bytes) to UDP:193.43.148.37:5060 --->
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 57.128.194.7:5060;rport;branch=z9hG4bKPj3c57e0e0-c08d-47d6-9ef6-7031a3a4fb11
From: <sip:[email protected]>;tag=afda775a-5acc-465d-8402-ef4b35048228
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: e927e06d-f229-419d-8706-de40e4329086
CSeq: 36533 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-15.0.37.4(16.28.0)
Content-Length:  0


<--- Received SIP response (374 bytes) from UDP:193.43.148.37:5060 --->
SIP/2.0 405 Method Not Allowed
Via: SIP/2.0/UDP 57.128.194.7:5060;rport=5060;branch=z9hG4bKPj3c57e0e0-c08d-47d6-9ef6-7031a3a4fb11
From: <sip:[email protected]>;tag=afda775a-5acc-465d-8402-ef4b35048228
To: <sip:[email protected]>;tag=1d3390139ec15ca1b76af9d6acd06dfd.52e2
Call-ID: e927e06d-f229-419d-8706-de40e4329086
CSeq: 36533 OPTIONS
Content-Length: 0


vps-86a91f9c*CLI>
<--- Received SIP request (274 bytes) from UDP:193.43.148.37:5060 --->
OPTIONS sip:[email protected]:5060;line=daocqyj SIP/2.0
Via: SIP/2.0/UDP 193.43.148.37:5060;branch=0
From: sip:[email protected];tag=f91ef165
To: sip:[email protected]:5060;line=daocqyj
Call-ID: [email protected]
CSeq: 1 OPTIONS
Content-Length: 0


<--- Transmitting SIP response (794 bytes) to UDP:193.43.148.37:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 193.43.148.37:5060;rport=5060;received=193.43.148.37;branch=0
Call-ID: [email protected]
From: <sip:[email protected]>;tag=f91ef165
To: <sip:[email protected]>;tag=0;line=daocqyj
CSeq: 1 OPTIONS
Accept: application/sdp, application/dialog-info+xml, application/simple-message-summary, application/pidf+xml, application/xpidf+xml, application/cpim-pidf+xml, application/simple-message-summary, application/pidf+xml, application/dialog-info+xml, message/sipfrag;version=2.0
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Accept-Encoding: identity
Accept-Language: en
Server: FPBX-15.0.37.4(16.28.0)
Content-Length:  0

There are no calls in that log.

When I set did to 222472040 (this number):

<--- Transmitting SIP response (439 bytes) to UDP:193.43.148.37:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 193.43.148.37;rport=5060;received=193.43.148.37;branch=z9hG4bK9938.2bdabfa3.0
Via: SIP/2.0/UDP 193.43.148.34:5060;branch=z9hG4bK26A87818EC
Record-Route: <sip:193.43.148.37;lr>
Call-ID: [email protected]
From: <sip:[email protected]>;tag=D8640C04-F6E
To: <sip:[email protected]>
CSeq: 101 INVITE
Server: FPBX-15.0.37.4(16.28.0)
Content-Length:  0


[2023-11-26 13:08:22] NOTICE[30673]: res_pjsip_geolocation.c:195 handle_incoming_request:  PJSIP/HALONET-00000071: Endpoint has no geoloc_incoming_call_profile. Done.
    -- Executing [s@from-pstn:1] NoOp("PJSIP/HALONET-00000071", "No DID or CID Match") in new stack
    -- Executing [s@from-pstn:2] Answer("PJSIP/HALONET-00000071", "") in new stack
       > 0x7fce901651d0 -- Strict RTP learning after remote address set to: 193.43.148.34:19514
<--- Transmitting SIP response (989 bytes) to UDP:193.43.148.37:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 193.43.148.37;rport=5060;received=193.43.148.37;branch=z9hG4bK9938.2bdabfa3.0
Via: SIP/2.0/UDP 193.43.148.34:5060;branch=z9hG4bK26A87818EC
Record-Route: <sip:193.43.148.37;lr>
Call-ID: [email protected]
From: <sip:[email protected]>;tag=D8640C04-F6E
To: <sip:[email protected]>;tag=7e5d2b31-669e-4a95-bd08-1a22a4d90b5c
CSeq: 101 INVITE
Server: FPBX-15.0.37.4(16.28.0)
Contact: <sip:57.128.194.7:5060>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uas
Content-Type: application/sdp
Content-Length:   249

v=0
o=- 8152 1146 IN IP4 57.128.194.7
s=Asterisk
c=IN IP4 57.128.194.7
t=0 0
m=audio 11978 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

<--- Received SIP request (474 bytes) from UDP:193.43.148.37:5060 --->
ACK sip:57.128.194.7:5060 SIP/2.0
Via: SIP/2.0/UDP 193.43.148.37;branch=z9hG4bK9938.2bdabfa3.2
Via: SIP/2.0/UDP 193.43.148.34:5060;branch=z9hG4bK26A8791451
From: <sip:[email protected]>;tag=D8640C04-F6E
To: <sip:[email protected]>;tag=7e5d2b31-669e-4a95-bd08-1a22a4d90b5c
Date: Sun, 26 Nov 2023 13:08:22 GMT
Call-ID: [email protected]
Max-Forwards: 69
CSeq: 101 ACK
Allow-Events: telephone-event
Content-Length: 0


       > 0x7fce901651d0 -- Strict RTP switching to RTP target address 193.43.148.34:19514 as source
[2023-11-26 13:08:22] WARNING[16611][C-00000030]: chan_sip.c:23281 func_header_read: This function can only be used on SIP channels.
    -- Executing [s@from-pstn:3] Log("PJSIP/HALONET-00000071", "WARNING,Friendly Scanner from ") in new stack
[2023-11-26 13:08:22] WARNING[16611][C-00000030]: Ext. s:3 @ from-pstn: Friendly Scanner from 
    -- Executing [s@from-pstn:4] Wait("PJSIP/HALONET-00000071", "2") in new stack
    -- Executing [s@from-pstn:5] Playback("PJSIP/HALONET-00000071", "ss-noservice") in new stack
    -- <PJSIP/HALONET-00000071> Playing 'ss-noservice.ulaw' (language 'pl')
       > 0x7fce901651d0 -- Strict RTP learning complete - Locking on source address 193.43.148.34:19514
    -- Executing [s@from-pstn:6] SayAlpha("PJSIP/HALONET-00000071", "") in new stack
    -- Executing [s@from-pstn:7] Hangup("PJSIP/HALONET-00000071", "") in new stack
  == Spawn extension (from-pstn, s, 7) exited non-zero on 'PJSIP/HALONET-00000071'
    -- Executing [h@from-pstn:1] Macro("PJSIP/HALONET-00000071", "hangupcall,") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("PJSIP/HALONET-00000071", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("PJSIP/HALONET-00000071", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] Hangup("PJSIP/HALONET-00000071", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/HALONET-00000071' in macro 'hangupcall'
  == Spawn extension (from-pstn, h, 1) exited non-zero on 'PJSIP/HALONET-00000071'
<--- Transmitting SIP request (482 bytes) to UDP:193.43.148.37:5060 --->
BYE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 57.128.194.7:5060;rport;branch=z9hG4bKPjdbf95b3d-ac42-4a10-a95f-0bd2b584566a
From: <sip:[email protected]>;tag=7e5d2b31-669e-4a95-bd08-1a22a4d90b5c
To: <sip:[email protected]>;tag=D8640C04-F6E
Call-ID: [email protected]
CSeq: 8542 BYE
Route: <sip:193.43.148.37;lr>
Reason: Q.850;cause=16
Max-Forwards: 70
User-Agent: FPBX-15.0.37.4(16.28.0)
Content-Length:  0


<--- Received SIP response (464 bytes) from UDP:193.43.148.37:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 57.128.194.7:5060;received=57.128.194.7;rport=5060;branch=z9hG4bKPjdbf95b3d-ac42-4a10-a95f-0bd2b584566a
From: <sip:[email protected]>;tag=7e5d2b31-669e-4a95-bd08-1a22a4d90b5c
To: <sip:[email protected]>;tag=D8640C04-F6E
Date: Sun, 26 Nov 2023 13:08:29 GMT
Call-ID: [email protected]
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 8542 BYE
Reason: Q.850;cause=16
Content-Length: 0


<--- Transmitting SIP request (444 bytes) to UDP:193.43.148.37:5060 --->
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 57.128.194.7:5060;rport;branch=z9hG4bKPj51c6ee4f-5585-4f9d-87ed-4bdbaf99e307
From: <sip:[email protected]>;tag=0e21f002-ea23-402b-8417-106aa5f95dee
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: 56b5ea67-2b15-484b-87a3-c1ae20195642
CSeq: 34683 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-15.0.37.4(16.28.0)
Content-Length:  0


<--- Received SIP response (374 bytes) from UDP:193.43.148.37:5060 --->
SIP/2.0 405 Method Not Allowed
Via: SIP/2.0/UDP 57.128.194.7:5060;rport=5060;branch=z9hG4bKPj51c6ee4f-5585-4f9d-87ed-4bdbaf99e307
From: <sip:[email protected]>;tag=0e21f002-ea23-402b-8417-106aa5f95dee
To: <sip:[email protected]>;tag=1d3390139ec15ca1b76af9d6acd06dfd.c40f
Call-ID: 56b5ea67-2b15-484b-87a3-c1ae20195642
CSeq: 34683 OPTIONS
Content-Length: 0

When I set DID to any:


[2023-11-26 13:09:44] NOTICE[30673]: res_pjsip_geolocation.c:195 handle_incoming_request:  PJSIP/HALONET-00000072: Endpoint has no geoloc_incoming_call_profile. Done.
    -- Executing [s@from-pstn:1] Set("PJSIP/HALONET-00000072", "__DIRECTION=INBOUND") in new stack
    -- Executing [s@from-pstn:2] Gosub("PJSIP/HALONET-00000072", "sub-record-check,s,1(in,s,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("PJSIP/HALONET-00000072", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("PJSIP/HALONET-00000072", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("PJSIP/HALONET-00000072", "NOW=1701004184") in new stack
    -- Executing [s@sub-record-check:4] Set("PJSIP/HALONET-00000072", "__DAY=26") in new stack
    -- Executing [s@sub-record-check:5] Set("PJSIP/HALONET-00000072", "__MONTH=11") in new stack
    -- Executing [s@sub-record-check:6] Set("PJSIP/HALONET-00000072", "__YEAR=2023") in new stack
    -- Executing [s@sub-record-check:7] Set("PJSIP/HALONET-00000072", "__TIMESTR=20231126-130944") in new stack
    -- Executing [s@sub-record-check:8] Set("PJSIP/HALONET-00000072", "__FROMEXTEN=unknown") in new stack
    -- Executing [s@sub-record-check:9] Set("PJSIP/HALONET-00000072", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("PJSIP/HALONET-00000072", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("PJSIP/HALONET-00000072", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("PJSIP/HALONET-00000072", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("PJSIP/HALONET-00000072", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("PJSIP/HALONET-00000072", "2?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("PJSIP/HALONET-00000072", "1?sub-record-check,in,1") in new stack
    -- Goto (sub-record-check,in,1)
    -- Executing [in@sub-record-check:1] NoOp("PJSIP/HALONET-00000072", "Inbound Recording Check to s") in new stack
    -- Executing [in@sub-record-check:2] Set("PJSIP/HALONET-00000072", "FROMEXTEN=unknown") in new stack
    -- Executing [in@sub-record-check:3] ExecIf("PJSIP/HALONET-00000072", "9?Set(FROMEXTEN=886843410)") in new stack
    -- Executing [in@sub-record-check:4] Gosub("PJSIP/HALONET-00000072", "recordcheck,1(dontcare,in,s)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/HALONET-00000072", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/HALONET-00000072", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("PJSIP/HALONET-00000072", "") in new stack
    -- Executing [in@sub-record-check:5] Return("PJSIP/HALONET-00000072", "") in new stack
    -- Executing [s@from-pstn:3] Set("PJSIP/HALONET-00000072", "CHANNEL(tonezone)=us") in new stack
    -- Executing [s@from-pstn:4] ExecIf("PJSIP/HALONET-00000072", "1?Set(__FROM_DID=s)") in new stack
    -- Executing [s@from-pstn:5] Set("PJSIP/HALONET-00000072", "returnhere=1") in new stack
    -- Executing [s@from-pstn:6] Gosub("PJSIP/HALONET-00000072", "app-blacklist-check,s,1()") in new stack
    -- Executing [s@app-blacklist-check:1] GotoIf("PJSIP/HALONET-00000072", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:2] Set("PJSIP/HALONET-00000072", "CALLED_BLACKLIST=1") in new stack
    -- Executing [s@app-blacklist-check:3] Return("PJSIP/HALONET-00000072", "") in new stack
    -- Executing [s@from-pstn:7] Set("PJSIP/HALONET-00000072", "CDR(did)=s") in new stack
    -- Executing [s@from-pstn:8] GotoIf("PJSIP/HALONET-00000072", "0?") in new stack
    -- Executing [s@from-pstn:9] ExecIf("PJSIP/HALONET-00000072", "1 ?Set(CALLERID(name)=886843410)") in new stack
    -- Executing [s@from-pstn:10] Set("PJSIP/HALONET-00000072", "__MOHCLASS=") in new stack
    -- Executing [s@from-pstn:11] Set("PJSIP/HALONET-00000072", "__REVERSAL_REJECT=FALSE") in new stack
    -- Executing [s@from-pstn:12] GotoIf("PJSIP/HALONET-00000072", "1?post-reverse-charge") in new stack
    -- Goto (from-pstn,s,14)
    -- Executing [s@from-pstn:14] NoOp("PJSIP/HALONET-00000072", "") in new stack
    -- Executing [s@from-pstn:15] Set("PJSIP/HALONET-00000072", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack
    -- Executing [s@from-pstn:16] Set("PJSIP/HALONET-00000072", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack
    -- Executing [s@from-pstn:17] Set("PJSIP/HALONET-00000072", "CALLERID(name-pres)=allowed_not_screened") in new stack
    -- Executing [s@from-pstn:18] Set("PJSIP/HALONET-00000072", "CALLERID(num-pres)=allowed_not_screened") in new stack
    -- Executing [s@from-pstn:19] NoOp("PJSIP/HALONET-00000072", "CallerID Entry Point") in new stack
    -- Executing [s@from-pstn:20] Goto("PJSIP/HALONET-00000072", "app-announcement-4,s,1") in new stack
    -- Goto (app-announcement-4,s,1)
    -- Executing [s@app-announcement-4:1] GotoIf("PJSIP/HALONET-00000072", "0?begin") in new stack
    -- Executing [s@app-announcement-4:2] Answer("PJSIP/HALONET-00000072", "") in new stack
       > 0x7fce901651d0 -- Strict RTP learning after remote address set to: 193.43.148.35:17438
<--- Transmitting SIP response (989 bytes) to UDP:193.43.148.37:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 193.43.148.37;rport=5060;received=193.43.148.37;branch=z9hG4bK4378.252dc3f5.0
Via: SIP/2.0/UDP 193.43.148.35:5060;branch=z9hG4bK26D2E717DC
Record-Route: <sip:193.43.148.37;lr>
Call-ID: [email protected]
From: <sip:[email protected]>;tag=D868972C-1DF6
To: <sip:[email protected]>;tag=bf0a4c00-9071-4c44-a1fb-10af780128fb
CSeq: 101 INVITE
Server: FPBX-15.0.37.4(16.28.0)
Contact: <sip:57.128.194.7:5060>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uas
Content-Type: application/sdp
Content-Length:   249

v=0
o=- 7123 1712 IN IP4 57.128.194.7
s=Asterisk
c=IN IP4 57.128.194.7
t=0 0
m=audio 11766 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

<--- Received SIP request (473 bytes) from UDP:193.43.148.37:5060 --->
ACK sip:57.128.194.7:5060 SIP/2.0
Via: SIP/2.0/UDP 193.43.148.37;branch=z9hG4bK4378.252dc3f5.2
Via: SIP/2.0/UDP 193.43.148.35:5060;branch=z9hG4bK26D2E872E
From: <sip:[email protected]>;tag=D868972C-1DF6
To: <sip:[email protected]>;tag=bf0a4c00-9071-4c44-a1fb-10af780128fb
Date: Sun, 26 Nov 2023 13:09:44 GMT
Call-ID: [email protected]
Max-Forwards: 69
CSeq: 101 ACK
Allow-Events: telephone-event
Content-Length: 0


       > 0x7fce901651d0 -- Strict RTP switching to RTP target address 193.43.148.35:17438 as source
    -- Executing [s@app-announcement-4:3] Wait("PJSIP/HALONET-00000072", "1") in new stack
    -- Executing [s@app-announcement-4:4] NoOp("PJSIP/HALONET-00000072", "Playing announcement WITAMY") in new stack
    -- Executing [s@app-announcement-4:5] Playback("PJSIP/HALONET-00000072", "custom/ElevenLabs_2023-11-22T16_17_18_Deb_ivc_s100_sb100_se50_b_m2&custom/bf,noanswer") in new stack
    -- <PJSIP/HALONET-00000072> Playing 'custom/ElevenLabs_2023-11-22T16_17_18_Deb_ivc_s100_sb100_se50_b_m2.slin' (language 'pl')
       > 0x7fce901651d0 -- Strict RTP learning complete - Locking on source address 193.43.148.35:17438
    -- <PJSIP/HALONET-00000072> Playing 'custom/bf.slin' (language 'pl')
    -- Executing [s@app-announcement-4:6] Goto("PJSIP/HALONET-00000072", "ivr-2,s,1") in new stack
    -- Goto (ivr-2,s,1)
    -- Executing [s@ivr-2:1] Set("PJSIP/HALONET-00000072", "TIMEOUT_LOOPCOUNT=0") in new stack
    -- Executing [s@ivr-2:2] Set("PJSIP/HALONET-00000072", "INVALID_LOOPCOUNT=0") in new stack
    -- Executing [s@ivr-2:3] Set("PJSIP/HALONET-00000072", "_IVR_CONTEXT_ivr-2=") in new stack
    -- Executing [s@ivr-2:4] Set("PJSIP/HALONET-00000072", "_IVR_CONTEXT=ivr-2") in new stack
    -- Executing [s@ivr-2:5] Set("PJSIP/HALONET-00000072", "__IVR_RETVM=") in new stack
    -- Executing [s@ivr-2:6] GotoIf("PJSIP/HALONET-00000072", "1?skip") in new stack
    -- Goto (ivr-2,s,8)
    -- Executing [s@ivr-2:8] Set("PJSIP/HALONET-00000072", "IVR_MSG=custom/ElevenLabs_2023-11-22T16_22_20_Deb_ivc_s100_sb100_se50_b_m2") in new stack
    -- Executing [s@ivr-2:9] Set("PJSIP/HALONET-00000072", "TIMEOUT(digit)=3") in new stack
    -- Digit timeout set to 3.000
    -- Executing [s@ivr-2:10] ExecIf("PJSIP/HALONET-00000072", "1?Background(custom/ElevenLabs_2023-11-22T16_22_20_Deb_ivc_s100_sb100_se50_b_m2)") in new stack
    -- <PJSIP/HALONET-00000072> Playing 'custom/ElevenLabs_2023-11-22T16_22_20_Deb_ivc_s100_sb100_se50_b_m2.slin' (language 'pl')
<--- Received SIP request (274 bytes) from UDP:193.43.148.37:5060 --->
OPTIONS sip:[email protected]:5060;line=daocqyj SIP/2.0
Via: SIP/2.0/UDP 193.43.148.37:5060;branch=0
From: sip:[email protected];tag=f4fe2265
To: sip:[email protected]:5060;line=daocqyj
Call-ID: [email protected]
CSeq: 1 OPTIONS
Content-Length: 0


<--- Transmitting SIP response (794 bytes) to UDP:193.43.148.37:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 193.43.148.37:5060;rport=5060;received=193.43.148.37;branch=0
Call-ID: [email protected]
From: <sip:[email protected]>;tag=f4fe2265
To: <sip:[email protected]>;tag=0;line=daocqyj
CSeq: 1 OPTIONS
Accept: application/sdp, application/dialog-info+xml, application/simple-message-summary, application/pidf+xml, application/xpidf+xml, application/cpim-pidf+xml, application/simple-message-summary, application/pidf+xml, application/dialog-info+xml, message/sipfrag;version=2.0
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Accept-Encoding: identity
Accept-Language: en
Server: FPBX-15.0.37.4(16.28.0)
Content-Length:  0


    -- Executing [1@ivr-2:1] Set("PJSIP/HALONET-00000072", "__ivrreturn=0") in new stack
    -- Executing [1@ivr-2:2] Goto("PJSIP/HALONET-00000072", "ivr-1,s,1") in new stack
    -- Goto (ivr-1,s,1)
    -- Executing [s@ivr-1:1] Set("PJSIP/HALONET-00000072", "TIMEOUT_LOOPCOUNT=0") in new stack
    -- Executing [s@ivr-1:2] Set("PJSIP/HALONET-00000072", "INVALID_LOOPCOUNT=0") in new stack
    -- Executing [s@ivr-1:3] Set("PJSIP/HALONET-00000072", "_IVR_CONTEXT_ivr-1=ivr-2") in new stack
    -- Executing [s@ivr-1:4] Set("PJSIP/HALONET-00000072", "_IVR_CONTEXT=ivr-1") in new stack
    -- Executing [s@ivr-1:5] Set("PJSIP/HALONET-00000072", "__IVR_RETVM=") in new stack
    -- Executing [s@ivr-1:6] GotoIf("PJSIP/HALONET-00000072", "1?skip") in new stack
    -- Goto (ivr-1,s,8)
    -- Executing [s@ivr-1:8] Set("PJSIP/HALONET-00000072", "IVR_MSG=custom/ElevenLabs_2023-11-22T17_55_11_Deb_ivc_s100_sb100_se50_b_m2&custom/ElevenLabs_2023-11-22T16_24_34_Deb_ivc_s100_sb100_se50_b_m2") in new stack
    -- Executing [s@ivr-1:9] Set("PJSIP/HALONET-00000072", "TIMEOUT(digit)=3") in new stack
    -- Digit timeout set to 3.000
    -- Executing [s@ivr-1:10] ExecIf("PJSIP/HALONET-00000072", "1?Background(custom/ElevenLabs_2023-11-22T17_55_11_Deb_ivc_s100_sb100_se50_b_m2&custom/ElevenLabs_2023-11-22T16_24_34_Deb_ivc_s100_sb100_se50_b_m2)") in new stack
    -- <PJSIP/HALONET-00000072> Playing 'custom/ElevenLabs_2023-11-22T17_55_11_Deb_ivc_s100_sb100_se50_b_m2.slin' (language 'pl')
    -- Executing [1@ivr-1:1] Set("PJSIP/HALONET-00000072", "__ivrreturn=0") in new stack
    -- Executing [1@ivr-1:2] Goto("PJSIP/HALONET-00000072", "app-announcement-1,s,1") in new stack
    -- Goto (app-announcement-1,s,1)
    -- Executing [s@app-announcement-1:1] GotoIf("PJSIP/HALONET-00000072", "1?begin") in new stack
    -- Goto (app-announcement-1,s,4)
    -- Executing [s@app-announcement-1:4] NoOp("PJSIP/HALONET-00000072", "Playing announcement TECHNICZNY") in new stack
    -- Executing [s@app-announcement-1:5] Playback("PJSIP/HALONET-00000072", "custom/ElevenLabs_2023-11-22T16_29_25_Deb_ivc_s100_sb100_se50_b_m2&custom/ocena,noanswer") in new stack
    -- <PJSIP/HALONET-00000072> Playing 'custom/ElevenLabs_2023-11-22T16_29_25_Deb_ivc_s100_sb100_se50_b_m2.slin' (language 'pl')
<--- Transmitting SIP request (443 bytes) to UDP:193.43.148.37:5060 --->
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 57.128.194.7:5060;rport;branch=z9hG4bKPja017b0e7-abd6-422a-98f6-4cce6dc33396
From: <sip:[email protected]>;tag=99316a15-0f1c-407a-9471-77e159b69358
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: 7cdea0cc-095f-49df-bc01-68aca801e57c
CSeq: 6691 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-15.0.37.4(16.28.0)
Content-Length:  0


<--- Received SIP response (373 bytes) from UDP:193.43.148.37:5060 --->
SIP/2.0 405 Method Not Allowed
Via: SIP/2.0/UDP 57.128.194.7:5060;rport=5060;branch=z9hG4bKPja017b0e7-abd6-422a-98f6-4cce6dc33396
From: <sip:[email protected]>;tag=99316a15-0f1c-407a-9471-77e159b69358
To: <sip:[email protected]>;tag=1d3390139ec15ca1b76af9d6acd06dfd.ce85
Call-ID: 7cdea0cc-095f-49df-bc01-68aca801e57c
CSeq: 6691 OPTIONS
Content-Length: 0


    -- <PJSIP/HALONET-00000072> Playing 'custom/ocena.slin' (language 'pl')
<--- Received SIP request (274 bytes) from UDP:193.43.148.37:5060 --->
OPTIONS sip:[email protected]:5060;line=daocqyj SIP/2.0
Via: SIP/2.0/UDP 193.43.148.37:5060;branch=0
From: sip:[email protected];tag=0ca13265
To: sip:[email protected]:5060;line=daocqyj
Call-ID: [email protected]
CSeq: 1 OPTIONS
Content-Length: 0


<--- Transmitting SIP response (794 bytes) to UDP:193.43.148.37:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 193.43.148.37:5060;rport=5060;received=193.43.148.37;branch=0
Call-ID: [email protected]
From: <sip:[email protected]>;tag=0ca13265
To: <sip:[email protected]>;tag=0;line=daocqyj
CSeq: 1 OPTIONS
Accept: application/sdp, application/dialog-info+xml, application/simple-message-summary, application/pidf+xml, application/xpidf+xml, application/cpim-pidf+xml, application/simple-message-summary, application/pidf+xml, application/dialog-info+xml, message/sipfrag;version=2.0
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Accept-Encoding: identity
Accept-Language: en
Server: FPBX-15.0.37.4(16.28.0)
Content-Length:  0


    -- Executing [s@app-announcement-1:6] Goto("PJSIP/HALONET-00000072", "ext-queues,1000,1") in new stack
    -- Goto (ext-queues,1000,1)
    -- Executing [1000@ext-queues:1] Macro("PJSIP/HALONET-00000072", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("PJSIP/HALONET-00000072", "TOUCH_MONITOR=1701004184.262") in new stack
    -- Executing [s@macro-user-callerid:2] Set("PJSIP/HALONET-00000072", "CHANCONTEXT=") in new stack
    -- Executing [s@macro-user-callerid:3] Set("PJSIP/HALONET-00000072", "CHANCONTEXT=") in new stack
    -- Executing [s@macro-user-callerid:4] Set("PJSIP/HALONET-00000072", "CHANEXTENCONTEXT=HALONET-00000072") in new stack
    -- Executing [s@macro-user-callerid:5] Set("PJSIP/HALONET-00000072", "CHANEXTEN=HALONET-00000072") in new stack
    -- Executing [s@macro-user-callerid:6] Set("PJSIP/HALONET-00000072", "CALLERID(number)=886843410") in new stack
    -- Executing [s@macro-user-callerid:7] Set("PJSIP/HALONET-00000072", "AMPUSER=886843410") in new stack
    -- Executing [s@macro-user-callerid:8] Set("PJSIP/HALONET-00000072", "HOTDESCKCHAN=HALONET-00000072") in new stack
    -- Executing [s@macro-user-callerid:9] Set("PJSIP/HALONET-00000072", "HOTDESKEXTEN=HALONET") in new stack
    -- Executing [s@macro-user-callerid:10] Set("PJSIP/HALONET-00000072", "HOTDESKCALL=0") in new stack
    -- Executing [s@macro-user-callerid:11] ExecIf("PJSIP/HALONET-00000072", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("PJSIP/HALONET-00000072", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("PJSIP/HALONET-00000072", "0?report") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("PJSIP/HALONET-00000072", "1?Set(REALCALLERIDNUM=886843410)") in new stack
    -- Executing [s@macro-user-callerid:15] Set("PJSIP/HALONET-00000072", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:16] GotoIf("PJSIP/HALONET-00000072", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:17] Set("PJSIP/HALONET-00000072", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:18] ExecIf("PJSIP/HALONET-00000072", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
    -- Executing [s@macro-user-callerid:19] GotoIf("PJSIP/HALONET-00000072", "1?report") in new stack
    -- Goto (macro-user-callerid,s,27)
    -- Executing [s@macro-user-callerid:27] NoOp("PJSIP/HALONET-00000072", "Macro Depth is 1") in new stack
    -- Executing [s@macro-user-callerid:28] GotoIf("PJSIP/HALONET-00000072", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [s@macro-user-callerid:29] GotoIf("PJSIP/HALONET-00000072", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:30] Set("PJSIP/HALONET-00000072", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:31] GotoIf("PJSIP/HALONET-00000072", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,47)
    -- Executing [s@macro-user-callerid:47] Set("PJSIP/HALONET-00000072", "CALLERID(number)=886843410") in new stack
    -- Executing [s@macro-user-callerid:48] Set("PJSIP/HALONET-00000072", "CALLERID(name)=886843410") in new stack
    -- Executing [s@macro-user-callerid:49] GotoIf("PJSIP/HALONET-00000072", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:50] Set("PJSIP/HALONET-00000072", "CDR(cnam)=886843410") in new stack
    -- Executing [s@macro-user-callerid:51] Set("PJSIP/HALONET-00000072", "CDR(cnum)=886843410") in new stack
    -- Executing [s@macro-user-callerid:52] Set("PJSIP/HALONET-00000072", "CHANNEL(language)=pl") in new stack
    -- Executing [1000@ext-queues:2] Answer("PJSIP/HALONET-00000072", "") in new stack
    -- Executing [1000@ext-queues:3] Set("PJSIP/HALONET-00000072", "__FROMQUEUEEXTEN=886843410") in new stack
    -- Executing [1000@ext-queues:4] Macro("PJSIP/HALONET-00000072", "blkvm-set,reset") in new stack
    -- Executing [s@macro-blkvm-set:1] ExecIf("PJSIP/HALONET-00000072", "1?Set(__BLKVM_CHANNEL=PJSIP/HALONET-00000072)") in new stack
    -- Executing [s@macro-blkvm-set:2] Set("PJSIP/HALONET-00000072", "SHARED(BLKVM,PJSIP/HALONET-00000072)=TRUE") in new stack
    -- Executing [s@macro-blkvm-set:3] Set("PJSIP/HALONET-00000072", "GOSUB_RETVAL=TRUE") in new stack
    -- Executing [s@macro-blkvm-set:4] MacroExit("PJSIP/HALONET-00000072", "") in new stack
    -- Executing [1000@ext-queues:5] ExecIf("PJSIP/HALONET-00000072", "1?Set(_DIAL_OPTIONS=HhTtrM(auto-blkvm))") in new stack
    -- Executing [1000@ext-queues:6] Set("PJSIP/HALONET-00000072", "__NODEST=1000") in new stack
    -- Executing [1000@ext-queues:7] Set("PJSIP/HALONET-00000072", "__QCONTEXT=0") in new stack
    -- Executing [1000@ext-queues:8] Set("PJSIP/HALONET-00000072", "QCIDPP=TECH") in new stack
    -- Executing [1000@ext-queues:9] Set("PJSIP/HALONET-00000072", "VQ_CIDPP=") in new stack
    -- Executing [1000@ext-queues:10] ExecIf("PJSIP/HALONET-00000072", "1?Macro(prepend-cid,TECH)") in new stack
    -- Executing [s@macro-prepend-cid:1] GotoIf("PJSIP/HALONET-00000072", "1?REPCID") in new stack
    -- Goto (macro-prepend-cid,s,5)
    -- Executing [s@macro-prepend-cid:5] Set("PJSIP/HALONET-00000072", "_RGPREFIX=TECH") in new stack
    -- Executing [s@macro-prepend-cid:6] Set("PJSIP/HALONET-00000072", "CALLERID(name)=TECH886843410") in new stack
    -- Executing [1000@ext-queues:11] Set("PJSIP/HALONET-00000072", "QAINFO=") in new stack
    -- Executing [1000@ext-queues:12] Set("PJSIP/HALONET-00000072", "VQ_AINFO=") in new stack
    -- Executing [1000@ext-queues:13] Set("PJSIP/HALONET-00000072", "__RVOL_MODE=dontcare") in new stack
    -- Executing [1000@ext-queues:14] ExecIf("PJSIP/HALONET-00000072", "0?Set(__ALERT_INFO=)") in new stack
    -- Executing [1000@ext-queues:15] Set("PJSIP/HALONET-00000072", "QJOINMSG=custom/beep2") in new stack
    -- Executing [1000@ext-queues:16] Set("PJSIP/HALONET-00000072", "VQ_JOINMSG=") in new stack
    -- Executing [1000@ext-queues:17] Set("PJSIP/HALONET-00000072", "QCANCELMISSED=") in new stack
    -- Executing [1000@ext-queues:18] Set("PJSIP/HALONET-00000072", "QRINGOPTS=R") in new stack
    -- Executing [1000@ext-queues:19] Set("PJSIP/HALONET-00000072", "QRETRY=") in new stack
    -- Executing [1000@ext-queues:20] Set("PJSIP/HALONET-00000072", "VQ_RETRY=") in new stack
    -- Executing [1000@ext-queues:21] Set("PJSIP/HALONET-00000072", "QOPTIONS=tR") in new stack
    -- Executing [1000@ext-queues:22] Set("PJSIP/HALONET-00000072", "VQ_OPTIONS=") in new stack
    -- Executing [1000@ext-queues:23] Set("PJSIP/HALONET-00000072", "QGOSUB=") in new stack
    -- Executing [1000@ext-queues:24] Set("PJSIP/HALONET-00000072", "VQ_GOSUB=") in new stack
    -- Executing [1000@ext-queues:25] Set("PJSIP/HALONET-00000072", "QAGI=") in new stack
    -- Executing [1000@ext-queues:26] Set("PJSIP/HALONET-00000072", "VQ_AGI=") in new stack
    -- Executing [1000@ext-queues:27] Set("PJSIP/HALONET-00000072", "QRULE=") in new stack
    -- Executing [1000@ext-queues:28] Set("PJSIP/HALONET-00000072", "VQ_RULE=") in new stack
    -- Executing [1000@ext-queues:29] Set("PJSIP/HALONET-00000072", "QPOSITION=") in new stack
    -- Executing [1000@ext-queues:30] Set("PJSIP/HALONET-00000072", "VQ_POSITION=") in new stack
    -- Executing [1000@ext-queues:31] Gosub("PJSIP/HALONET-00000072", "sub-record-check,s,1(q,1000,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("PJSIP/HALONET-00000072", "9?initialized") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [s@sub-record-check:10] NoOp("PJSIP/HALONET-00000072", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("PJSIP/HALONET-00000072", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("PJSIP/HALONET-00000072", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("PJSIP/HALONET-00000072", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("PJSIP/HALONET-00000072", "1?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("PJSIP/HALONET-00000072", "0?sub-record-check,q,1") in new stack
    -- Executing [s@sub-record-check:18] NoOp("PJSIP/HALONET-00000072", "Generic q Recording Check - 886843410 1000") in new stack
    -- Executing [s@sub-record-check:19] Gosub("PJSIP/HALONET-00000072", "recordcheck,1(dontcare,q,1000)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/HALONET-00000072", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/HALONET-00000072", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("PJSIP/HALONET-00000072", "") in new stack
    -- Executing [s@sub-record-check:20] Return("PJSIP/HALONET-00000072", "") in new stack
    -- Executing [1000@ext-queues:32] Set("PJSIP/HALONET-00000072", "__SIGNORE=TRUE") in new stack
    -- Executing [1000@ext-queues:33] Set("PJSIP/HALONET-00000072", "__QC_CONFIRM=0") in new stack
    -- Executing [1000@ext-queues:34] GotoIf("PJSIP/HALONET-00000072", "0?QVQANNOUNCE:NOQVQANNOUNCE") in new stack
    -- Goto (ext-queues,1000,39)
    -- Executing [1000@ext-queues:39] Set("PJSIP/HALONET-00000072", "VQ_CONFIRMMSG=") in new stack
    -- Executing [1000@ext-queues:40] ExecIf("PJSIP/HALONET-00000072", "1?Playback(custom/beep2, )") in new stack
    -- <PJSIP/HALONET-00000072> Playing 'custom/beep2.slin' (language 'pl')
    -- Executing [1000@ext-queues:41] QueueLog("PJSIP/HALONET-00000072", "1000,1701004184.262,NONE,DID,s") in new stack
    -- Executing [1000@ext-queues:42] Set("PJSIP/HALONET-00000072", "QAANNOUNCE=") in new stack
    -- Executing [1000@ext-queues:43] Set("PJSIP/HALONET-00000072", "VQ_AANNOUNCE=") in new stack
    -- Executing [1000@ext-queues:44] Set("PJSIP/HALONET-00000072", "QMOH=default") in new stack
    -- Executing [1000@ext-queues:45] Set("PJSIP/HALONET-00000072", "VQ_MOH=") in new stack
    -- Executing [1000@ext-queues:46] ExecIf("PJSIP/HALONET-00000072", "1?Set(__MOHCLASS=default)") in new stack
    -- Executing [1000@ext-queues:47] ExecIf("PJSIP/HALONET-00000072", "1?Set(CHANNEL(musicclass)=default)") in new stack
    -- Executing [1000@ext-queues:48] Set("PJSIP/HALONET-00000072", "QMAXWAIT=") in new stack
    -- Executing [1000@ext-queues:49] Set("PJSIP/HALONET-00000072", "VQ_MAXWAIT=") in new stack
    -- Executing [1000@ext-queues:50] Set("PJSIP/HALONET-00000072", "QUEUENUM=1000") in new stack
    -- Executing [1000@ext-queues:51] Set("PJSIP/HALONET-00000072", "QUEUEJOINTIME=1701004257") in new stack
    -- Executing [1000@ext-queues:52] Queue("PJSIP/HALONET-00000072", "1000,tR,,,,,,,,") in new stack
    -- Started music on hold, class 'default', on channel 'PJSIP/HALONET-00000072'
    -- Stopped music on hold on PJSIP/HALONET-00000072
    -- Hold time for 1000 is 2 minute(s) 0 seconds
    -- <PJSIP/HALONET-00000072> Playing 'queue-holdtime.ulaw' (language 'pl')
    -- <PJSIP/HALONET-00000072> Playing 'digits/2.ulaw' (language 'pl')
    -- <PJSIP/HALONET-00000072> Playing 'queue-minutes.ulaw' (language 'pl')
    -- Told PJSIP/HALONET-00000072 in 1000 their queue position (which was 1)
    -- <PJSIP/HALONET-00000072> Playing 'queue-thankyou.ulaw' (language 'pl')
    -- Started music on hold, class 'default', on channel 'PJSIP/HALONET-00000072'
<--- Received SIP request (529 bytes) from UDP:193.43.148.37:5060 --->
BYE sip:57.128.194.7:5060 SIP/2.0
Via: SIP/2.0/UDP 193.43.148.37;branch=z9hG4bK1378.11f36504.0
Via: SIP/2.0/UDP 193.43.148.35:5060;branch=z9hG4bK26D2F71D51
From: <sip:[email protected]>;tag=D868972C-1DF6
To: <sip:[email protected]>;tag=bf0a4c00-9071-4c44-a1fb-10af780128fb
Date: Sun, 26 Nov 2023 13:09:44 GMT
Call-ID: [email protected]
User-Agent: Cisco-SIPGateway/IOS-12.x
Max-Forwards: 69
Timestamp: 1701004270
CSeq: 102 BYE
Reason: Q.850;cause=16
Content-Length: 0


<--- Transmitting SIP response (437 bytes) to UDP:193.43.148.37:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 193.43.148.37;rport=5060;received=193.43.148.37;branch=z9hG4bK1378.11f36504.0
Via: SIP/2.0/UDP 193.43.148.35:5060;branch=z9hG4bK26D2F71D51
Call-ID: [email protected]
From: <sip:[email protected]>;tag=D868972C-1DF6
To: <sip:[email protected]>;tag=bf0a4c00-9071-4c44-a1fb-10af780128fb
CSeq: 102 BYE
Server: FPBX-15.0.37.4(16.28.0)
Content-Length:  0


    -- Stopped music on hold on PJSIP/HALONET-00000072
  == Spawn extension (ext-queues, 1000, 52) exited non-zero on 'PJSIP/HALONET-00000072'
    -- Executing [h@ext-queues:1] Macro("PJSIP/HALONET-00000072", "hangupcall,") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("PJSIP/HALONET-00000072", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("PJSIP/HALONET-00000072", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] Hangup("PJSIP/HALONET-00000072", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/HALONET-00000072' in macro 'hangupcall'
  == Spawn extension (ext-queues, h, 1) exited non-zero on 'PJSIP/HALONET-00000072'
<--- Transmitting SIP request

This is the DID number they are sending to your system. Set up an inbound route with that number with no ‘+’ in front. Do the same for the second number.

Still not work

<--- Received SIP request (1176 bytes) from UDP:193.43.148.37:5060 --->
INVITE sip:[email protected]:5060;line=daocqyj SIP/2.0
Record-Route: <sip:193.43.148.37;lr=on>
Via: SIP/2.0/UDP 193.43.148.37;branch=z9hG4bK7406.8ab6fc64.0
Via: SIP/2.0/UDP 193.43.148.36:5060;branch=z9hG4bK2789321678
From: <sip:[email protected]>;tag=D8C0EEEC-390
To: <sip:[email protected]>
Date: Sun, 26 Nov 2023 14:50:47 GMT
Call-ID: [email protected]
Supported: resource-priority,replaces,sdp-anat
Cisco-Guid: 82652022-2342654446-2385897639-2157617039
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1701010247
Contact: <sip:[email protected]:5060>
Expires: 180
Allow-Events: telephone-event
Max-Forwards: 67
Session-Expires:  1800
Content-Type: application/sdp
Content-Length: 309

v=0
o=CiscoSystemsSIP-GW-UserAgent 2391 1714 IN IP4 193.43.148.36
s=SIP Call
c=IN IP4 193.43.148.36
t=0 0
m=audio 16636 RTP/AVP 8 0 18 101
c=IN IP4 193.43.148.36
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15

<--- Transmitting SIP response (439 bytes) to UDP:193.43.148.37:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 193.43.148.37;rport=5060;received=193.43.148.37;branch=z9hG4bK7406.8ab6fc64.0
Via: SIP/2.0/UDP 193.43.148.36:5060;branch=z9hG4bK2789321678
Record-Route: <sip:193.43.148.37;lr>
Call-ID: [email protected]
From: <sip:[email protected]>;tag=D8C0EEEC-390
To: <sip:[email protected]>
CSeq: 101 INVITE
Server: FPBX-15.0.37.4(16.28.0)
Content-Length:  0


[2023-11-26 14:50:47] NOTICE[13258]: res_pjsip_geolocation.c:195 handle_incoming_request:  PJSIP/HALONET-00000076: Endpoint has no geoloc_incoming_call_profile. Done.
    -- Executing [s@from-pstn:1] NoOp("PJSIP/HALONET-00000076", "No DID or CID Match") in new stack
    -- Executing [s@from-pstn:2] Answer("PJSIP/HALONET-00000076", "") in new stack
       > 0x7fcea80164f0 -- Strict RTP learning after remote address set to: 193.43.148.36:16636
<--- Transmitting SIP response (989 bytes) to UDP:193.43.148.37:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 193.43.148.37;rport=5060;received=193.43.148.37;branch=z9hG4bK7406.8ab6fc64.0
Via: SIP/2.0/UDP 193.43.148.36:5060;branch=z9hG4bK2789321678
Record-Route: <sip:193.43.148.37;lr>
Call-ID: [email protected]
From: <sip:[email protected]>;tag=D8C0EEEC-390
To: <sip:[email protected]>;tag=8728eab0-84c3-4b1f-ad05-0c01c99e3e3e
CSeq: 101 INVITE
Server: FPBX-15.0.37.4(16.28.0)
Contact: <sip:57.128.194.7:5060>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uas
Content-Type: application/sdp
Content-Length:   249

v=0
o=- 2391 1716 IN IP4 57.128.194.7
s=Asterisk
c=IN IP4 57.128.194.7
t=0 0
m=audio 18238 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

<--- Received SIP request (474 bytes) from UDP:193.43.148.37:5060 --->
ACK sip:57.128.194.7:5060 SIP/2.0
Via: SIP/2.0/UDP 193.43.148.37;branch=z9hG4bK7406.8ab6fc64.2
Via: SIP/2.0/UDP 193.43.148.36:5060;branch=z9hG4bK2789331E3F
From: <sip:[email protected]>;tag=D8C0EEEC-390
To: <sip:[email protected]>;tag=8728eab0-84c3-4b1f-ad05-0c01c99e3e3e
Date: Sun, 26 Nov 2023 14:50:47 GMT
Call-ID: [email protected]
Max-Forwards: 69
CSeq: 101 ACK
Allow-Events: telephone-event
Content-Length: 0


       > 0x7fcea80164f0 -- Strict RTP switching to RTP target address 193.43.148.36:16636 as source
[2023-11-26 14:50:48] WARNING[24420][C-00000035]: chan_sip.c:23281 func_header_read: This function can only be used on SIP channels.
    -- Executing [s@from-pstn:3] Log("PJSIP/HALONET-00000076", "WARNING,Friendly Scanner from ") in new stack
[2023-11-26 14:50:48] WARNING[24420][C-00000035]: Ext. s:3 @ from-pstn: Friendly Scanner from 
    -- Executing [s@from-pstn:4] Wait("PJSIP/HALONET-00000076", "2") in new stack
    -- Executing [s@from-pstn:5] Playback("PJSIP/HALONET-00000076", "ss-noservice") in new stack
    -- <PJSIP/HALONET-00000076> Playing 'ss-noservice.ulaw' (language 'pl')
       > 0x7fcea80164f0 -- Strict RTP learning complete - Locking on source address 193.43.148.36:16636
    -- Executing [s@from-pstn:6] SayAlpha("PJSIP/HALONET-00000076", "") in new stack
    -- Executing [s@from-pstn:7] Hangup("PJSIP/HALONET-00000076", "") in new stack
  == Spawn extension (from-pstn, s, 7) exited non-zero on 'PJSIP/HALONET-00000076'
    -- Executing [h@from-pstn:1] Macro("PJSIP/HALONET-00000076", "hangupcall,") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("PJSIP/HALONET-00000076", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("PJSIP/HALONET-00000076", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] Hangup("PJSIP/HALONET-00000076", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/HALONET-00000076' in macro 'hangupcall'
  == Spawn extension (from-pstn, h, 1) exited non-zero on 'PJSIP/HALONET-00000076'
<--- Transmitting SIP request (483 bytes) to UDP:193.43.148.37:5060 --->
BYE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 57.128.194.7:5060;rport;branch=z9hG4bKPj919e72aa-a74a-4651-952a-56b77ac6cb5d
From: <sip:[email protected]>;tag=8728eab0-84c3-4b1f-ad05-0c01c99e3e3e
To: <sip:[email protected]>;tag=D8C0EEEC-390
Call-ID: [email protected]
CSeq: 19345 BYE
Route: <sip:193.43.148.37;lr>
Reason: Q.850;cause=16
Max-Forwards: 70
User-Agent: FPBX-15.0.37.4(16.28.0)
Content-Length:  0


<--- Received SIP response (465 bytes) from UDP:193.43.148.37:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 57.128.194.7:5060;received=57.128.194.7;rport=5060;branch=z9hG4bKPj919e72aa-a74a-4651-952a-56b77ac6cb5d
From: <sip:[email protected]>;tag=8728eab0-84c3-4b1f-ad05-0c01c99e3e3e
To: <sip:[email protected]>;tag=D8C0EEEC-390
Date: Sun, 26 Nov 2023 14:50:55 GMT
Call-ID: [email protected]
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 19345 BYE
Reason: Q.850;cause=16
Content-Length: 0


Change Context for your trunk(s) to
from-pstn-toheader
Set DID Number for your Inbound Routes your numbers, starting with the 48 country code but without the +.

Thank you its work

Log starts one message too late.

Asterisk thinks the DID is “s”. Either that is what is in the request URI, which is what will happen if you register with default settings and the registration is handled normally, or there is no user part at all. As you didn’t include the INVITE, one can’t tell which case applies.

Given the DID is variable and appears to be in the To header, you need to use from-pstn-toheader, as the initial context, so that FreePBX looks in the right place, and “48222472040” instead of " * +48 22 247 20 40"

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