[Freeswitch-users] Help understanding call_timeout in two dialplans

Larry Marshall lcm at marshap.com
Tue May 26 09:49:47 PDT 2009


On inbound calls made to 5551212, which call_timeout will be active, 15 or
20? Is it the last hit?

 

Is there a URL which describes all the applications, for example, export in
the default.xml?

 

Thanks for this amazing software, Lars

 

In conf/dialplan/public/00_inbound.xml:

<include>

  <extension name="Inbound-5551212">

     <condition field="destination_number" expression="^1323(5551212)$">

        <action application="ring_ready" />

        <action application="set" data="call_timeout=15"/>

        <action application="set" data="domain_name=$${domain}"/>

        <action application="transfer" data="1000 XML default"/>

     </condition>

  </extension>

</include>

 

In conf/dialplan/default.xml:

<?xml version="1.0" encoding="utf-8"?>

<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML -->

<include>

  <context name="default">

    <extension name="Local_Extension">

      <condition field="destination_number" expression="^(10[01][0-9])$">

        <action application="set" data="dialed_ext=$1"/>

        <action application="export" data="dialed_ext=$1"/>

      </condition>

      <condition field="destination_number"
expression="^${caller_id_number}$">

        <action application="set"
data="voicemail_authorized=${sip_authorized}"/>

        <action application="answer"/>

        <action application="sleep" data="1000"/>

        <action application="voicemail" data="check default $${domain}
${dialed_ext}"/>

        <anti-action application="bind_meta_app" data="1 a a
execute_extension::dx XML features"/>

        <anti-action application="bind_meta_app" data="2 a a
record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m
-%d-%H-%M-%S)}.wav"/>

        <anti-action application="bind_meta_app" data="3 a a
execute_extension::cf XML features"/>

        <anti-action application="set" data="transfer_ringback=${us-ring}"/>

        <anti-action application="set" data="call_timeout=20"/>

        <anti-action application="set"
data="sip_exclude_contact=${network_addr}"/>

        <anti-action application="set" data="hangup_after_bridge=true"/>

        <anti-action application="set" data="continue_on_fail=true"/>

        <anti-action application="db"
data="insert/call_return/${dialed_ext}/${caller_id_number}"/>

        <anti-action application="db"
data="insert/last_dial_ext/${dialed_ext}/${uuid}"/>

        <anti-action application="bridge"
data="user/${dialed_ext}@$${domain}"/>

        <anti-action application="answer"/>

        <!--<anti-action application="send_display" data="Voicemail for
${dialed_ext}"/>-->

        <anti-action application="sleep" data="1000"/>

        <anti-action application="voicemail" data="default $${domain}
${dialed_ext}"/>

      </condition>

    </extension>

  </context>

</include>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090526/641c0f00/attachment-0002.html 


More information about the FreeSWITCH-users mailing list