Hello, this should be simple in theory therefore I'm probably missing the right way to do it. I want to play with sessions in lua, bridge them, park them, etc... example1: Consider this simple lua script in which i create two sessions: api = freeswitch.API(); api:execute("originate", "sofia/internal/1001%192.168.1.1 &park"); api:execute("originate", "sofia/internal/1002%192.168.1.1 &park"); now if i want to bridge them i suppose i should use something like api:execute("uuid_bridge", "uuid_1 uuid_2"); but how do i get uuid_1 and uuid_2, i.e. the uuids of the two sessions? example2: I could create sessions with local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); local session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1"); but then there is NOT a bridge API to bridge the sessions like: bridge(session1, session2); I admit I have not yet understood why such bridge possibility exist in javascript but does not exist in lua. http://wiki.freeswitch.org/wiki/Javascript_Misc_bridge I guess there is a reason for this but I can't figure it out. example3: yet another possibility local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session1:originate(session2, "sofia/internal/1002%192.168.1.1", 1000); but it does not work either. Besides with this third example something strange happen: freeswitch@internal> show channels uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr ,dest,application,application_data,dialplan,context,read_codec,read_rate ,write_codec,write_rate,secure 1c5db2df-14ce-4516-94f2-bb7c087e0802,outbound,2010-01-12 10:50:59,1263289859,sofia/internal/1004,CS_REPORTING,FreeSWITCH,00000000 00,,1004,,,,default,PCMA,8000,PCMA,8000, 1 total. freeswitch@internal> uuid_kill 1c5db2df-14ce-4516-94f2-bb7c087e0802 -ERR No Such Channel! freeswitch@internal> show channels uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr ,dest,application,application_data,dialplan,context,read_codec,read_rate ,write_codec,write_rate,secure 1c5db2df-14ce-4516-94f2-bb7c087e0802,outbound,2010-01-12 10:50:59,1263289859,sofia/internal/1004,CS_REPORTING,FreeSWITCH,00000000 00,,1004,,,,default,PCMA,8000,PCMA,8000, 1 total. freeswitch@internal> If you are interested the full log is here: http://pastebin.freeswitch.org/11757 but I admit i'm not on latest trunk yet! Thanks. Ciao, Claudio PS: Is there a reason why there is a uuid_park command but not uuid_valet_park ? Internet Email Confidentiality Footer ----------------------------------------------------------------------------------------------------- La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto. This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred. -----------------------------------------------------------------------------------------------------
On Tue, Jan 12, 2010 at 3:43 AM, Cavalera Claudio Luigi < Claudio.Cavalera@italtel.it> wrote:
Hello, this should be simple in theory therefore I'm probably missing the right way to do it. I want to play with sessions in lua, bridge them, park them, etc...
example1: Consider this simple lua script in which i create two sessions:
api = freeswitch.API(); api:execute("originate", "sofia/internal/1001%192.168.1.1 &park"); api:execute("originate", "sofia/internal/1002%192.168.1.1 &park");
capture the output from api:execute the uuid is in there
now if i want to bridge them i suppose i should use something like
api:execute("uuid_bridge", "uuid_1 uuid_2");
but how do i get uuid_1 and uuid_2, i.e. the uuids of the two sessions?
example2: I could create sessions with
local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); local session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1");
but then there is NOT a bridge API to bridge the sessions like: bridge(session1, session2);
I admit I have not yet understood why such bridge possibility exist in javascript but does not exist in lua. http://wiki.freeswitch.org/wiki/Javascript_Misc_bridge I guess there is a reason for this but I can't figure it out.
because lua calls it freeswitch.bridge session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1", session1); freeswitch.bridge(session1, session2);
example3: yet another possibility local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session1:originate(session2, "sofia/internal/1002%192.168.1.1", 1000);
but it does not work either.
The above is gibberish try: local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session1:execute("bridge", "sofia/internal/1002%192.168.1.1");
Besides with this third example something strange happen:
freeswitch@internal> show channels uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr ,dest,application,application_data,dialplan,context,read_codec,read_rate ,write_codec,write_rate,secure 1c5db2df-14ce-4516-94f2-bb7c087e0802,outbound,2010-01-12 10:50:59,1263289859,sofia/internal/1004,CS_REPORTING,FreeSWITCH,00000000 00,,1004,,,,default,PCMA,8000,PCMA,8000,
1 total.
freeswitch@internal> uuid_kill 1c5db2df-14ce-4516-94f2-bb7c087e0802 -ERR No Such Channel!
freeswitch@internal> show channels uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr ,dest,application,application_data,dialplan,context,read_codec,read_rate ,write_codec,write_rate,secure 1c5db2df-14ce-4516-94f2-bb7c087e0802,outbound,2010-01-12 10:50:59,1263289859,sofia/internal/1004,CS_REPORTING,FreeSWITCH,00000000 00,,1004,,,,default,PCMA,8000,PCMA,8000,
1 total.
freeswitch@internal>
If you are interested the full log is here: http://pastebin.freeswitch.org/11757 but I admit i'm not on latest trunk yet!
Thanks. Ciao, Claudio
PS: Is there a reason why there is a uuid_park command but not uuid_valet_park ?
Internet Email Confidentiality Footer
----------------------------------------------------------------------------------------------------- La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto.
This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred.
-----------------------------------------------------------------------------------------------------
_______________________________________________ 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/ Twitter: http://twitter.com/FreeSWITCH_wire 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:+19193869900
Thanks a lot Anthony, some comments inline (and please forgive me for my broken email client).
example1: Consider this simple lua script in which i create two sessions:
api = freeswitch.API(); api:execute("originate", "sofia/internal/1001%192.168.1.1 &park"); api:execute("originate", "sofia/internal/1002%192.168.1.1 &park");
capture the output from api:execute the uuid is in there
Thx a lot, this was one piece i was missing although it's already on the wiki here: http://wiki.freeswitch.org/wiki/Mod_lua#For_making_API_calls
because lua calls it freeswitch.bridge
session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1", session1); freeswitch.bridge(session1, session2);
good to now, there isn't any example of freeswitch.bridge in the wiki and i would like to add one. Where I could find the full api of freeswitch.Session( ) ? because I've seen this working also without "session1" in the second line: session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1"); freeswitch.bridge(session1, session2); also is there any difference between freeswitch.bridge and freeswitch.execute(uuid_bridge ...) ?
example3: yet another possibility local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session1:originate(session2, "sofia/internal/1002%192.168.1.1", 1000); but it does not work either.
The above is gibberish try: local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session1:execute("bridge", "sofia/internal/1002%192.168.1.1");
Okay i will report also this bridge example on the wiki which was missing. But does session:originate make sense in some cases or not? Otherwise i'm going to remove this line on the wiki http://wiki.freeswitch.org/wiki/Mod_lua#session:originate <http://wiki.freeswitch.org/wiki/Mod_lua#session:originate> Thanks, Claudio Internet Email Confidentiality Footer ----------------------------------------------------------------------------------------------------- La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto. This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred. -----------------------------------------------------------------------------------------------------
Also after api = freeswitch.API(); what is the difference between api:execute() and api:executeString() ? I've found example of both uses in http://wiki.freeswitch.org/wiki/Mod_lua and in http://wiki.freeswitch.org/wiki/Make_API_calls_directly_from_Lua_code Thanks, Claudio ________________________________ From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Cavalera Claudio Luigi Sent: Wednesday, January 13, 2010 11:22 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] playing with sessions in lua Thanks a lot Anthony, some comments inline (and please forgive me for my broken email client). >> example1: Consider this simple lua script in which i create two sessions: >> api = freeswitch.API(); >> api:execute("originate", "sofia/internal/1001%192.168.1.1 &park"); >> api:execute("originate", "sofia/internal/1002%192.168.1.1 &park"); > capture the output from api:execute the uuid is in there Thx a lot, this was one piece i was missing although it's already on the wiki here: http://wiki.freeswitch.org/wiki/Mod_lua#For_making_API_calls > because lua calls it freeswitch.bridge > session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); > session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1", session1); > freeswitch.bridge(session1, session2); good to now, there isn't any example of freeswitch.bridge in the wiki and i would like to add one. Where I could find the full api of freeswitch.Session( ) ? because I've seen this working also without "session1" in the second line: session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1"); freeswitch.bridge(session1, session2); also is there any difference between freeswitch.bridge and freeswitch.execute(uuid_bridge ...) ? >> example3: yet another possibility >> local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); >> session1:originate(session2, "sofia/internal/1002%192.168.1.1", 1000); >> but it does not work either. > The above is gibberish try: > local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); > session1:execute("bridge", "sofia/internal/1002%192.168.1.1"); Okay i will report also this bridge example on the wiki which was missing. But does session:originate make sense in some cases or not? Otherwise i'm going to remove this line on the wiki http://wiki.freeswitch.org/wiki/Mod_lua#session:originate <http://wiki.freeswitch.org/wiki/Mod_lua#session:originate> Thanks, Claudio Internet Email Confidentiality Footer ************************************************************************ ******************************************************************** La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto. This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred. ************************************************************************ ********************************************************************
execute("api", "args") executeString("api args") one needs the api name as a separate arg On Wed, Jan 13, 2010 at 9:51 AM, Cavalera Claudio Luigi < Claudio.Cavalera@italtel.it> wrote:
Also after api = freeswitch.API(); what is the difference between api:execute()
and api:executeString() ?
I've found example of both uses in http://wiki.freeswitch.org/wiki/Mod_lua and in http://wiki.freeswitch.org/wiki/Make_API_calls_directly_from_Lua_code
Thanks, Claudio
------------------------------ *From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Cavalera Claudio Luigi *Sent:* Wednesday, January 13, 2010 11:22 AM
*To:* freeswitch-users@lists.freeswitch.org *Subject:* Re: [Freeswitch-users] playing with sessions in lua
Thanks a lot Anthony, some comments inline (and please forgive me for my broken email client).
example1: Consider this simple lua script in which i create two sessions:
api = freeswitch.API(); api:execute("originate", "sofia/internal/1001%192.168.1.1 &park"); api:execute("originate", "sofia/internal/1002%192.168.1.1 &park");
capture the output from api:execute the uuid is in there
Thx a lot, this was one piece i was missing although it's already on the wiki here: http://wiki.freeswitch.org/wiki/Mod_lua#For_making_API_calls
because lua calls it freeswitch.bridge
session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1", session1); freeswitch.bridge(session1, session2);
good to now, there isn't any example of freeswitch.bridge in the wiki and i would like to add one. Where I could find the full api of freeswitch.Session( ) ? because I've seen this working also without "session1" in the second line: session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1"); freeswitch.bridge(session1, session2);
also is there any difference between freeswitch.bridge and freeswitch.execute(uuid_bridge ...) ?
example3: yet another possibility local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session1:originate(session2, "sofia/internal/1002%192.168.1.1", 1000); but it does not work either.
The above is gibberish try: local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session1:execute("bridge", "sofia/internal/1002%192.168.1.1");
Okay i will report also this bridge example on the wiki which was missing. But does session:originate make sense in some cases or not? Otherwise i'm going to remove this line on the wiki http://wiki.freeswitch.org/wiki/Mod_lua#session:originate
Thanks, Claudio
Internet Email Confidentiality Footer
********************************************************************************************************************************************
La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto.
This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred.
********************************************************************************************************************************************
_______________________________________________ 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
-- -Rupa
Hello! Before you remove "session:originate" from the wiki, you should take a look at this: http://wiki.freeswitch.org/wiki/Mod_lua#How_can_I_find_useful_undocumented_S... <http://wiki.freeswitch.org/wiki/Mod_lua#How_can_I_find_useful_undocumented_Session_Functions.3F>There is, in fact, a function called "originate". Mike van Lammeren On Wed, Jan 13, 2010 at 5:22 AM, Cavalera Claudio Luigi < Claudio.Cavalera@italtel.it> wrote:
Thanks a lot Anthony, some comments inline (and please forgive me for my broken email client).
example1: Consider this simple lua script in which i create two sessions:
api = freeswitch.API(); api:execute("originate", "sofia/internal/1001%192.168.1.1 &park"); api:execute("originate", "sofia/internal/1002%192.168.1.1 &park");
capture the output from api:execute the uuid is in there
Thx a lot, this was one piece i was missing although it's already on the wiki here: http://wiki.freeswitch.org/wiki/Mod_lua#For_making_API_calls
because lua calls it freeswitch.bridge
session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1", session1); freeswitch.bridge(session1, session2);
good to now, there isn't any example of freeswitch.bridge in the wiki and i would like to add one. Where I could find the full api of freeswitch.Session( ) ? because I've seen this working also without "session1" in the second line: session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1"); freeswitch.bridge(session1, session2);
also is there any difference between freeswitch.bridge and freeswitch.execute(uuid_bridge ...) ?
example3: yet another possibility local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session1:originate(session2, "sofia/internal/1002%192.168.1.1", 1000); but it does not work either.
The above is gibberish try: local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session1:execute("bridge", "sofia/internal/1002%192.168.1.1");
Okay i will report also this bridge example on the wiki which was missing. But does session:originate make sense in some cases or not? Otherwise i'm going to remove this line on the wiki http://wiki.freeswitch.org/wiki/Mod_lua#session:originate
Thanks, Claudio
Internet Email Confidentiality Footer
********************************************************************************************************************************************
La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto.
This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred.
********************************************************************************************************************************************
_______________________________________________ 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
Hi Mike, in fact i've completed that page with the list of available session functions. I've not removed "session:originate" yet, but it would be better if someone could provide an example in order to write an example in the wiki. I've added this valuable example also with the help of rupa http://wiki.freeswitch.org/wiki/Mod_lua#freeswitch.Session I would like to write something also about api_on_answer to use an api instead of a dialplan application. BRs, Claudio ________________________________ From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Mike van Lammeren Sent: Wednesday, January 13, 2010 8:30 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] playing with sessions in lua Hello! Before you remove "session:originate" from the wiki, you should take a look at this: http://wiki.freeswitch.org/wiki/Mod_lua#How_can_I_find_useful_undocument ed_Session_Functions.3F <http://wiki.freeswitch.org/wiki/Mod_lua#How_can_I_find_useful_undocumen ted_Session_Functions.3F> There is, in fact, a function called "originate". Mike van Lammeren On Wed, Jan 13, 2010 at 5:22 AM, Cavalera Claudio Luigi <Claudio.Cavalera@italtel.it> wrote: Thanks a lot Anthony, some comments inline (and please forgive me for my broken email client). >> example1: Consider this simple lua script in which i create two sessions: >> api = freeswitch.API(); >> api:execute("originate", "sofia/internal/1001%192.168.1.1 &park"); >> api:execute("originate", "sofia/internal/1002%192.168.1.1 &park"); > capture the output from api:execute the uuid is in there Thx a lot, this was one piece i was missing although it's already on the wiki here: http://wiki.freeswitch.org/wiki/Mod_lua#For_making_API_calls > because lua calls it freeswitch.bridge > session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); > session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1", session1); > freeswitch.bridge(session1, session2); good to now, there isn't any example of freeswitch.bridge in the wiki and i would like to add one. Where I could find the full api of freeswitch.Session( ) ? because I've seen this working also without "session1" in the second line: session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1"); freeswitch.bridge(session1, session2); also is there any difference between freeswitch.bridge and freeswitch.execute(uuid_bridge ...) ? >> example3: yet another possibility >> local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); >> session1:originate(session2, "sofia/internal/1002%192.168.1.1", 1000); >> but it does not work either. > The above is gibberish try: > local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); > session1:execute("bridge", "sofia/internal/1002%192.168.1.1"); Okay i will report also this bridge example on the wiki which was missing. But does session:originate make sense in some cases or not? Otherwise i'm going to remove this line on the wiki http://wiki.freeswitch.org/wiki/Mod_lua#session:originate <http://wiki.freeswitch.org/wiki/Mod_lua#session:originate> Thanks, Claudio Internet Email Confidentiality Footer ************************************************************************ ******************************************************************** La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto. This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred. ************************************************************************ ******************************************************************** _______________________________________________ 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
Hi Claudio! Thanks for the additions to the wiki! Every little bit helps. I don't think I explained myself well, earlier. The point I was trying to make about the wiki is that rather than remove the section about "originate", it would be better to make an entry like "originate -- Does anyone know what this does?" Mike van Lammeren On Thu, Jan 14, 2010 at 6:23 AM, Cavalera Claudio Luigi < Claudio.Cavalera@italtel.it> wrote:
Hi Mike, in fact i've completed that page with the list of available session functions.
I've not removed "session:originate" yet, but it would be better if someone could provide an example in order to write an example in the wiki. I've added this valuable example also with the help of rupa http://wiki.freeswitch.org/wiki/Mod_lua#freeswitch.Session
I would like to write something also about api_on_answer to use an api instead of a dialplan application.
BRs, Claudio
------------------------------ *From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Mike van Lammeren *Sent:* Wednesday, January 13, 2010 8:30 PM
*To:* freeswitch-users@lists.freeswitch.org *Subject:* Re: [Freeswitch-users] playing with sessions in lua
Hello!
Before you remove "session:originate" from the wiki, you should take a look at this:
http://wiki.freeswitch.org/wiki/Mod_lua#How_can_I_find_useful_undocumented_S...
<http://wiki.freeswitch.org/wiki/Mod_lua#How_can_I_find_useful_undocumented_Session_Functions.3F>There is, in fact, a function called "originate".
Mike van Lammeren
On Wed, Jan 13, 2010 at 5:22 AM, Cavalera Claudio Luigi < Claudio.Cavalera@italtel.it> wrote:
Thanks a lot Anthony, some comments inline (and please forgive me for my broken email client).
example1: Consider this simple lua script in which i create two sessions:
api = freeswitch.API(); api:execute("originate", "sofia/internal/1001%192.168.1.1 &park"); api:execute("originate", "sofia/internal/1002%192.168.1.1 &park");
capture the output from api:execute the uuid is in there
Thx a lot, this was one piece i was missing although it's already on the wiki here: http://wiki.freeswitch.org/wiki/Mod_lua#For_making_API_calls
because lua calls it freeswitch.bridge
session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1", session1); freeswitch.bridge(session1, session2);
good to now, there isn't any example of freeswitch.bridge in the wiki and i would like to add one. Where I could find the full api of freeswitch.Session( ) ? because I've seen this working also without "session1" in the second line: session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1"); freeswitch.bridge(session1, session2);
also is there any difference between freeswitch.bridge and freeswitch.execute(uuid_bridge ...) ?
example3: yet another possibility local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session1:originate(session2, "sofia/internal/1002%192.168.1.1", 1000); but it does not work either.
The above is gibberish try: local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session1:execute("bridge", "sofia/internal/1002%192.168.1.1");
Okay i will report also this bridge example on the wiki which was missing. But does session:originate make sense in some cases or not? Otherwise i'm going to remove this line on the wiki http://wiki.freeswitch.org/wiki/Mod_lua#session:originate
Thanks, Claudio
Internet Email Confidentiality Footer
********************************************************************************************************************************************
La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto.
This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred.
********************************************************************************************************************************************
_______________________________________________ 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
Don't forget that lua,perl,python,managed,java all share the same exact C++ source file with swig so the same exact api applies to all of the above. On Thu, Jan 14, 2010 at 9:15 AM, Mike van Lammeren <mike@van.lammeren.net>wrote:
Hi Claudio!
Thanks for the additions to the wiki! Every little bit helps.
I don't think I explained myself well, earlier. The point I was trying to make about the wiki is that rather than remove the section about "originate", it would be better to make an entry like "originate -- Does anyone know what this does?"
Mike van Lammeren
On Thu, Jan 14, 2010 at 6:23 AM, Cavalera Claudio Luigi < Claudio.Cavalera@italtel.it> wrote:
Hi Mike, in fact i've completed that page with the list of available session functions.
I've not removed "session:originate" yet, but it would be better if someone could provide an example in order to write an example in the wiki. I've added this valuable example also with the help of rupa http://wiki.freeswitch.org/wiki/Mod_lua#freeswitch.Session
I would like to write something also about api_on_answer to use an api instead of a dialplan application.
BRs, Claudio
------------------------------ *From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Mike van Lammeren *Sent:* Wednesday, January 13, 2010 8:30 PM
*To:* freeswitch-users@lists.freeswitch.org *Subject:* Re: [Freeswitch-users] playing with sessions in lua
Hello!
Before you remove "session:originate" from the wiki, you should take a look at this:
http://wiki.freeswitch.org/wiki/Mod_lua#How_can_I_find_useful_undocumented_S...
<http://wiki.freeswitch.org/wiki/Mod_lua#How_can_I_find_useful_undocumented_Session_Functions.3F>There is, in fact, a function called "originate".
Mike van Lammeren
On Wed, Jan 13, 2010 at 5:22 AM, Cavalera Claudio Luigi < Claudio.Cavalera@italtel.it> wrote:
Thanks a lot Anthony, some comments inline (and please forgive me for my broken email client).
example1: Consider this simple lua script in which i create two sessions:
api = freeswitch.API(); api:execute("originate", "sofia/internal/1001%192.168.1.1 &park"); api:execute("originate", "sofia/internal/1002%192.168.1.1 &park");
capture the output from api:execute the uuid is in there
Thx a lot, this was one piece i was missing although it's already on the wiki here: http://wiki.freeswitch.org/wiki/Mod_lua#For_making_API_calls
because lua calls it freeswitch.bridge
session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1", session1); freeswitch.bridge(session1, session2);
good to now, there isn't any example of freeswitch.bridge in the wiki and i would like to add one. Where I could find the full api of freeswitch.Session( ) ? because I've seen this working also without "session1" in the second line: session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1"); freeswitch.bridge(session1, session2);
also is there any difference between freeswitch.bridge and freeswitch.execute(uuid_bridge ...) ?
example3: yet another possibility local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session1:originate(session2, "sofia/internal/1002%192.168.1.1", 1000); but it does not work either.
The above is gibberish try: local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session1:execute("bridge", "sofia/internal/1002%192.168.1.1");
Okay i will report also this bridge example on the wiki which was missing. But does session:originate make sense in some cases or not? Otherwise i'm going to remove this line on the wiki http://wiki.freeswitch.org/wiki/Mod_lua#session:originate
Thanks, Claudio
Internet Email Confidentiality Footer
********************************************************************************************************************************************
La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto.
This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred.
********************************************************************************************************************************************
_______________________________________________ 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/ Twitter: http://twitter.com/FreeSWITCH_wire 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:+19193869900
And now with tcl bindings. :P /b On Jan 14, 2010, at 10:37 AM, Anthony Minessale wrote:
Don't forget that lua,perl,python,managed,java all share the same exact C++ source file with swig so the same exact api applies to all of the above.
On Thu, Jan 14, 2010 at 9:15 AM, Mike van Lammeren <mike@van.lammeren.net> wrote: Hi Claudio!
Thanks for the additions to the wiki! Every little bit helps.
I don't think I explained myself well, earlier. The point I was trying to make about the wiki is that rather than remove the section about "originate", it would be better to make an entry like "originate -- Does anyone know what this does?"
Mike van Lammeren
Anthony, I've noticed that you did not mention javascript, is it the exception? Is the C++ file with the api src/include/switch_swigable_cpp.h ? Thx, Claudio ________________________________ From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Thursday, January 14, 2010 5:38 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] playing with sessions in lua Don't forget that lua,perl,python,managed,java all share the same exact C++ source file with swig so the same exact api applies to all of the above. Internet Email Confidentiality Footer ----------------------------------------------------------------------------------------------------- La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto. This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred. -----------------------------------------------------------------------------------------------------
We are telling the same thing Mike, I've also written to elaborate the "originate" entry on mod_lua wiki. We could take examples from here maybe: http://wiki.freeswitch.org/wiki/Session_originate ciao, claudio ________________________________ From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Mike van Lammeren Sent: Thursday, January 14, 2010 4:16 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] playing with sessions in lua Hi Claudio! Thanks for the additions to the wiki! Every little bit helps. I don't think I explained myself well, earlier. The point I was trying to make about the wiki is that rather than remove the section about "originate", it would be better to make an entry like "originate -- Does anyone know what this does?" Mike van Lammeren On Thu, Jan 14, 2010 at 6:23 AM, Cavalera Claudio Luigi <Claudio.Cavalera@italtel.it> wrote: Hi Mike, in fact i've completed that page with the list of available session functions. I've not removed "session:originate" yet, but it would be better if someone could provide an example in order to write an example in the wiki. I've added this valuable example also with the help of rupa http://wiki.freeswitch.org/wiki/Mod_lua#freeswitch.Session I would like to write something also about api_on_answer to use an api instead of a dialplan application. BRs, Claudio ________________________________ From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Mike van Lammeren Sent: Wednesday, January 13, 2010 8:30 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] playing with sessions in lua Hello! Before you remove "session:originate" from the wiki, you should take a look at this: http://wiki.freeswitch.org/wiki/Mod_lua#How_can_I_find_useful_undocument ed_Session_Functions.3F <http://wiki.freeswitch.org/wiki/Mod_lua#How_can_I_find_useful_undocumen ted_Session_Functions.3F> There is, in fact, a function called "originate". Mike van Lammeren On Wed, Jan 13, 2010 at 5:22 AM, Cavalera Claudio Luigi <Claudio.Cavalera@italtel.it> wrote: Thanks a lot Anthony, some comments inline (and please forgive me for my broken email client). >> example1: Consider this simple lua script in which i create two sessions: >> api = freeswitch.API(); >> api:execute("originate", "sofia/internal/1001%192.168.1.1 &park"); >> api:execute("originate", "sofia/internal/1002%192.168.1.1 &park"); > capture the output from api:execute the uuid is in there Thx a lot, this was one piece i was missing although it's already on the wiki here: http://wiki.freeswitch.org/wiki/Mod_lua#For_making_API_calls > because lua calls it freeswitch.bridge > session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); > session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1", session1); > freeswitch.bridge(session1, session2); good to now, there isn't any example of freeswitch.bridge in the wiki and i would like to add one. Where I could find the full api of freeswitch.Session( ) ? because I've seen this working also without "session1" in the second line: session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1"); freeswitch.bridge(session1, session2); also is there any difference between freeswitch.bridge and freeswitch.execute(uuid_bridge ...) ? >> example3: yet another possibility >> local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); >> session1:originate(session2, "sofia/internal/1002%192.168.1.1", 1000); >> but it does not work either. > The above is gibberish try: > local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); > session1:execute("bridge", "sofia/internal/1002%192.168.1.1"); Okay i will report also this bridge example on the wiki which was missing. But does session:originate make sense in some cases or not? Otherwise i'm going to remove this line on the wiki http://wiki.freeswitch.org/wiki/Mod_lua#session:originate <http://wiki.freeswitch.org/wiki/Mod_lua#session:originate> Thanks, Claudio Internet Email Confidentiality Footer ************************************************************************ ******************************************************************** La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto. This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred. ************************************************************************ ******************************************************************** _______________________________________________ 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
Hello, That's easy ;) (I'm pretty new) var = session:getVariable("uuid") but you need to have 2 sessions. Hope this helps David On Tue, Jan 12, 2010 at 10:43 AM, Cavalera Claudio Luigi < Claudio.Cavalera@italtel.it> wrote:
Hello, this should be simple in theory therefore I'm probably missing the right way to do it. I want to play with sessions in lua, bridge them, park them, etc...
example1: Consider this simple lua script in which i create two sessions:
api = freeswitch.API(); api:execute("originate", "sofia/internal/1001%192.168.1.1 &park"); api:execute("originate", "sofia/internal/1002%192.168.1.1 &park");
now if i want to bridge them i suppose i should use something like
api:execute("uuid_bridge", "uuid_1 uuid_2");
but how do i get uuid_1 and uuid_2, i.e. the uuids of the two sessions?
example2: I could create sessions with
local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); local session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1");
but then there is NOT a bridge API to bridge the sessions like: bridge(session1, session2);
I admit I have not yet understood why such bridge possibility exist in javascript but does not exist in lua. http://wiki.freeswitch.org/wiki/Javascript_Misc_bridge I guess there is a reason for this but I can't figure it out.
example3: yet another possibility local session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1"); session1:originate(session2, "sofia/internal/1002%192.168.1.1", 1000);
but it does not work either.
Besides with this third example something strange happen:
freeswitch@internal> show channels uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr ,dest,application,application_data,dialplan,context,read_codec,read_rate ,write_codec,write_rate,secure 1c5db2df-14ce-4516-94f2-bb7c087e0802,outbound,2010-01-12 10:50:59,1263289859,sofia/internal/1004,CS_REPORTING,FreeSWITCH,00000000 00,,1004,,,,default,PCMA,8000,PCMA,8000,
1 total.
freeswitch@internal> uuid_kill 1c5db2df-14ce-4516-94f2-bb7c087e0802 -ERR No Such Channel!
freeswitch@internal> show channels uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr ,dest,application,application_data,dialplan,context,read_codec,read_rate ,write_codec,write_rate,secure 1c5db2df-14ce-4516-94f2-bb7c087e0802,outbound,2010-01-12 10:50:59,1263289859,sofia/internal/1004,CS_REPORTING,FreeSWITCH,00000000 00,,1004,,,,default,PCMA,8000,PCMA,8000,
1 total.
freeswitch@internal>
If you are interested the full log is here: http://pastebin.freeswitch.org/11757 but I admit i'm not on latest trunk yet!
Thanks. Ciao, Claudio
PS: Is there a reason why there is a uuid_park command but not uuid_valet_park ?
Internet Email Confidentiality Footer
----------------------------------------------------------------------------------------------------- La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto.
This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred.
-----------------------------------------------------------------------------------------------------
_______________________________________________ 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 (6)
-
Anthony Minessale
-
Brian West
-
Cavalera Claudio Luigi
-
David Villasmil
-
Mike van Lammeren
-
Rupa Schomaker