Re: [Freeswitch-users] set_user effect
sounds weird. sip_from_user took the new set_user user value but not sip_from_user_stripped. so now I use sip_from_user_stripped to get the original caller_id_number.... ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, March 30, 2011 9:13 PM Subject: set_user effect If I change user with set_user, it seems that all the sip_from_xx are changed according to the new set_user value.But how can I get the original sip_from_xxx vars ? Thanks
set_user only sets the variables from the user in the directory on the current session. If you look at the usage you can "<user>@<domain> [prefix]" So you can set_user bob@example.com user_ It will prefix the vars from the user with user_ and your assessment of what is going on is wrong. /b On Mar 30, 2011, at 8:31 PM, Madovsky wrote:
sounds weird. sip_from_user took the new set_user user value but not sip_from_user_stripped. so now I use sip_from_user_stripped to get the original caller_id_number.... ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, March 30, 2011 9:13 PM Subject: set_user effect
Ok Brian, but I did this in my dialplan: <action inline="true" application="set_user" data="${dialed_extension}@$${domain} dest_"/> and after this line sip_from_uri, sip_from_user take the set_user values unless sip_from_user_stripped. I use the latest git (6 hours ago), thanks ----- Original Message ----- From: Brian West To: FreeSWITCH Users Help Sent: Wednesday, March 30, 2011 9:39 PM Subject: Re: [Freeswitch-users] set_user effect set_user only sets the variables from the user in the directory on the current session. If you look at the usage you can "<user>@<domain> [prefix]" So you can set_user bob@example.com user_ It will prefix the vars from the user with user_ and your assessment of what is going on is wrong. /b On Mar 30, 2011, at 8:31 PM, Madovsky wrote: sounds weird. sip_from_user took the new set_user user value but not sip_from_user_stripped. so now I use sip_from_user_stripped to get the original caller_id_number.... ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, March 30, 2011 9:13 PM Subject: set_user effect ------------------------------------------------------------------------------ _______________________________________________ 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'm pretty sure thats not possible if you go check switch_ivr_set_user in switch_ivr.c you'll see what it does... and setting or any knowledge of any sip_ variables is not there. /b On Mar 30, 2011, at 8:50 PM, Madovsky wrote:
and after this line sip_from_uri, sip_from_user take the set_user values unless sip_from_user_stripped. I use the latest git (6 hours ago),
ok thanks, maybe the cause is elsewhere ----- Original Message ----- From: "Brian West" <brian@freeswitch.org> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Wednesday, March 30, 2011 10:00 PM Subject: Re: [Freeswitch-users] set_user effect
I'm pretty sure thats not possible if you go check switch_ivr_set_user in switch_ivr.c you'll see what it does... and setting or any knowledge of any sip_ variables is not there.
/b
On Mar 30, 2011, at 8:50 PM, Madovsky wrote:
and after this line sip_from_uri, sip_from_user take the set_user values unless sip_from_user_stripped. I use the latest git (6 hours ago),
_______________________________________________ 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 (2)
-
Brian West
-
Madovsky