View previous topic :: View next topic |
Author |
Message |
nik.middleton at noble... Guest
|
Posted: Sat Jul 11, 2009 2:22 pm Post subject: [Freeswitch-users] Setting channel variables using event soc |
|
|
Hi Guys,
Is it possible to set a channel variable while a call is in progress using an outbound event socket? I have a listening process that examines the hang-up events and it would be neat if it could also get some variables that I have set mid call as well. Note: I know it’s possible to set them in the originate but that’s not what I’m after
Regards, |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Sat Jul 11, 2009 2:52 pm Post subject: [Freeswitch-users] Setting channel variables using event soc |
|
|
uuid_setvar
/b
On Jul 11, 2009, at 2:19 PM, Nik Middleton wrote:
Quote: | Hi Guys,
Is it possible to set a channel variable while a call is in progress using an outbound event socket? I have a listening process that examines the hang-up events and it would be neat if it could also get some variables that I have set mid call as well. Note: I know it’s possible to set them in the originate but that’s not what I’m after
Regards,
________ |
|
|
Back to top |
|
|
nik.middleton at noble... Guest
|
Posted: Sat Jul 11, 2009 4:10 pm Post subject: [Freeswitch-users] Setting channel variables using event soc |
|
|
Excellent. Do I need to supply uuid on an outbound socket?
Regards
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West
Sent: 11 July 2009 20:51
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Setting channel variables using event socket
uuid_setvar
/b
On Jul 11, 2009, at 2:19 PM, Nik Middleton wrote:
Hi Guys,
Is it possible to set a channel variable while a call is in progress using an outbound event socket? I have a listening process that examines the hang-up events and it would be neat if it could also get some variables that I have set mid call as well. Note: I know it’s possible to set them in the originate but that’s not what I’m after
Regards,
________ |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Sat Jul 11, 2009 4:22 pm Post subject: [Freeswitch-users] Setting channel variables using event soc |
|
|
I think you do ...
/b
On Jul 11, 2009, at 4:08 PM, Nik Middleton wrote:
Quote: | Excellent. Do I need to supply uuid on an outbound socket?
Regards
|
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Sat Jul 11, 2009 4:51 pm Post subject: [Freeswitch-users] Setting channel variables using event soc |
|
|
IIRC you need to supply the uuid because the socket doesn't make any assumptions about the APIs you send.
-MC
Sent from my iPhone
On Jul 11, 2009, at 2:21 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
|
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Sat Jul 11, 2009 4:52 pm Post subject: [Freeswitch-users] Setting channel variables using event soc |
|
|
I think also sendmsg with command execute works in this case if you are using async socket but uuid_setvar always works in all cases
|
|
Back to top |
|
|
nik.middleton at noble... Guest
|
Posted: Sun Jul 12, 2009 5:13 pm Post subject: [Freeswitch-users] Setting channel variables using event soc |
|
|
HI Guys,
Can’t seem to get this to work
call-command: execute
execute-app-name: uuid_setvar
execute-app-arg: cad8eb99-cdcd-4d0d-9453-20b8d9d71859 fred=out_to_lunch
Tried various permutations, but still nothing stored when the channel is hung up
Can anyone tell me what I’m doing wrong?
Regards,
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale
Sent: 11 July 2009 22:51
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Setting channel variables using event socket
I think also sendmsg with command execute works in this case if you are using async socket but uuid_setvar always works in all cases |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Sun Jul 12, 2009 5:24 pm Post subject: [Freeswitch-users] Setting channel variables using event soc |
|
|
If you're going to do it that way you can just use set.
uuid_setvar is an api call...
/b
On Jul 12, 2009, at 5:10 PM, Nik Middleton wrote:
Quote: | HI Guys,
Can’t seem to get this to work
call-command: execute
execute-app-name: uuid_setvar
execute-app-arg: cad8eb99-cdcd-4d0d-9453-20b8d9d71859 fred=out_to_lunch
Tried various permutations, but still nothing stored when the channel is hung up
Can anyone tell me what I’m doing wrong?
Regards,
|
|
|
Back to top |
|
|
nik.middleton at noble... Guest
|
Posted: Sun Jul 12, 2009 5:35 pm Post subject: [Freeswitch-users] Setting channel variables using event soc |
|
|
As in
call-command: set joe=out_to_lunch ?
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West
Sent: 12 July 2009 23:24
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Setting channel variables using event socket
If you're going to do it that way you can just use set.
uuid_setvar is an api call...
/b
On Jul 12, 2009, at 5:10 PM, Nik Middleton wrote:
HI Guys,
Can’t seem to get this to work
call-command: execute
execute-app-name: uuid_setvar
execute-app-arg: cad8eb99-cdcd-4d0d-9453-20b8d9d71859 fred=out_to_lunch
Tried various permutations, but still nothing stored when the channel is hung up
Can anyone tell me what I’m doing wrong?
Regards, |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Sun Jul 12, 2009 6:02 pm Post subject: [Freeswitch-users] Setting channel variables using event soc |
|
|
call-command: execute
execute-app-name: set
execute-app-arg: fred=out_to_lunch
On Jul 12, 2009, at 5:33 PM, Nik Middleton wrote:
Quote: | As in
call-command: set joe=out_to_lunch ?
|
|
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Mon Jul 13, 2009 10:26 am Post subject: [Freeswitch-users] Setting channel variables using event soc |
|
|
and if you go the uuid_setvar route you do this:
api uuid_setvar <uuid> joe=out_to_lunch<cr><cr>
On Sun, Jul 12, 2009 at 6:00 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
--
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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
|