That was the change i checked into trunk to allow app::arg as well as app<space>arg<br>that doesn't work for you? When i said update it was down to the minute i sent the email that the change was added.<br><br><br>
<br><div class="gmail_quote">On Fri, Jan 23, 2009 at 4:03 AM, Sias Mey <span dir="ltr"><<a href="mailto:sias@cpdata.co.za">sias@cpdata.co.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Woot greater win.<br>
<br>
Thanks you so much for that pointer.<br>
<br>
although i did have to change the dialplan line to<br>
<div class="Ih2E3d"><action application="bridge"<br>
data="{api_hangup_hook=jsapi foo.js}sofia/default/[1]<a href="mailto:user@dest.com">user@dest.com</a>"/><br>
</div>(space between jsapi and foo.js instead of ::)<br>
<br>
and im not sure if the api.js file actually made any difference.. but it<br>
did point me in the right direction.<br>
<div><div></div><div class="Wj3C7c"><br>
On Fri, Jan 23, 2009 at 11:50:36AM +0200, Sias Mey wrote:<br>
> Wait sory ignore my previous reply...<br>
><br>
> I only just realized you were actually routing through the javascript<br>
> xml_rpc module. and I didnt actually have the api.js file in my scripts<br>
> dir.<br>
><br>
> let me see what this does before you worry about it any more ;-)<br>
> On Thu, Jan 22, 2009 at 04:25:54PM -0600, Anthony Minessale wrote:<br>
> > Try this (update to svn trunk first)<br>
> > <action application="bridge"<br>
> > data="{api_hangup_hook=jsapi::foo.js}sofia/default/[1]<a href="mailto:user@dest.com">user@dest.com</a>"/><br>
> > then place your call as usual<br>
> > then in foo.js<br>
> > // dumps the event to text/plain<br>
> > env = request.dumpENV("text");<br>
> > // dumps the event to text/xml<br>
> > xmlenv = request.dumpENV("xml");<br>
> > // makes an XML obj from the xml text<br>
> > xinfo = new XML("<root>" + xmlenv + "</root>");<br>
> > // dump the plain text event data<br>
> > consoleLog("info", env + "\n");<br>
> > // dump the xml event data<br>
> > consoleLog("info", xmlenv + "\n");<br>
> > // Get a header from the event object<br>
> > consoleLog("warning", "media ip was [" +<br>
> > request.getHeader("local_media_ip") + "]\n");<br>
> > // Get the same header from the xml object<br>
> > consoleLog("warning", "media ip was [" +<br>
> > xinfo.event.headers.local_media_ip + "]\n");<br>
> ><br>
> > On Thu, Jan 22, 2009 at 2:24 PM, Sias Mey <[2]<a href="mailto:sias@cpdata.co.za">sias@cpdata.co.za</a>> wrote:<br>
> ><br>
> > Hi,<br>
> > Im trying to originate calls from a conference and use javascript to<br>
> > watch out for hangup events so I can use the data in the session to<br>
> > flesh out some database info. However it seems that Im having some<br>
> > strangeness. It might just be my code. So I include that.<br>
> > I run FreeSwitch Version 1.0.trunk (11226)<br>
> > Dialplan:<br>
> > <extension name="js_logtodb"><br>
> > <condition field="destination_number"<br>
> > expression="^confout-(10\d{2})$"><br>
> > <action application="javascript" data="confout.js"/><br>
> > </condition><br>
> > </extension><br>
> > confout.js:<br>
> > is attached<br>
> > I use API calls to pull one user into a conference. Then I use more<br>
> > api calls to do a conference dial to loopback/confout-1001<br>
> > This should run the js and then bridge extension 1001 into the same<br>
> > conference.<br>
> > (I have hardcoded the additional extension for testing). I dont know<br>
> > if there is another way to get a conference dial to run a javascript<br>
> > file for information logging, but I am open to enlightenment.<br>
> > Oh im using conference dial because that provides clear audible<br>
> > progress to the other conference memebers as to what is actually<br>
> > happening with the new call.<br>
> > Any help would be greatly apreciated, Thanks in advance.<br>
> > Sias<br>
> > _______________________________________________<br>
> > Freeswitch-users mailing list<br>
> > [3]<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> > [4]<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > UNSUBSCRIBE:[5]<a href="http://lists.freeswitch.org/mailman/options/freeswitc" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitc</a><br>
> > h-users<br>
> > [6]<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> ><br>
> > --<br>
> > Anthony Minessale II<br>
> > FreeSWITCH [7]<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> > ClueCon [8]<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
> > AIM: anthm<br>
> > [9]<a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
> > GTALK/JABBER/[10]<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
> > IRC: [11]<a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
> > FreeSWITCH Developer Conference<br>
> > [12]<a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
> > [13]<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
> > [14]<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
> > pstn:213-799-1400<br>
> ><br>
> > References<br>
> ><br>
> > 1. mailto:<a href="mailto:user@dest.com">user@dest.com</a><br>
> > 2. mailto:<a href="mailto:sias@cpdata.co.za">sias@cpdata.co.za</a><br>
> > 3. mailto:<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> > 4. <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > 5. <a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> > 6. <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> > 7. <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> > 8. <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
> > 9. mailto:<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a><br>
> > 10. mailto:<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a><br>
> > 11. <a href="http://irc.freenode.net/" target="_blank">http://irc.freenode.net/</a><br>
> > 12. mailto:<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a><br>
> > 13. <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">http://iax:guest@conference.freeswitch.org/888</a><br>
> > 14. mailto:<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a><br>
><br>
> > _______________________________________________<br>
> > Freeswitch-users mailing list<br>
> > <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>