[Freeswitch-users] Hangup B leg using featurecode

farivar fahimafar farivar_it at yahoo.com
Wed Jul 9 22:36:49 MSD 2014


hi
i have cisco as5500 and wnat to trunk to freeswitch
can i do it?
thanks



On Wednesday, July 9, 2014 8:44 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 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/20140709/6496010e/attachment.html 


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