[Freeswitch-users] DIALPLAN: Bridge, Hang Up and Voice mail
Sean Devoy
sdevoy at bizfocused.com
Fri Mar 9 06:54:17 MSK 2012
Hi,
I have a couple of questions regarding XML dialplan functionality.
First, using this simple dial plan:
<extension name="220" >
<condition field="destination_number" expression="^220$">
<action application="set"
data="effective_caller_id_number=${internal_caller_id_number}"/>
<action application="set"
data="effective_caller_id_name=${internal_caller_id_name}"/>
<action application="set" data="ringback=${us-ring}"/>
<action application="set" data="call_timeout=20"/>
<action application="bridge"
data="sofia/external/220%mydomainname.com"/>
<action application="answer"/>
<action application="voicemail" data="default voicemail_BFIS 220"/>
<action application="hangup"/>
</condition>
</extension>
I can call 220, if there is no answer it goes to voicemail. GOOD.
However, if that user answers and then hangs up, I still go to voice mail. I
thought bridge terminated the call.
Question 1: Why does the dial plan continue to voicemail after bridge
answers, talks and hangs up?
Question 2: If this user's phone is unplugged, the bridge kicks an error and
it DOES NOT go to voice mail. How can I detect "extension unavailable" in
the dial plan and perhaps forward to a cell phone?
Thanks in advance,
Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120308/edd0aa79/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list