I have a location where I run Chan Dongle and HAve a Grandstream HT503 . I currently send calls from both devices to a separate asterisk box on a public IP .
Recently however the Internet has proven unreliable.
I need to use the ht503 as an alternate destination for the calls coming in on the chan_dongle
I currently use this
my full extensions.conf
[from-trunk-dongle]
exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)} ${BASE64_DECODE(${SMS$
; exten => sms,n,System(echo "To: my@gmail.com\nSubject: Incoming SMS fr$
exten => sms,n,System(echo "From: ${CALLERID(num)} sendfrom@gmail.com\nT$
exten => sms,n,Set(FILE(/tmp/sms.txt,a)=${BASE64_DECODE(${SMS_BASE64})})
exten => sms,n,System(sendmail -t < /tmp/sms.txt)
exten => sms,n,Hangup()
exten => _.,1,Answer()
exten => _.,n,Set(CALLERID(all)=52${CALLERID(num)})
; exten => _.,n,Goto(from-trunk,${EXTEN},1)
exten => _.,n,Dial(SIP/destination@publicIPServer)
So how can I add an alternate destination ONLY when the call fails to SIP/destination@publicIPServer
I would then like to send to
SIP/destination@LANIPofHT503
?
Thanks
Mark