Conference javascript and hanuphooks giving me headaches
Hi, Im trying to originate calls from a conference and use javascript to watch out for hangup events so I can use the data in the session to flesh out some database info. However it seems that Im having some strangeness. It might just be my code. So I include that. I run FreeSwitch Version 1.0.trunk (11226) Dialplan: <extension name="js_logtodb"> <condition field="destination_number" expression="^confout-(10\d{2})$"> <action application="javascript" data="confout.js"/> </condition> </extension> confout.js: is attached I use API calls to pull one user into a conference. Then I use more api calls to do a conference dial to loopback/confout-1001 This should run the js and then bridge extension 1001 into the same conference. (I have hardcoded the additional extension for testing). I dont know if there is another way to get a conference dial to run a javascript file for information logging, but I am open to enlightenment. Oh im using conference dial because that provides clear audible progress to the other conference memebers as to what is actually happening with the new call. Any help would be greatly apreciated, Thanks in advance. Sias
Try this (update to svn trunk first) <action application="bridge" data="{api_hangup_hook=jsapi::foo.js}sofia/default/user@dest.com"/> then place your call as usual then in foo.js // dumps the event to text/plain env = request.dumpENV("text"); // dumps the event to text/xml xmlenv = request.dumpENV("xml"); // makes an XML obj from the xml text xinfo = new XML("<root>" + xmlenv + "</root>"); // dump the plain text event data consoleLog("info", env + "\n"); // dump the xml event data consoleLog("info", xmlenv + "\n"); // Get a header from the event object consoleLog("warning", "media ip was [" + request.getHeader("local_media_ip") + "]\n"); // Get the same header from the xml object consoleLog("warning", "media ip was [" + xinfo.event.headers.local_media_ip + "]\n"); On Thu, Jan 22, 2009 at 2:24 PM, Sias Mey <sias@cpdata.co.za> wrote:
Hi,
Im trying to originate calls from a conference and use javascript to watch out for hangup events so I can use the data in the session to flesh out some database info. However it seems that Im having some strangeness. It might just be my code. So I include that.
I run FreeSwitch Version 1.0.trunk (11226)
Dialplan: <extension name="js_logtodb"> <condition field="destination_number" expression="^confout-(10\d{2})$"> <action application="javascript" data="confout.js"/> </condition> </extension>
confout.js: is attached
I use API calls to pull one user into a conference. Then I use more api calls to do a conference dial to loopback/confout-1001
This should run the js and then bridge extension 1001 into the same conference. (I have hardcoded the additional extension for testing). I dont know if there is another way to get a conference dial to run a javascript file for information logging, but I am open to enlightenment.
Oh im using conference dial because that provides clear audible progress to the other conference memebers as to what is actually happening with the new call.
Any help would be greatly apreciated, Thanks in advance. Sias
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Hmm ok... updated to the latest SVN and tried your suggsestion however all I can see happening in the console is 2009-01-23 11:35:44 [ERR] hangup.js:2 mod_spidermonkey() ReferenceError: request is not defined (obviously I renamed foo.js to hangup here) thanks again for the help. On Thu, Jan 22, 2009 at 04:25:54PM -0600, Anthony Minessale wrote:
Try this (update to svn trunk first) <action application="bridge" data="{api_hangup_hook=jsapi::foo.js}sofia/default/[1]user@dest.com"/> then place your call as usual then in foo.js // dumps the event to text/plain env = request.dumpENV("text"); // dumps the event to text/xml xmlenv = request.dumpENV("xml"); // makes an XML obj from the xml text xinfo = new XML("<root>" + xmlenv + "</root>"); // dump the plain text event data consoleLog("info", env + "\n"); // dump the xml event data consoleLog("info", xmlenv + "\n"); // Get a header from the event object consoleLog("warning", "media ip was [" + request.getHeader("local_media_ip") + "]\n"); // Get the same header from the xml object consoleLog("warning", "media ip was [" + xinfo.event.headers.local_media_ip + "]\n");
On Thu, Jan 22, 2009 at 2:24 PM, Sias Mey <[2]sias@cpdata.co.za> wrote:
Hi, Im trying to originate calls from a conference and use javascript to watch out for hangup events so I can use the data in the session to flesh out some database info. However it seems that Im having some strangeness. It might just be my code. So I include that. I run FreeSwitch Version 1.0.trunk (11226) Dialplan: <extension name="js_logtodb"> <condition field="destination_number" expression="^confout-(10\d{2})$"> <action application="javascript" data="confout.js"/> </condition> </extension> confout.js: is attached I use API calls to pull one user into a conference. Then I use more api calls to do a conference dial to loopback/confout-1001 This should run the js and then bridge extension 1001 into the same conference. (I have hardcoded the additional extension for testing). I dont know if there is another way to get a conference dial to run a javascript file for information logging, but I am open to enlightenment. Oh im using conference dial because that provides clear audible progress to the other conference memebers as to what is actually happening with the new call. Any help would be greatly apreciated, Thanks in advance. Sias _______________________________________________ Freeswitch-users mailing list [3]Freeswitch-users@lists.freeswitch.org [4]http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:[5]http://lists.freeswitch.org/mailman/options/freeswitc h-users [6]http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH [7]http://www.freeswitch.org/ ClueCon [8]http://www.cluecon.com/ AIM: anthm [9]MSN:anthony_minessale@hotmail.com GTALK/JABBER/[10]PAYPAL:anthony.minessale@gmail.com IRC: [11]irc.freenode.net #freeswitch FreeSWITCH Developer Conference [12]sip:888@conference.freeswitch.org [13]iax:guest@conference.freeswitch.org/888 [14]googletalk:conf+888@conference.freeswitch.org pstn:213-799-1400
References
1. mailto:user@dest.com 2. mailto:sias@cpdata.co.za 3. mailto:Freeswitch-users@lists.freeswitch.org 4. http://lists.freeswitch.org/mailman/listinfo/freeswitch-users 5. http://lists.freeswitch.org/mailman/options/freeswitch-users 6. http://www.freeswitch.org/ 7. http://www.freeswitch.org/ 8. http://www.cluecon.com/ 9. mailto:MSN%3Aanthony_minessale@hotmail.com 10. mailto:PAYPAL%3Aanthony.minessale@gmail.com 11. http://irc.freenode.net/ 12. mailto:sip%3A888@conference.freeswitch.org 13. http://iax:guest@conference.freeswitch.org/888 14. mailto:googletalk%3Aconf%2B888@conference.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Wait sory ignore my previous reply... I only just realized you were actually routing through the javascript xml_rpc module. and I didnt actually have the api.js file in my scripts dir. let me see what this does before you worry about it any more ;-) On Thu, Jan 22, 2009 at 04:25:54PM -0600, Anthony Minessale wrote:
Try this (update to svn trunk first) <action application="bridge" data="{api_hangup_hook=jsapi::foo.js}sofia/default/[1]user@dest.com"/> then place your call as usual then in foo.js // dumps the event to text/plain env = request.dumpENV("text"); // dumps the event to text/xml xmlenv = request.dumpENV("xml"); // makes an XML obj from the xml text xinfo = new XML("<root>" + xmlenv + "</root>"); // dump the plain text event data consoleLog("info", env + "\n"); // dump the xml event data consoleLog("info", xmlenv + "\n"); // Get a header from the event object consoleLog("warning", "media ip was [" + request.getHeader("local_media_ip") + "]\n"); // Get the same header from the xml object consoleLog("warning", "media ip was [" + xinfo.event.headers.local_media_ip + "]\n");
On Thu, Jan 22, 2009 at 2:24 PM, Sias Mey <[2]sias@cpdata.co.za> wrote:
Hi, Im trying to originate calls from a conference and use javascript to watch out for hangup events so I can use the data in the session to flesh out some database info. However it seems that Im having some strangeness. It might just be my code. So I include that. I run FreeSwitch Version 1.0.trunk (11226) Dialplan: <extension name="js_logtodb"> <condition field="destination_number" expression="^confout-(10\d{2})$"> <action application="javascript" data="confout.js"/> </condition> </extension> confout.js: is attached I use API calls to pull one user into a conference. Then I use more api calls to do a conference dial to loopback/confout-1001 This should run the js and then bridge extension 1001 into the same conference. (I have hardcoded the additional extension for testing). I dont know if there is another way to get a conference dial to run a javascript file for information logging, but I am open to enlightenment. Oh im using conference dial because that provides clear audible progress to the other conference memebers as to what is actually happening with the new call. Any help would be greatly apreciated, Thanks in advance. Sias _______________________________________________ Freeswitch-users mailing list [3]Freeswitch-users@lists.freeswitch.org [4]http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:[5]http://lists.freeswitch.org/mailman/options/freeswitc h-users [6]http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH [7]http://www.freeswitch.org/ ClueCon [8]http://www.cluecon.com/ AIM: anthm [9]MSN:anthony_minessale@hotmail.com GTALK/JABBER/[10]PAYPAL:anthony.minessale@gmail.com IRC: [11]irc.freenode.net #freeswitch FreeSWITCH Developer Conference [12]sip:888@conference.freeswitch.org [13]iax:guest@conference.freeswitch.org/888 [14]googletalk:conf+888@conference.freeswitch.org pstn:213-799-1400
References
1. mailto:user@dest.com 2. mailto:sias@cpdata.co.za 3. mailto:Freeswitch-users@lists.freeswitch.org 4. http://lists.freeswitch.org/mailman/listinfo/freeswitch-users 5. http://lists.freeswitch.org/mailman/options/freeswitch-users 6. http://www.freeswitch.org/ 7. http://www.freeswitch.org/ 8. http://www.cluecon.com/ 9. mailto:MSN%3Aanthony_minessale@hotmail.com 10. mailto:PAYPAL%3Aanthony.minessale@gmail.com 11. http://irc.freenode.net/ 12. mailto:sip%3A888@conference.freeswitch.org 13. http://iax:guest@conference.freeswitch.org/888 14. mailto:googletalk%3Aconf%2B888@conference.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Woot greater win. Thanks you so much for that pointer. although i did have to change the dialplan line to <action application="bridge" data="{api_hangup_hook=jsapi foo.js}sofia/default/[1]user@dest.com"/> (space between jsapi and foo.js instead of ::) and im not sure if the api.js file actually made any difference.. but it did point me in the right direction. On Fri, Jan 23, 2009 at 11:50:36AM +0200, Sias Mey wrote:
Wait sory ignore my previous reply...
I only just realized you were actually routing through the javascript xml_rpc module. and I didnt actually have the api.js file in my scripts dir.
let me see what this does before you worry about it any more ;-) On Thu, Jan 22, 2009 at 04:25:54PM -0600, Anthony Minessale wrote:
Try this (update to svn trunk first) <action application="bridge" data="{api_hangup_hook=jsapi::foo.js}sofia/default/[1]user@dest.com"/> then place your call as usual then in foo.js // dumps the event to text/plain env = request.dumpENV("text"); // dumps the event to text/xml xmlenv = request.dumpENV("xml"); // makes an XML obj from the xml text xinfo = new XML("<root>" + xmlenv + "</root>"); // dump the plain text event data consoleLog("info", env + "\n"); // dump the xml event data consoleLog("info", xmlenv + "\n"); // Get a header from the event object consoleLog("warning", "media ip was [" + request.getHeader("local_media_ip") + "]\n"); // Get the same header from the xml object consoleLog("warning", "media ip was [" + xinfo.event.headers.local_media_ip + "]\n");
On Thu, Jan 22, 2009 at 2:24 PM, Sias Mey <[2]sias@cpdata.co.za> wrote:
Hi, Im trying to originate calls from a conference and use javascript to watch out for hangup events so I can use the data in the session to flesh out some database info. However it seems that Im having some strangeness. It might just be my code. So I include that. I run FreeSwitch Version 1.0.trunk (11226) Dialplan: <extension name="js_logtodb"> <condition field="destination_number" expression="^confout-(10\d{2})$"> <action application="javascript" data="confout.js"/> </condition> </extension> confout.js: is attached I use API calls to pull one user into a conference. Then I use more api calls to do a conference dial to loopback/confout-1001 This should run the js and then bridge extension 1001 into the same conference. (I have hardcoded the additional extension for testing). I dont know if there is another way to get a conference dial to run a javascript file for information logging, but I am open to enlightenment. Oh im using conference dial because that provides clear audible progress to the other conference memebers as to what is actually happening with the new call. Any help would be greatly apreciated, Thanks in advance. Sias _______________________________________________ Freeswitch-users mailing list [3]Freeswitch-users@lists.freeswitch.org [4]http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:[5]http://lists.freeswitch.org/mailman/options/freeswitc h-users [6]http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH [7]http://www.freeswitch.org/ ClueCon [8]http://www.cluecon.com/ AIM: anthm [9]MSN:anthony_minessale@hotmail.com GTALK/JABBER/[10]PAYPAL:anthony.minessale@gmail.com IRC: [11]irc.freenode.net #freeswitch FreeSWITCH Developer Conference [12]sip:888@conference.freeswitch.org [13]iax:guest@conference.freeswitch.org/888 [14]googletalk:conf+888@conference.freeswitch.org pstn:213-799-1400
References
1. mailto:user@dest.com 2. mailto:sias@cpdata.co.za 3. mailto:Freeswitch-users@lists.freeswitch.org 4. http://lists.freeswitch.org/mailman/listinfo/freeswitch-users 5. http://lists.freeswitch.org/mailman/options/freeswitch-users 6. http://www.freeswitch.org/ 7. http://www.freeswitch.org/ 8. http://www.cluecon.com/ 9. mailto:MSN%3Aanthony_minessale@hotmail.com 10. mailto:PAYPAL%3Aanthony.minessale@gmail.com 11. http://irc.freenode.net/ 12. mailto:sip%3A888@conference.freeswitch.org 13. http://iax:guest@conference.freeswitch.org/888 14. mailto:googletalk%3Aconf%2B888@conference.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
That was the change i checked into trunk to allow app::arg as well as app<space>arg 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. On Fri, Jan 23, 2009 at 4:03 AM, Sias Mey <sias@cpdata.co.za> wrote:
Woot greater win.
Thanks you so much for that pointer.
although i did have to change the dialplan line to <action application="bridge" data="{api_hangup_hook=jsapi foo.js}sofia/default/[1]user@dest.com"/> (space between jsapi and foo.js instead of ::)
and im not sure if the api.js file actually made any difference.. but it did point me in the right direction.
On Fri, Jan 23, 2009 at 11:50:36AM +0200, Sias Mey wrote:
Wait sory ignore my previous reply...
I only just realized you were actually routing through the javascript xml_rpc module. and I didnt actually have the api.js file in my scripts dir.
let me see what this does before you worry about it any more ;-) On Thu, Jan 22, 2009 at 04:25:54PM -0600, Anthony Minessale wrote:
Try this (update to svn trunk first) <action application="bridge" data="{api_hangup_hook=jsapi::foo.js}sofia/default/[1]user@dest.com "/> then place your call as usual then in foo.js // dumps the event to text/plain env = request.dumpENV("text"); // dumps the event to text/xml xmlenv = request.dumpENV("xml"); // makes an XML obj from the xml text xinfo = new XML("<root>" + xmlenv + "</root>"); // dump the plain text event data consoleLog("info", env + "\n"); // dump the xml event data consoleLog("info", xmlenv + "\n"); // Get a header from the event object consoleLog("warning", "media ip was [" + request.getHeader("local_media_ip") + "]\n"); // Get the same header from the xml object consoleLog("warning", "media ip was [" + xinfo.event.headers.local_media_ip + "]\n");
On Thu, Jan 22, 2009 at 2:24 PM, Sias Mey <[2]sias@cpdata.co.za> wrote:
Hi, Im trying to originate calls from a conference and use javascript to watch out for hangup events so I can use the data in the session to flesh out some database info. However it seems that Im having some strangeness. It might just be my code. So I include that. I run FreeSwitch Version 1.0.trunk (11226) Dialplan: <extension name="js_logtodb"> <condition field="destination_number" expression="^confout-(10\d{2})$"> <action application="javascript" data="confout.js"/> </condition> </extension> confout.js: is attached I use API calls to pull one user into a conference. Then I use more api calls to do a conference dial to loopback/confout-1001 This should run the js and then bridge extension 1001 into the same conference. (I have hardcoded the additional extension for testing). I dont know if there is another way to get a conference dial to run a javascript file for information logging, but I am open to enlightenment. Oh im using conference dial because that provides clear audible progress to the other conference memebers as to what is actually happening with the new call. Any help would be greatly apreciated, Thanks in advance. Sias _______________________________________________ Freeswitch-users mailing list [3]Freeswitch-users@lists.freeswitch.org [4]http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:[5] http://lists.freeswitch.org/mailman/options/freeswitc h-users [6]http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH [7]http://www.freeswitch.org/ ClueCon [8]http://www.cluecon.com/ AIM: anthm [9]MSN:anthony_minessale@hotmail.com<MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/[10]PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: [11]irc.freenode.net #freeswitch FreeSWITCH Developer Conference [12]sip:888@conference.freeswitch.org<sip%3A888@conference.freeswitch.org> [13]iax:guest@conference.freeswitch.org/888 [14]googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
References
1. mailto:user@dest.com 2. mailto:sias@cpdata.co.za 3. mailto:Freeswitch-users@lists.freeswitch.org 4. http://lists.freeswitch.org/mailman/listinfo/freeswitch-users 5. http://lists.freeswitch.org/mailman/options/freeswitch-users 6. http://www.freeswitch.org/ 7. http://www.freeswitch.org/ 8. http://www.cluecon.com/ 9. mailto:MSN%3Aanthony_minessale@hotmail.com<MSN%253Aanthony_minessale@hotmail.com> 10. mailto:PAYPAL%3Aanthony.minessale@gmail.com<PAYPAL%253Aanthony.minessale@gmail.com> 11. http://irc.freenode.net/ 12. mailto:sip%3A888@conference.freeswitch.org<sip%253A888@conference.freeswitch.org> 13. http://iax:guest@conference.freeswitch.org/888 14. mailto:googletalk%3Aconf%2B888@conference.freeswitch.org<googletalk%253Aconf%252B888@conference.freeswitch.org>
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Hmmm no it didnt... but at least now I know what to fix when it doesent work whe I update again. Thank you very much for your help. Sias On Fri, Jan 23, 2009 at 08:13:16AM -0600, Anthony Minessale wrote:
That was the change i checked into trunk to allow app::arg as well as app<space>arg 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.
On Fri, Jan 23, 2009 at 4:03 AM, Sias Mey <[1]sias@cpdata.co.za> wrote:
Woot greater win. Thanks you so much for that pointer. although i did have to change the dialplan line to
<action application="bridge" data="{api_hangup_hook=jsapi foo.js}sofia/default/[1][2]user@dest.com"/>
(space between jsapi and foo.js instead of ::) and im not sure if the api.js file actually made any difference.. but it did point me in the right direction.
On Fri, Jan 23, 2009 at 11:50:36AM +0200, Sias Mey wrote:
Wait sory ignore my previous reply...
I only just realized you were actually routing through the javascript xml_rpc module. and I didnt actually have the api.js file in my scripts dir.
let me see what this does before you worry about it any more ;-) On Thu, Jan 22, 2009 at 04:25:54PM -0600, Anthony Minessale wrote:
Try this (update to svn trunk first) <action application="bridge"
data="{api_hangup_hook=jsapi::foo.js}sofia/default/[1][3]user@dest.com" />
then place your call as usual then in foo.js // dumps the event to text/plain env = request.dumpENV("text"); // dumps the event to text/xml xmlenv = request.dumpENV("xml"); // makes an XML obj from the xml text xinfo = new XML("<root>" + xmlenv + "</root>"); // dump the plain text event data consoleLog("info", env + "\n"); // dump the xml event data consoleLog("info", xmlenv + "\n"); // Get a header from the event object consoleLog("warning", "media ip was [" + request.getHeader("local_media_ip") + "]\n"); // Get the same header from the xml object consoleLog("warning", "media ip was [" + xinfo.event.headers.local_media_ip + "]\n");
On Thu, Jan 22, 2009 at 2:24 PM, Sias Mey <[2][4]sias@cpdata.co.za> wrote:
Hi, Im trying to originate calls from a conference and use javascript to watch out for hangup events so I can use the data in the session to flesh out some database info. However it seems that Im having some strangeness. It might just be my code. So I include that. I run FreeSwitch Version 1.0.trunk (11226) Dialplan: <extension name="js_logtodb"> <condition field="destination_number" expression="^confout-(10\d{2})$"> <action application="javascript" data="confout.js"/> </condition> </extension> confout.js: is attached I use API calls to pull one user into a conference. Then I use more api calls to do a conference dial to loopback/confout-1001 This should run the js and then bridge extension 1001 into the same conference. (I have hardcoded the additional extension for testing). I dont know if there is another way to get a conference dial to run a javascript file for information logging, but I am open to enlightenment. Oh im using conference dial because that provides clear audible progress to the other conference memebers as to what is actually happening with the new call. Any help would be greatly apreciated, Thanks in advance. Sias _______________________________________________ Freeswitch-users mailing list [3][5]Freeswitch-users@lists.freeswitch.org
[4][6]http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:[5][7]http://lists.freeswitch.org/mailman/options/freeswitc
h-users [6][8]http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH [7][9]http://www.freeswitch.org/ ClueCon [8][10]http://www.cluecon.com/ AIM: anthm [9][11]MSN:anthony_minessale@hotmail.com GTALK/JABBER/[10][12]PAYPAL:anthony.minessale@gmail.com IRC: [11][13]irc.freenode.net #freeswitch FreeSWITCH Developer Conference [12][14]sip:888@conference.freeswitch.org [13][15]iax:guest@conference.freeswitch.org/888 [14][16]googletalk:conf+888@conference.freeswitch.org pstn:213-799-1400
References
1. mailto:[17]user@dest.com 2. mailto:[18]sias@cpdata.co.za 3. mailto:[19]Freeswitch-users@lists.freeswitch.org 4.
[20]http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
5. [21]http://lists.freeswitch.org/mailman/options/freeswitch-users 6. [22]http://www.freeswitch.org/ 7. [23]http://www.freeswitch.org/ 8. [24]http://www.cluecon.com/ 9. mailto:[25]MSN%3Aanthony_minessale@hotmail.com 10. mailto:[26]PAYPAL%3Aanthony.minessale@gmail.com 11. [27]http://irc.freenode.net/ 12. mailto:[28]sip%3A888@conference.freeswitch.org 13. [29]http://iax:guest@conference.freeswitch.org/888 14. mailto:[30]googletalk%3Aconf%2B888@conference.freeswitch.org
_______________________________________________ Freeswitch-users mailing list [31]Freeswitch-users@lists.freeswitch.org [32]http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:[33]http://lists.freeswitch.org/mailman/options/freeswitch- users
_______________________________________________ Freeswitch-users mailing list [35]Freeswitch-users@lists.freeswitch.org [36]http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:[37]http://lists.freeswitch.org/mailman/options/freeswitch- users
Freeswitch-users mailing list [39]Freeswitch-users@lists.freeswitch.org [40]http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:[41]http://lists.freeswitch.org/mailman/options/freeswitch- users [42]http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH [43]http://www.freeswitch.org/ ClueCon [44]http://www.cluecon.com/ AIM: anthm [45]MSN:anthony_minessale@hotmail.com GTALK/JABBER/[46]PAYPAL:anthony.minessale@gmail.com IRC: [47]irc.freenode.net #freeswitch FreeSWITCH Developer Conference [48]sip:888@conference.freeswitch.org [49]iax:guest@conference.freeswitch.org/888 [50]googletalk:conf+888@conference.freeswitch.org pstn:213-799-1400
References
1. mailto:sias@cpdata.co.za 2. mailto:user@dest.com 3. mailto:user@dest.com 4. mailto:sias@cpdata.co.za 5. mailto:Freeswitch-users@lists.freeswitch.org 6. http://lists.freeswitch.org/mailman/listinfo/freeswitch-users 7. http://lists.freeswitch.org/mailman/options/freeswitc 8. http://www.freeswitch.org/ 9. http://www.freeswitch.org/ 10. http://www.cluecon.com/ 11. mailto:MSN%3Aanthony_minessale@hotmail.com 12. mailto:PAYPAL%3Aanthony.minessale@gmail.com 13. http://irc.freenode.net/ 14. mailto:sip%3A888@conference.freeswitch.org 15. http://iax:guest@conference.freeswitch.org/888 16. mailto:googletalk%3Aconf%2B888@conference.freeswitch.org 17. mailto:user@dest.com 18. mailto:sias@cpdata.co.za 19. mailto:Freeswitch-users@lists.freeswitch.org 20. http://lists.freeswitch.org/mailman/listinfo/freeswitch-users 21. http://lists.freeswitch.org/mailman/options/freeswitch-users 22. http://www.freeswitch.org/ 23. http://www.freeswitch.org/ 24. http://www.cluecon.com/ 25. mailto:MSN%253Aanthony_minessale@hotmail.com 26. mailto:PAYPAL%253Aanthony.minessale@gmail.com 27. http://irc.freenode.net/ 28. mailto:sip%253A888@conference.freeswitch.org 29. http://iax:guest@conference.freeswitch.org/888 30. mailto:googletalk%253Aconf%252B888@conference.freeswitch.org 31. mailto:Freeswitch-users@lists.freeswitch.org 32. http://lists.freeswitch.org/mailman/listinfo/freeswitch-users 33. http://lists.freeswitch.org/mailman/options/freeswitch-users 34. http://www.freeswitch.org/ 35. mailto:Freeswitch-users@lists.freeswitch.org 36. http://lists.freeswitch.org/mailman/listinfo/freeswitch-users 37. http://lists.freeswitch.org/mailman/options/freeswitch-users 38. http://www.freeswitch.org/ 39. mailto:Freeswitch-users@lists.freeswitch.org 40. http://lists.freeswitch.org/mailman/listinfo/freeswitch-users 41. http://lists.freeswitch.org/mailman/options/freeswitch-users 42. http://www.freeswitch.org/ 43. http://www.freeswitch.org/ 44. http://www.cluecon.com/ 45. mailto:MSN%3Aanthony_minessale@hotmail.com 46. mailto:PAYPAL%3Aanthony.minessale@gmail.com 47. http://irc.freenode.net/ 48. mailto:sip%3A888@conference.freeswitch.org 49. http://iax:guest@conference.freeswitch.org/888 50. mailto:googletalk%3Aconf%2B888@conference.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On a similar note is it possible to use api commands from the dialplan. I would like a execute_on_answer to run a script in the same fasion, but I cant seem to get it to execute as a api command.
What have you tried? -MC On Mon, Jan 26, 2009 at 2:25 AM, Sias Mey <sias@cpdata.co.za> wrote:
On a similar note is it possible to use api commands from the dialplan.
I would like a execute_on_answer to run a script in the same fasion, but I cant seem to get it to execute as a api command.
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Anthony Minessale
-
Michael Collins
-
Sias Mey