[Kamailio-Users] log not showing when using uac_replace_from( ) function

Daniel-Constantin Mierla miconda at gmail.com
Mon Dec 7 10:40:01 CET 2009



On 12/3/09 11:00 PM, Klaus Darilion wrote:
> Robert R wrote:
>> Hi,
>>
>> I simply trying to modify URI and FROM headers as follow. tcpdump 
>> packet capture shows the values are changed for both URI and FROM 
>> headers.
>> However, the syslog only shows the new value for URI and not for FROM 
>> header.
>
> Changes to the message (except RURI and DURI) are not visible in the 
> routing script, as the changes are applied to message immediately 
> before the message sent out.
>
>> How can I verify new value in FROM header in the log file?
>
> You can't.

With Kamailio 3.0 that is possible after calling msg_apply_changes():

http://kamailio.org/docs/modules/3.0.x/modules_k/textops.html#id2513325

Beware it is new, use it carefully (don't abuse use of it) and report 
any issue you discover.

Cheers,
Daniel


>> # main request routing logic
>> route
>> {
>>       $rU = avp(i:1);
>>       $rd = avp(i:2);
>>       ....
>>       uac_replace_from("$avp(i:3)");
>>
>>       xlog ("fu after perl: $fu");
>>       xlog ("ru after perl: $ru");
>>        ...
>> }
>>
>> Thanks,
>> Rob
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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 Users mailing list