[Freeswitch-users] Controlling calls with mod_event_socket

Seven Du dujinfang at gmail.com
Sat Apr 24 17:10:01 PDT 2010


All the uuid_xxx api are from mod_commands and execute *OUT* of a channel.

What you are looking for called app (v.s. api) which execute "IN" a
channel(think about, the b-leg)

http://wiki.freeswitch.org/wiki/Mod_dptools


2010/4/25 Frank Church <vfclists at googlemail.com>:
> I have a simple Asterisk AGI based to translate to Freeswitch and want
> to use mod_event_socket to implement.
>
> The first part is whether the extension making the call is active. In
> the AGI it checks the database whether the extension is supposed to be
> on, and skips to the end of the dial plan if it is not.
>
> The second part is to check the destination, select the gateway to
> call, and dial through with an API command or whatever is best suited.
>
> If I use an outbound event socket which events should I filter for?
>
> >From reading the docs it looks once the call is parked and the event
> shows up, I either hangup the call, or unpark it and bridge via a
> gateway.
>
> The wiki page http://wiki.freeswitch.org/wiki/Event_Socket_Outbound
> gives an example like this.
>
> sendmsg
> call-command: execute
> execute-app-name: bridge
> execute-app-arg: {ignore_early_media=true}sofia/gateway/myGW/177808
> event-lock: true
>
> The api command list produced by api show does not contain a bridge
> command, but has a uuid_bridge command. Is that the command to use?
>
> Another wiiki example uses this: api originate
> sofia/mydomain.com/ext at yourvsp.com 1000 , which appears to be another
> method.
>
> I just need some info about the options available and how to implement them.
>
>
> --
> Frank Church
>
> =======================
> http://devblog.brahmancreations.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
>



-- 
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn



More information about the FreeSWITCH-users mailing list