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