[Freeswitch-users] Full username in caller_profile->username

Serge S. Yuriev me at nevian.org
Wed Apr 13 00:23:41 MSD 2011


Hi

Anyone?
Maybe there another way to get auth username and his domain?
I see some variables containing domain but is there authed one?

01.04.2011, 17:57, "Serge S. Yuriev" <me at nevian.org>;:

>  Hello,
>
>  Mea culpa..
>
>  I'm talking lets say about mod_radius_cdr
>
>  Call From test at domain.tld to me at domain2.tld
>
>  Using this snippet
>                          if (profile->username) {
>                                  if (rc_avpair_add(rad_config, &send, PW_USER_NAME, (void *) profile->username, -1, 0) == NULL) {
>                                          switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "failed adding User-Name: %s\n", profile->username);
>                                          rc_destroy(rad_config);
>                                          goto end;
>                                  }
>                          }
>
>  Gives me (w/o domain.tld part)
>  01.04.2011 17:51:10 VERBOSE     [0x2b0ff723e910] [ParseBody]    Attribute
>  'User-Name', value: "test"
>
>  That should I do to get full URI?
>
>  01.04.2011, 08:35, "Michael Collins" <msc at freeswitch.org>;;:
>>   Could you please expand on this? A code snippet would be helpful, as would a little context.
>>
>>   -MC
>>
>>   On Thu, Mar 31, 2011 at 1:08 AM, Serge S. Yuriev <me at nevian.org>;; wrote:
>>>   Hello,
>>>
>>>   caller_profile->channel_name shows sofia/internal/user at domain
>>>   but caller_profile->username shows only user w/o domain part.
>>>   How i can set username to include domain name in caller_profile->username?
>>>
>>>   --
>>>   wbr,
>>>   Serge
>>>
>>>   _______________________________________________
>>>   FreeSWITCH-users mailing list
>>>   FreeSWITCH-users at 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 at lists.freeswitch.org
>>   http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>   UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>   http://www.freeswitch.org
>  --
>  wbr,
>  Serge
>
>  _______________________________________________
>  FreeSWITCH-users mailing list
>  FreeSWITCH-users at lists.freeswitch.org
>  http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>  UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>  http://www.freeswitch.org
-- 
wbr,
Serge



More information about the FreeSWITCH-users mailing list