[SR-Users] Reason header body to acc_sip_reason_column

Daniel-Constantin Mierla miconda at gmail.com
Fri May 30 17:14:39 CEST 2014


On 30/05/14 17:07, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>
>> if you want it as separate column, should work, one option being with
>> onreply_route[x] and storing the header value in an avp.
> yes, i thought about that, but since acc_sip_reason_column is mandatory
> column, it would be better to re-use it also for reason header.
>
>> If you want it over the existing column, then you have to patch the
>> module, eventually adding a modparam to control this behaviour. The
>> reply should be accessible via the transaction structure that is passed
>> to acc module via a callback function.
> i'll see if i'm able to do that.
Pointing it out for safety -- the log backend is writing to syslog in 
format: name1=value1;name2=value2;...
The reason header contains such body, therefore check it see if it 
doesn't break it - I expect to be enclosed in double quotes and escaped.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda




More information about the sr-users mailing list