This is the first step of the project. Ultimately, we need our 3CX school districts to be able to auto-dial specific Bogen Intercom zones when playing bell tones and recorded audio. A call will be made from an intergrated scheduler to an extension configured on the Asterisk box. Asterisk will then relay the call to an ATA directly attached to the Bogen unit and append the correct dial code for the desired zone.
Here is the full console output:
SC3CX-Asterisk*CLI> channel originate PJSIP/acdc-mn-3cx/sip:9999@3CXPublicIP extension 9875@send-dtmf-after-answer callerid “9875” <9875>
– Called acdc-mn-3cx/sip:9999@3CXPublicIP
<— Transmitting SIP request (878 bytes) to UDP:3CXPublicIP:5060 —>
INVITE sip:9999@3CXPublicIP SIP/2.0
Via: SIP/2.0/UDP AsteriskPrivateIP:5060;rport;branch=z9hG4bKPj221f5373-e1c0-49fb-8e3f-aac3dcca44ea
From: “Anonymous” sip:9875@anonymous.invalid;tag=b6dd8790-d89b-44c3-bf26-3cdcd5011f00
To: sip:9999@3CXPublicIP
Contact: sip:9875@AsteriskPrivateIP:5060
Call-ID: f59167a1-3c13-415e-98b7-df2a383ada84
CSeq: 6267 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, INFO, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Content-Type: application/sdp
Content-Length: 175
v=0
o=- 826084990 826084990 IN IP4 AsteriskPrivateIP
s=Asterisk
c=IN IP4 AsteriskPrivateIP
t=0 0
m=audio 13434 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=ptime:20
a=maxptime:140
a=sendrecv
<— Received SIP response (454 bytes) from UDP:3CXPublicIP:5060 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP AsteriskPrivateIP:5060;rport=5060;branch=z9hG4bKPj221f5373-e1c0-49fb-8e3f-aac3dcca44ea;received=AsteriskPublicIP
Contact: sip:Trunkauthid@3CXPublicIP:5060
To: sip:9999@3CXPublicIP;tag=f9497a28
From: “Anonymous” sip:9875@anonymous.invalid;tag=b6dd8790-d89b-44c3-bf26-3cdcd5011f00
Call-ID: f59167a1-3c13-415e-98b7-df2a383ada84
CSeq: 6267 INVITE
User-Agent: 3CXPhoneSystem 20.0.2.715 (715)
Content-Length: 0
-- PJSIP/acdc-mn-3cx-00000004 is ringing
<— Received SIP response (846 bytes) from UDP:3CXPublicIP:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP AsteriskPrivateIP:5060;rport=5060;branch=z9hG4bKPj221f5373-e1c0-49fb-8e3f-aac3dcca44ea;received=AsteriskPublicIP
Require: timer
Contact: sip:Trunkauthid@3CXPublicIP:5060
To: sip:9999@3CXPublicIP;tag=f9497a28
From: “Anonymous” sip:9875@anonymous.invalid;tag=b6dd8790-d89b-44c3-bf26-3cdcd5011f00
Call-ID: f59167a1-3c13-415e-98b7-df2a383ada84
CSeq: 6267 INVITE
Session-Expires: 1800;refresher=uac
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE, UPDATE
Content-Type: application/sdp
Supported: replaces, timer
User-Agent: 3CXPhoneSystem 20.0.2.715 (715)
Content-Length: 182
v=0
o=3cxPS 13070646959407104 24752420697407489 IN IP4 3CXPublicIP
s=3cxPS Audio call
c=IN IP4 3CXPublicIP
t=0 0
m=audio 9420 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=sendrecv
> 0x7d8a7000b1e0 -- Strict RTP learning after remote address set to: 3CXPublicIP:9420
<— Transmitting SIP request (440 bytes) to UDP:3CXPublicIP:5060 —>
ACK sip:Trunkauthid@3CXPublicIP:5060 SIP/2.0
Via: SIP/2.0/UDP AsteriskPrivateIP:5060;rport;branch=z9hG4bKPj03b68f16-3ad1-4676-b3bb-71c6aafebbec
From: “Anonymous” sip:9875@anonymous.invalid;tag=b6dd8790-d89b-44c3-bf26-3cdcd5011f00
To: sip:9999@3CXPublicIP;tag=f9497a28
Call-ID: f59167a1-3c13-415e-98b7-df2a383ada84
CSeq: 6267 ACK
Max-Forwards: 70
User-Agent: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Content-Length: 0
-- PJSIP/acdc-mn-3cx-00000004 answered
-- Executing [9875@send-dtmf-after-answer:1] Set("PJSIP/acdc-mn-3cx-00000004", "PJSIP_HEADER(add,P-Asserted-Identity)=sip:9875@AsteriskPublicIP") in new stack
-- Executing [9875@send-dtmf-after-answer:2] Dial("PJSIP/acdc-mn-3cx-00000004", "PJSIP/acdc-mn-3cx/sip:9875@3CXPublicIP") in new stack
-- Called PJSIP/acdc-mn-3cx/sip:9875@3CXPublicIP
<— Transmitting SIP request (880 bytes) to UDP:3CXPublicIP:5060 —>
INVITE sip:9875@3CXPublicIP SIP/2.0
Via: SIP/2.0/UDP AsteriskPrivateIP:5060;rport;branch=z9hG4bKPj6b80f700-4cc9-42ea-ae89-baaad7cd5c62
From: “Anonymous” sip:9875@anonymous.invalid;tag=18cab972-455d-4131-804f-5e3c644f8c11
To: sip:9875@3CXPublicIP
Contact: sip:9875@AsteriskPrivateIP:5060
Call-ID: 8f71d7cc-d11e-4791-aa6b-0a07d1ee0ab5
CSeq: 8363 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, INFO, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Content-Type: application/sdp
Content-Length: 177
v=0
o=- 1879258594 1879258594 IN IP4 AsteriskPrivateIP
s=Asterisk
c=IN IP4 AsteriskPrivateIP
t=0 0
m=audio 17114 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=ptime:20
a=maxptime:140
a=sendrecv
<— Transmitting SIP request (1036 bytes) to UDP:3CXPublicIP:5060 —>
INVITE sip:Trunkauthid@3CXPublicIP:5060 SIP/2.0
Via: SIP/2.0/UDP AsteriskPrivateIP:5060;rport;branch=z9hG4bKPja60ab48c-f020-41c2-b0dd-203ce2b26ecf
From: “Anonymous” sip:9875@anonymous.invalid;tag=b6dd8790-d89b-44c3-bf26-3cdcd5011f00
To: sip:9999@3CXPublicIP;tag=f9497a28
Contact: sip:9875@AsteriskPrivateIP:5060
Call-ID: f59167a1-3c13-415e-98b7-df2a383ada84
CSeq: 6268 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, INFO, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800;refresher=uac
Min-SE: 90
P-Asserted-Identity: sip:9875@AsteriskPrivateIP
Remote-Party-ID: sip:9875@AsteriskPrivateIP;party=calling;privacy=off;screen=no
Max-Forwards: 70
User-Agent: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Content-Type: application/sdp
Content-Length: 175
v=0
o=- 826084990 826084991 IN IP4 AsteriskPrivateIP
s=Asterisk
c=IN IP4 AsteriskPrivateIP
t=0 0
m=audio 13434 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=ptime:20
a=maxptime:140
a=sendrecv
<— Received SIP response (509 bytes) from UDP:3CXPublicIP:5060 —>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP AsteriskPrivateIP:5060;rport=5060;branch=z9hG4bKPj6b80f700-4cc9-42ea-ae89-baaad7cd5c62;received=AsteriskPublicIP
Proxy-Authenticate: Digest nonce=“414d5359673644dd92:5c06152686af92c16f23f01b73bb18e0”,algorithm=MD5,realm=“3CXPhoneSystem”
To: sip:9875@3CXPublicIP;tag=56ea8819
From: “Anonymous” sip:9875@anonymous.invalid;tag=18cab972-455d-4131-804f-5e3c644f8c11
Call-ID: 8f71d7cc-d11e-4791-aa6b-0a07d1ee0ab5
CSeq: 8363 INVITE
Content-Length: 0
<— Transmitting SIP request (429 bytes) to UDP:3CXPublicIP:5060 —>
ACK sip:9875@3CXPublicIP SIP/2.0
Via: SIP/2.0/UDP AsteriskPrivateIP:5060;rport;branch=z9hG4bKPj6b80f700-4cc9-42ea-ae89-baaad7cd5c62
From: “Anonymous” sip:9875@anonymous.invalid;tag=18cab972-455d-4131-804f-5e3c644f8c11
To: sip:9875@3CXPublicIP;tag=56ea8819
Call-ID: 8f71d7cc-d11e-4791-aa6b-0a07d1ee0ab5
CSeq: 8363 ACK
Max-Forwards: 70
User-Agent: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Content-Length: 0
[Nov 14 12:43:41] ERROR[25447]: res_pjsip_outbound_authenticator_digest.c:450 digest_create_request_with_auth: Endpoint: ‘acdc-mn-3cx’: There were no auth ids available
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [9875@send-dtmf-after-answer:3] Wait(“PJSIP/acdc-mn-3cx-00000004”, “2”) in new stack
<— Received SIP response (361 bytes) from UDP:3CXPublicIP:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP AsteriskPrivateIP:5060;rport=5060;branch=z9hG4bKPja60ab48c-f020-41c2-b0dd-203ce2b26ecf;received=AsteriskPublicIP
To: sip:9999@3CXPublicIP;tag=f9497a28
From: “Anonymous” sip:9875@anonymous.invalid;tag=b6dd8790-d89b-44c3-bf26-3cdcd5011f00
Call-ID: f59167a1-3c13-415e-98b7-df2a383ada84
CSeq: 6268 INVITE
Content-Length: 0
<— Received SIP response (846 bytes) from UDP:3CXPublicIP:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP AsteriskPrivateIP:5060;rport=5060;branch=z9hG4bKPja60ab48c-f020-41c2-b0dd-203ce2b26ecf;received=AsteriskPublicIP
Require: timer
Contact: sip:Trunkauthid@3CXPublicIP:5060
To: sip:9999@3CXPublicIP;tag=f9497a28
From: “Anonymous” sip:9875@anonymous.invalid;tag=b6dd8790-d89b-44c3-bf26-3cdcd5011f00
Call-ID: f59167a1-3c13-415e-98b7-df2a383ada84
CSeq: 6268 INVITE
Session-Expires: 1800;refresher=uac
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE, UPDATE
Content-Type: application/sdp
Supported: replaces, timer
User-Agent: 3CXPhoneSystem 20.0.2.715 (715)
Content-Length: 182
v=0
o=3cxPS 13070646959407104 24752420697407490 IN IP4 3CXPublicIP
s=3cxPS Audio call
c=IN IP4 3CXPublicIP
t=0 0
m=audio 9420 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=sendrecv
> 0x7d8a7000b1e0 -- Strict RTP learning after remote address set to: 3CXPublicIP:9420
<— Transmitting SIP request (440 bytes) to UDP:3CXPublicIP:5060 —>
ACK sip:Trunkauthid@3CXPublicIP:5060 SIP/2.0
Via: SIP/2.0/UDP AsteriskPrivateIP:5060;rport;branch=z9hG4bKPjcee95f47-f9cb-483d-a6f1-e952ac1dcc38
From: “Anonymous” sip:9875@anonymous.invalid;tag=b6dd8790-d89b-44c3-bf26-3cdcd5011f00
To: sip:9999@3CXPublicIP;tag=f9497a28
Call-ID: f59167a1-3c13-415e-98b7-df2a383ada84
CSeq: 6268 ACK
Max-Forwards: 70
User-Agent: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Content-Length: 0
-- Executing [9875@send-dtmf-after-answer:4] SendDTMF("PJSIP/acdc-mn-3cx-00000004", "#0") in new stack
Sent RTP packet to 3CXPublicIP:9420 (type 00, seq 029376, ts 000160, len 000160)
Sent RTP packet to 3CXPublicIP:9420 (type 00, seq 029377, ts 000320, len 000160)
> 0x7d8a7000b1e0 – Strict RTP switching to RTP target address 3CXPublicIP:9420 as source
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054017, ts 1925625565, len 000160)
Sent RTP packet to 3CXPublicIP:9420 (type 00, seq 029378, ts 000480, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054018, ts 1925625725, len 000160)
Sent RTP packet to 3CXPublicIP:9420 (type 00, seq 029379, ts 000640, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054019, ts 1925625885, len 000160)
Sent RTP packet to 3CXPublicIP:9420 (type 00, seq 029380, ts 000800, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054020, ts 1925626045, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054021, ts 1925626205, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054022, ts 1925626365, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054023, ts 1925626525, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054024, ts 1925626685, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054025, ts 1925626845, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054026, ts 1925627005, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054027, ts 1925627165, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054028, ts 1925627325, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054029, ts 1925627485, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054030, ts 1925627645, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054031, ts 1925627805, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054032, ts 1925627965, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054033, ts 1925628125, len 000160)
Sent RTP packet to 3CXPublicIP:9420 (type 00, seq 029381, ts 002960, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054034, ts 1925628285, len 000160)
Sent RTP packet to 3CXPublicIP:9420 (type 00, seq 029382, ts 003120, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054035, ts 1925628445, len 000160)
Sent RTP packet to 3CXPublicIP:9420 (type 00, seq 029383, ts 003280, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054036, ts 1925628605, len 000160)
Sent RTP packet to 3CXPublicIP:9420 (type 00, seq 029384, ts 003440, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054037, ts 1925628765, len 000160)
Sent RTP packet to 3CXPublicIP:9420 (type 00, seq 029385, ts 003600, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054038, ts 1925628925, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054039, ts 1925629085, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054040, ts 1925629245, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054041, ts 1925629405, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054042, ts 1925629565, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054043, ts 1925629725, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054044, ts 1925629885, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054045, ts 1925630045, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054046, ts 1925630205, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054047, ts 1925630365, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054048, ts 1925630525, len 000160)
Got RTP packet from 3CXPublicIP:9420 (type 00, seq 054049, ts 1925630685, len 000160)
– Executing [9875@send-dtmf-after-answer:5] Hangup(“PJSIP/acdc-mn-3cx-00000004”, “”) in new stack
== Spawn extension (send-dtmf-after-answer, 9875, 5) exited non-zero on ‘PJSIP/acdc-mn-3cx-00000004’
<— Transmitting SIP request (464 bytes) to UDP:3CXPublicIP:5060 —>
BYE sip:Trunkauthid@3CXPublicIP:5060 SIP/2.0
Via: SIP/2.0/UDP AsteriskPrivateIP:5060;rport;branch=z9hG4bKPj8fb41800-87ff-49fb-9771-647ea2cc810c
From: “Anonymous” sip:9875@anonymous.invalid;tag=b6dd8790-d89b-44c3-bf26-3cdcd5011f00
To: sip:9999@3CXPublicIP;tag=f9497a28
Call-ID: f59167a1-3c13-415e-98b7-df2a383ada84
CSeq: 6269 BYE
Reason: Q.850;cause=21
Max-Forwards: 70
User-Agent: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Content-Length: 0
<— Received SIP response (446 bytes) from UDP:3CXPublicIP:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP AsteriskPrivateIP:5060;rport=5060;branch=z9hG4bKPj8fb41800-87ff-49fb-9771-647ea2cc810c;received=AsteriskPublicIP
Contact: sip:Trunkauthid@3CXPublicIP:5060
To: sip:9999@3CXPublicIP;tag=f9497a28
From: “Anonymous” sip:9875@anonymous.invalid;tag=b6dd8790-d89b-44c3-bf26-3cdcd5011f00
Call-ID: f59167a1-3c13-415e-98b7-df2a383ada84
CSeq: 6269 BYE
User-Agent: 3CXPhoneSystem 20.0.2.715 (715)
Content-Length: 0
SC3CX-Asterisk*CLI>