[Kamailio-Users] Normalising

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 6 14:48:53 CET 2009


Hello,

$var(...) is private variable per process. The accounting event happens 
during 200ok and may be a different process than the one processing the 
initial INVITE.

use $avp(...) instead of $var(...) for this purpose.

Cheers,
Daniel


On 03/06/2009 01:45 PM, Brian Chamberlain wrote:
> Hi List!,
>
> I am trying to write a normalised uri into the radius record for 
> accounting reasons.
>
> I have a route[5] that does the transformation for me
>
>
> I translate the uri and store it in a variable.
>
>        $var(translated_uri) = $ru;
>        $ru = $var(ruri_store);
>
> In the accounting module parameters I 
> store Sip-Translated-Request-URI= $var(translated_uri) = $ru; 
>
>
> I added the following debug in my route[5] to check the variables are 
> being transformed and they are as I want.
>
>        xlog("L_INFO", "[TEMP1] Accounting translation: $ru\n");
>        xlog("L_INFO", "[TEMP2] Accounting translation: 
> $var(translated_uri)\n");
>
>
> The Sip-Translated-Request-URI is equal to 0 on the radius record.. 
>
> What am I missing here?
>
> I hope I have explained myself well
>
> Thanks,
> Brian
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

-- 
Daniel-Constantin Mierla
http://www.asipto.com





More information about the sr-users mailing list