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
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