[Freeswitch-users] Hangup B leg using featurecode

Michael Collins msc at freeswitch.org
Thu Jul 24 01:06:56 MSD 2014


Thanks for letting us know - it helps to have a little closure on things
like this. :)
-MC


On Wed, Jul 23, 2014 at 12:30 AM, Samir Doshi <smrdoshi at gmail.com> wrote:

> 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
>>
>>
>
> _________________________________________________________________________
> 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/9dab7385/attachment.html 


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