Hi, I am playing with freeswitch scripting with lua. I want call to number, ex 1000, a script lua will process the call ( as an IVR), then transfer the call to an extension (or transfer the call to a queue, to get a free agent). Questions: How I add a pair data (key/value. ex ID/1234) to the call in the lua script? How can check the data attached is avaliable to the end extension? What you use to make screen pop call data when the call ring in the extension? Thanks
I think ESL is the way to go (http://wiki.freeswitch.org/wiki/Event_Socket_Library). You can add data to the call by setting channel variables, these variables can then be read out in the ESL connection. ESL uses a simple TCP socket, so it can be used on the client's computers. /Peter -----Ursprungligt meddelande----- Från: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] För Saugort Dario Garcia Tovar Skickat: den 9 september 2011 15:24 Till: FreeSWITCH Users Help Ämne: [Freeswitch-users] screen pop with freeswitch? Hi, I am playing with freeswitch scripting with lua. I want call to number, ex 1000, a script lua will process the call ( as an IVR), then transfer the call to an extension (or transfer the call to a queue, to get a free agent). Questions: How I add a pair data (key/value. ex ID/1234) to the call in the lua script? How can check the data attached is avaliable to the end extension? What you use to make screen pop call data when the call ring in the extension? Thanks 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 !DSPAM:4e6a143432761570634090!
Hi, Some leads in the text, or as Peter told, you can also use ESL that maybe 'll scale better... Regards, Gled. Le 09/09/2011 15:23, Saugort Dario Garcia Tovar a écrit :
Hi,
I am playing with freeswitch scripting with lua. I want call to number, ex 1000, a script lua will process the call ( as an IVR), then transfer the call to an extension (or transfer the call to a queue, to get a free agent). Questions: How I add a pair data (key/value. ex ID/1234) to the call in the lua script? Check channel vars ( set / get / export ). How can check the data attached is avaliable to the end extension? Read vars ( getVar ). What you use to make screen pop call data when the call ring in the extension?
use the execute_on_answer or execute_on_ring variables, they allow you to fire a script when that condition is met.
Thanks
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
-- ********************************** * Tristan Mahé * * TELEMAQUE * * 80 route des Lucioles * * 06560 Valbonne * * Tel: +33 4.92.90.99.85 * * Mob: +33 6.24.16.43.01 * **********************************
participants (3)
-
Peter Olsson
-
Saugort Dario Garcia Tovar
-
Tristan Mahé