Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Setting channel variables using event socket


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
nik.middleton at noble...
Guest





PostPosted: Sat Jul 11, 2009 2:22 pm    Post subject: [Freeswitch-users] Setting channel variables using event soc Reply with 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
brian at freeswitch.org
Guest





PostPosted: Sat Jul 11, 2009 2:52 pm    Post subject: [Freeswitch-users] Setting channel variables using event soc Reply with quote

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





PostPosted: Sat Jul 11, 2009 4:10 pm    Post subject: [Freeswitch-users] Setting channel variables using event soc Reply with quote

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





PostPosted: Sat Jul 11, 2009 4:22 pm    Post subject: [Freeswitch-users] Setting channel variables using event soc Reply with quote

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





PostPosted: Sat Jul 11, 2009 4:51 pm    Post subject: [Freeswitch-users] Setting channel variables using event soc Reply with quote

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:



Quote:
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






_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
anthony.minessale at g...
Guest





PostPosted: Sat Jul 11, 2009 4:52 pm    Post subject: [Freeswitch-users] Setting channel variables using event soc Reply with quote

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
Quote:
On Jul 11, 2009 4:27 PM, "Brian West" <brian@freeswitch.org (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 (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

Back to top
nik.middleton at noble...
Guest





PostPosted: Sun Jul 12, 2009 5:13 pm    Post subject: [Freeswitch-users] Setting channel variables using event soc Reply with 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,


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
Quote:

On Jul 11, 2009 4:27 PM, "Brian West" <brian@freeswitch.org (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 (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
Back to top
brian at freeswitch.org
Guest





PostPosted: Sun Jul 12, 2009 5:24 pm    Post subject: [Freeswitch-users] Setting channel variables using event soc Reply with quote

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





PostPosted: Sun Jul 12, 2009 5:35 pm    Post subject: [Freeswitch-users] Setting channel variables using event soc Reply with quote

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





PostPosted: Sun Jul 12, 2009 6:02 pm    Post subject: [Freeswitch-users] Setting channel variables using event soc Reply with quote

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





PostPosted: Mon Jul 13, 2009 10:26 am    Post subject: [Freeswitch-users] Setting channel variables using event soc Reply with quote

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:
Quote:
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 ?
 





_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services