Setting channel variables using event socket
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,
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, ________
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, ________
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> wrote:
I think you do ...
/b
On Jul 11, 2009, at 4:08 PM, Nik Middleton wrote:
Excellent. Do I need to supply uuid on an outbound socket?
Regards
_______________________________________________ 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
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 On Jul 11, 2009 4:27 PM, "Brian West" <brian@freeswitch.org> wrote: I think you do ... /b On Jul 11, 2009, at 4:08 PM, Nik Middleton wrote: > Excellent. Do I need to supply uuid on an out... _______________________________________________ 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 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 On Jul 11, 2009 4:27 PM, "Brian West" <brian@freeswitch.org> wrote: I think you do ... /b On Jul 11, 2009, at 4:08 PM, Nik Middleton wrote: > Excellent. Do I need to supply uuid on an out... _______________________________________________ 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
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,
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,
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> wrote:
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:
As in
call-command: set joe=out_to_lunch ?
_______________________________________________ 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:213-799-1400
participants (4)
-
Anthony Minessale
-
Brian West
-
Michael S Collins
-
Nik Middleton