<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:12pt">thanks =D<br><br><div> </div><div>Anthony Minessale II<br><br><span>FreeSWITCH <a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a></span><br><span>ClueCon <a target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com/</a></span><br><br>AIM: anthm<br>MSN:anthony_minessale@hotmail.com<br>JABBER:anthony.minessale@gmail.com<br>IRC: irc.freenode.net #freeswitch</div><div><br>FreeSWITCH Developer Conference<br>sip:888@conference.freeswitch.org<br>iax:guest@conference.freeswitch.org/888<br>googletalk:conf+888@conference.freeswitch.org<br>pstn:213-799-1400</div><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Jason Garland
<jgarland@gmail.com><br>To: freeswitch-users@lists.freeswitch.org<br>Sent: Thursday, May 24, 2007 12:05:26 PM<br>Subject: Re: [Freeswitch-users] Does FS handle remote NATed phones?<br><br><div><a target="_blank" href="http://wiki.freeswitch.org/wiki/Talk:Event_Socket">http://wiki.freeswitch.org/wiki/Talk:Event_Socket</a><br><br><a target="_blank" href="http://wiki.freeswitch.org/wiki/Event_Socket">http://wiki.freeswitch.org/wiki/Event_Socket</a><br><br><br><br>On 5/24/07, Anthony Minessale <anthmct@yahoo.com> wrote:<br>><br>> We do have mod_event_socket's "socket" app which is similar to the network<br>> based fast-agi (FAGI). This application makes an outbound tcp connection to<br>> the specified ip:port and the other end can control the call in similar ways<br>> to an agi only the dialect is much different and it supports async<br>> operations e.g. telling the call to play foo.wav and getting an immediate<br>> return to listen
for dtmf as the file plays rather than block till the file<br>> is over.<br>><br>> there is an example perl script in tree:<br>><br>> "scripts/socket/sock.pl"<br>><br>> The data syntax from the dialplan is<br>> <ip>:<port> [<keywords>]<br>><br>> keywords:<br>><br>> async:<br>><br>> The "async" keyword indicates that all commands will return instantly making<br>> it possible to monitor the socket for events etc while the<br>> stack of commands are executing.<br>><br>> If the async keyword is absent then all calls will block until the<br>> command has finished.<br>><br>> full:<br>><br>> The "full" keyword indicates that the other end will have the full command<br>> set for event_socket this is the same command set an inbound connection to<br>> event_socket has so you can execute api commands, get global events etc.<br>><br>> If the "full" keyword is absent the command set and
events are limited<br>> to that paticular call<br>><br>> Here are examples of how to use it in the dialplan.<br>><br>> <action application="socket" data="127.0.0.1:8084"/><br>> <action application="socket" data="127.0.0.1:8084 async"/><br>> <action application="socket" data="127.0.0.1:8084 full"/><br>> <action application="socket" data="127.0.0.1:8084 async full"/><br>><br>><br>> I think if wasim's angel want's to implement it a good idea<br>> is to write it as a separate application and use this interface<br>> to control the call then let the forked processes in the remote<br>> application provide the AGI emulation.<br>><br>> We have someone working on a C library to use as an event socket library<br>> also.<br>> but in the meantime there is also a crude C example with no client library<br>> but just inline commands in "scripts/socket/socket2me" this small C
program<br>> demonstrates how you can use the interface to not only control the call but<br>> to also request a 2 way media stream and process the data. This application<br>> uses spandsp to implement a fax send/recv similar to asterisk's rxfax txfax<br>> only over the loopback interface.<br>><br>><br>><br>> /me hopes somone makes a wiki page out of this info =D<br>><br>><br>><br>><br>><br>> Anthony Minessale II<br>><br>> FreeSWITCH <a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>> ClueCon <a target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>><br>> AIM: anthm<br>> MSN:anthony_minessale@hotmail.com<br>> JABBER:anthony.minessale@gmail.com<br>> IRC: irc.freenode.net #freeswitch<br>><br>> FreeSWITCH Developer Conference<br>> sip:888@conference.freeswitch.org<br>> iax:guest@conference.freeswitch.org/888<br>>
googletalk:conf+888@conference.freeswitch.org<br>> pstn:213-799-1400<br>><br>><br>> ----- Original Message ----<br>> From: Wasim Baig <wasim@convergence.pk><br>> To: freeswitch-users@lists.freeswitch.org<br>> Sent: Thursday, May 24, 2007 7:13:24 AM<br>> Subject: Re: [Freeswitch-users] Does FS handle remote NATed phones?<br>><br>> On 5/24/07, Fred <codecomplete@free.fr> wrote:<br>><br>> > Hopefully, the AGI interface works the same, so that existing scripts will<br>> > still work in FS.<br>><br>> nope, not as yet, but i'm convincing an angel to write up a mod_agi that<br>> would allow using most if not all of the AGI functions in freeswitch<br>> (atleast SetVar and GetVar, if not Dial)<br>><br>> imho thats one of the main bottlenecks for people who have existing<br>> asterisk deployments on AGI from switching to FS, lets see if we can get<br>> some good news on this
shortly<br>><br>> --<br>> wasim h. baig | principal consultant | convergence pk | +92 300 8508070<br>> _______________________________________________<br>> Freeswitch-users mailing list<br>> Freeswitch-users@lists.freeswitch.org<br>> <a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>> UNSUBSCRIBE:<a target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>> <a target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>><br>><br>> ________________________________<br>> Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.<br>> _______________________________________________<br>> Freeswitch-users mailing list<br>> Freeswitch-users@lists.freeswitch.org<br>> <a
target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>> UNSUBSCRIBE:<a target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>> <a target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>><br>><br><br>_______________________________________________<br>Freeswitch-users mailing list<br>Freeswitch-users@lists.freeswitch.org<br><a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a target="_blank"
href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></div><br></div></div><br>
<hr size=1>Expecting? Get great news right away with <a href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html">email Auto-Check.</a><br>Try the <a href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html">Yahoo! Mail Beta.</a></body></html>