[Freeswitch-users] lua script to disconnect active outboundcalls to a specific gateway

Jason Holden jason.holden at start.ca
Tue Nov 18 23:21:46 MSK 2014


I am looking to force disconnections of channels if for example an emergency
number is dialed and there are active calls on a specific gateway where the
emergency call would be routed to.

 The purpose of this is to ensure that the outbound emergency call connects
to its end destination and does not experience any busy lines.

 

 

From: Brian West [mailto:brian at freeswitch.org] 
Sent: Monday, November 17, 2014 5:41 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] lua script to disconnect active
outboundcalls to a specific gateway

 

fsctl hupall matching var <var_name> <var_value>

Been there since 2010 :)

 

On Mon, Nov 17, 2014 at 3:33 PM, Michael Collins <msc at freeswitch.org> wrote:

I'm sure it's possible. I think the bigger question is: what is the endgame?
Is there a bigger picture here?

In any case, if you're not using the presence_data field you could always
set that value on the outbound leg and then find the corresponding channels
with "show channels like 'foo'" and from there do something like "uuid_kill
<uuid> <cause>" on each one.

In any case, look before you leap. Using a tool that supposedly kills all
calls to a particular gateway may have unintended consequences.

-MC

 

On Mon, Nov 17, 2014 at 8:11 AM, Jason Holden <jason.holden at start.ca> wrote:

Is this possible?

            

 

 


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.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://confluence.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





 

-- 

Brian West
brian at freeswitch.org

  <http://billing.freeswitch.org/templates/default/img/whmcslogo.png> 

Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141118/f55c2d1d/attachment.html 


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