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