So I am back to my original question.
I “need” to be able to send DTMF 1 and 1 to tell the other end to ACK and hangup before the channel is dead - how do I do that? This would be on the ORIGINATING line - not the line that answers.
Below F does not get ran .
; PHONE TREE - AOR 911 testing
exten => 911,1,Gosub(smvoice-toa-check-callerid,s,1)
exten => 911,n,agi(smvoice,-digium_asterisk,-LogPhone,VC-jerryv-geisv,-LogIncomingCall)
exten => 911,n,Dial(PJSIP/VC-jerryv-geisv,5,gF(smvoice-pjsip-aor-hangup,aor-hangup,1))
exten => 911,n,Noop(loop start again at priority 2)
exten => 911,n,Wait(1)
exten => 911,n,Goto(2)
This is the basic dialplan (at this time) its looping (typically calling more than one person till answer) but I only need ME at this time… But the originating device needs DTMF 11 to ack and hangup.
Connected to Asterisk 22.5.0 currently running on devgeis (pid = 2254744)
-- Executing \[911@smvoice-pjsip:1\] Gosub("PJSIP/123-00000008", "smvoice-toa-check-callerid,s,1") in new stack
-- Executing \[s@smvoice-toa-check-callerid:1\] System("PJSIP/123-00000008", "/usr/bin/test -e /home/silentm/toa_callerid_number.txt") in new stack
-- Executing \[s@smvoice-toa-check-callerid:2\] GotoIf("PJSIP/123-00000008", "1?toa_skip_callerid_number:toa_use_callerid_number") in new stack
-- Goto (smvoice-toa-check-callerid,s,5)
-- Executing \[s@smvoice-toa-check-callerid:5\] NoOp("PJSIP/123-00000008", "1") in new stack
-- Executing \[s@smvoice-toa-check-callerid:6\] System("PJSIP/123-00000008", "/usr/bin/test -e /home/silentm/toa.incoming.txt") in new stack
-- Executing \[s@smvoice-toa-check-callerid:7\] GotoIf("PJSIP/123-00000008", "1?toa_skip_callerid:toa_use_callerid") in new stack
-- Goto (smvoice-toa-check-callerid,s,15)
-- Executing \[s@smvoice-toa-check-callerid:15\] NoOp("PJSIP/123-00000008", "No TOA Incoming call") in new stack
-- Executing \[s@smvoice-toa-check-callerid:16\] Return("PJSIP/123-00000008", "") in new stack
-- Executing \[911@smvoice-pjsip:2\] AGI("PJSIP/123-00000008", "smvoice,-digium_asterisk,-LogPhone,VC-jerryv-geisv,-LogIncomingCall") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/smvoice
-- <PJSIP/123-00000008>AGI Script smvoice completed, returning 0
-- Executing \[911@smvoice-pjsip:3\] Dial("PJSIP/123-00000008", "PJSIP/VC-jerryv-geisv,5,gF(smvoice-pjsip-aor-hangup,aor-hangup,1)") in new stack
-- Called PJSIP/VC-jerryv-geisv
-- PJSIP/VC-jerryv-geisv-00000009 is ringing
-- Nobody picked up in 5000 ms
-- Executing \[911@smvoice-pjsip:4\] NoOp("PJSIP/123-00000008", "loop start again at priority 2") in new stack
-- Executing \[911@smvoice-pjsip:5\] Wait("PJSIP/123-00000008", "1") in new stack
-- Executing \[911@smvoice-pjsip:6\] Goto("PJSIP/123-00000008", "2") in new stack
-- Goto (smvoice-pjsip,911,2)
-- Executing \[911@smvoice-pjsip:2\] AGI("PJSIP/123-00000008", "smvoice,-digium_asterisk,-LogPhone,VC-jerryv-geisv,-LogIncomingCall") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/smvoice
-- <PJSIP/123-00000008>AGI Script smvoice completed, returning 0
-- Executing \[911@smvoice-pjsip:3\] Dial("PJSIP/123-00000008", "PJSIP/VC-jerryv-geisv,5,gF(smvoice-pjsip-aor-hangup,aor-hangup,1)") in new stack
-- Called PJSIP/VC-jerryv-geisv
-- PJSIP/VC-jerryv-geisv-0000000a is ringing
-- PJSIP/VC-jerryv-geisv-0000000a answered PJSIP/123-00000008
-- Channel PJSIP/VC-jerryv-geisv-0000000a joined 'simple_bridge' basic-bridge <edae119f-adf0-468b-9fd0-04d3bac48cdd>
-- Channel PJSIP/123-00000008 joined 'simple_bridge' basic-bridge <edae119f-adf0-468b-9fd0-04d3bac48cdd>
== Manager ‘LayeredSolutions’ logged on from 127.0.0.1
-- Called s@smvoice-heartbeat/n
-- Executing \[s@smvoice-heartbeat:1\] UserEvent("Local/s@smvoice-heartbeat-0000002f;2", "HeartBeat, Noop") in new stack
-- Executing \[s@smvoice-heartbeat:2\] Hangup("Local/s@smvoice-heartbeat-0000002f;2", "") in new stack
== Spawn extension (smvoice-heartbeat, s, 2) exited non-zero on ‘Local/s@smvoice-heartbeat-0000002f;2’
== Manager ‘LayeredSolutions’ logged off from 127.0.0.1
== Manager ‘LayeredSolutions’ logged on from 127.0.0.1
== Manager ‘LayeredSolutions’ logged off from 127.0.0.1
-- Channel PJSIP/VC-jerryv-geisv-0000000a left 'simple_bridge' basic-bridge <edae119f-adf0-468b-9fd0-04d3bac48cdd>
-- Channel PJSIP/123-00000008 left 'simple_bridge' basic-bridge <edae119f-adf0-468b-9fd0-04d3bac48cdd>
-- Executing \[911@smvoice-pjsip:4\] NoOp("PJSIP/123-00000008", "loop start again at priority 2") in new stack
-- Executing \[911@smvoice-pjsip:5\] Wait("PJSIP/123-00000008", "1") in new stack
-- Executing \[911@smvoice-pjsip:6\] Goto("PJSIP/123-00000008", "2") in new stack
-- Goto (smvoice-pjsip,911,2)
-- Executing \[911@smvoice-pjsip:2\] AGI("PJSIP/123-00000008", "smvoice,-digium_asterisk,-LogPhone,VC-jerryv-geisv,-LogIncomingCall") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/smvoice
-- <PJSIP/123-00000008>AGI Script smvoice completed, returning 0
-- Executing \[911@smvoice-pjsip:3\] Dial("PJSIP/123-00000008", "PJSIP/VC-jerryv-geisv,5,gF(smvoice-pjsip-aor-hangup,aor-hangup,1)") in new stack
-- Called PJSIP/VC-jerryv-geisv
-- PJSIP/VC-jerryv-geisv-0000000b is ringing
== Spawn extension (smvoice-pjsip, 911, 3) exited non-zero on ‘PJSIP/123-00000008’
-- Executing \[h@smvoice-pjsip:1\] NoOp("PJSIP/123-00000008", "agi_pa_meetme= agi_use_meetme agi_use_confbridge=") in new stack
-- Executing \[h@smvoice-pjsip:2\] AGI("PJSIP/123-00000008", "smvoice,-digium_success,-pa_done,,") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/smvoice
-- <PJSIP/123-00000008>AGI Script smvoice completed, returning 0
-- Executing \[h@smvoice-pjsip:3\] Hangup("PJSIP/123-00000008", "") in new stack
== Spawn extension (smvoice-pjsip, h, 3) exited non-zero on ‘PJSIP/123-00000008’
dialplan show smvoice-pjsip-aor-hangup
[ Context ‘smvoice-pjsip-aor-hangup’ created by ‘pbx_config’ ]
‘aor-hangup’ => 1. NoOp(Sending DTMF before cleanup for AOR) [extensions.conf:791]
2\. SendDTMF(11,a) \[extensions.conf:792\]
3\. Wait(1) \[extensions.conf:793\]
4\. SendDTMF(11) \[extensions.conf:794\]
5\. Hangup() \[extensions.conf:795\]
Jerry