[Freeswitch-users] Has the behavior of loopback endpoint changed since 92e89cb4532913a3fd7a4888f8c94df379775cc3 commit

Anton Kvashenkin anton.jugatsu at gmail.com
Wed Apr 18 15:59:35 MSD 2012


Today, as always, i just made git pull to the latests updates and found
strange behaviour @ vanilla configuraton of the extension
"Local_Extension".

FreeSWITCH Version 1.1.beta1 (git-e9abdac 2012-04-17 23-05-48 -0400)

 <extension name="Local_Extension">
      <condition field="destination_number" expression="^(10[01][0-9])$">
        <action application="export" data="dialed_extension=$1"/>
        <action application="bind_meta_app" data="1 b s
execute_extension::dx XML features"/>
        <action application="bind_meta_app" data="2 b s
record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
        <action application="bind_meta_app" data="3 b s
execute_extension::cf XML features"/>
        <action application="bind_meta_app" data="4 b s
execute_extension::att_xfer XML features"/>
        <action application="set" data="ringback=${ru-ring}"/>
        <action application="set" data="transfer_ringback=$${hold_music}"/>
        <action application="set" data="call_timeout=30"/>
        <action application="set" data="hangup_after_bridge=true"/>
        <!--<action application="set"
data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/>
-->
        <action application="set" data="continue_on_fail=true"/>
        <action application="hash"
data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/>
        <action application="hash"
data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/>
        <action application="set"
data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name}
var callgroup)}"/>
        <action application="hash"
data="insert/${domain_name}-last_dial_ext/${called_party_callgroup}/${uuid}"/>
        <action application="hash"
data="insert/${domain_name}-last_dial_ext/global/${uuid}"/>
        <action application="hash"
data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/>
        <action application="bridge" data="user/${dialed_extension}@
${domain_name}"/>
        <action application="answer"/>
        <action application="sleep" data="1000"/>
        <action application="bridge" data="loopback/app=voicemail:default
${domain_name} ${dialed_extension}"/>
      </condition>
    </extension>

The purpose of that extension is simple, just rings to another extension
and, for example, if the other side is busy go to voicemail. But with the
lattest git it doesn't work at all.
Why does it proceed "voicemail" into default context? Here is the log:
http://pastebin.freeswitch.com/18886

Actually it works when using 92e89cb4532913a3fd7a4888f8c94df379775cc3
revision.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120418/98560199/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list