Originate tip

I found from http://forums.digium.com/viewtopic.php?t=16347
Lem__Mel suggest a tip to handle error on Originate command
* notice 'phoneNumber'

Action: Originate
Channel: Local/inChannel@call
Exten: outChannel
Context: call
Priority: 1
Variable: timeout=3
Variable: phoneNumber=SIP/henri

[call]
exten => outChannel,1,Dial(${phoneNumber}, ${timeout})
exten => outChanneln,GOTOIF((${DIALSTATUS} != ANSWER) ?erreur)
exten => outChannel,n(erreur),UserEvent(CALL_FAILED|Reason:${DIALSTATUS}|DetailedCause: ${HANGUPCAUSE});
exten => inChannel,1,Answer()
exten => inChannel,n,WaitMusicOnHold(3600)
exten => inChannel,n,Hangup()

Comments

Popular posts from this blog

Wowza 4.0.1 (Wowza Streaming Engine) Released!

WebRTC for Real-Time Communications