QUESTION Dialplan + Callfile Assistance

weirdnerd

New Member
Joined
Mar 8, 2024
Messages
2
Reaction score
0
Fairly new to IncrediblePBX and the PBX world, as part of a larger application im working on im trying to utilize call files to make outbound calls to call my local chanSIP extensions which when i answer should call out using the from-internal context as its necessary to pass on the callerid settings and predial hook stuff that occurs when i use my sipphone and dial out manually.

Issue 1) Not passing on the DTMFString from the Call File
Issue 2) Unable to hear the other party until after the subroutine finishes running.


Dialplan:'

[handle-dtmf]
exten => s,1,NoOp(Starting DTMF interaction sequence)
same => n,Wait(10) ; Wait 10 Seconds
same => n,SendDTMF(1) ; Press 1
same => n,Wait(5) ; Wait for 5 seconds
same => n,SendDTMF(1) ; Press 1 again
same => n,SendDTMF(${DTMFString}) ; Send the DTMFString variable content
same => n,SendDTMF(#) ; Press #
same => n,Return() ; Return to the previous context

[newdialout2]
exten => s,1,NoOp(Starting automated call process with recording)
same => n,Set(MONITOR_FILENAME=${DTMFString})
same => n,MixMonitor(${MONITOR_FILENAME}.wav,b)
same => n,Dial(Local/${OutboundNumber}@from-internal,30,U(handle-dtmf^${DTMFString}))
same => n,Wait(10)
same => n,Hangup()

Example Call File Structure:

Channel: SIP/111
Context: newdialout2
Extension: s
Priority: 1
Setvar: DTMFString=12345
Setvar: OutboundNumber=4255555555
 
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top