[Freeswitch-users] Hangup B leg using featurecode

Samir Doshi smrdoshi at gmail.com
Wed Jul 23 11:30:44 MSD 2014


Hi,

Thanks. Its working fine.

<action application="bind_meta_app" data="# a b execute_extension::${uuid}
XML foo"/>

<context name="foo">
  <extension name="hangup b leg">
        <condition field="destination_number" expression="^(.*)$">
        <action application="log" data="INFO Hanging up B leg uuid of
${bridge_uuid}"/>
        <action application="set" data="res=${uuid_kill(${bridge_uuid})}"/>
     </condition>
  </extension>
</context>






On Wed, Jul 9, 2014 at 9:40 PM, Michael Collins <msc at freeswitch.org> wrote:

>
>
>
>
>> 2014-07-09 03:22:17.928601 [ERR] switch_core_session.c:2535 Invalid
>> Application uuid_kill
>>
>>
>>
> uuid_kill is an API command, not a dialplan application. It might be
> cleaner for you to use the execute_extension dialplan app to execute a
> simple dialplan extension that uses the set app to execute the API per this
> wiki entry:
>
> https://confluence.freeswit.ch/display/FREESWITCH/API+Commands
> (see "from the dialplan" section)
>
> Another advantage to using the execute_extension app in your bind_meta_app
> call is that you can have other things occur like spitting out log info.
>
> <action application="bind_meta_app" data="# a b
> execute_extension::${uuid_of_b_leg} XML foo"/>
>
> <context name="foo">
>   <extension name="hangup b leg">
>     <condition field="destination_number" expression="^(.*)$">
>       <action application="log" data="INFO Hanging up B leg uuid of $1"/>
>       <action application="set" data="res=${uuid_kill($1)}"/>
>     </condition>
>   </extension>
> </context>
>
> Please note that the standard disclaimer
> <https://wiki.freeswitch.org/wiki/Reporting_Bugs#Standard_Disclaimer>
> applies to the information I've presented here.
> -MC
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140723/8c8d1fe4/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list