Re: [SR-Users] save a Q850 cause reason from a reply

2012-02-01 Thread Daniel-Constantin Mierla
Hello, in failure route you have access to the request, not the reply -- I understand the Reason header is in reply from the content of the discussion. Either set an onreply_route and get the Reason header there, like storing it in the avp, or use $T_rpl($hdr(Reason)) in failure route -- fir

Re: [SR-Users] save a Q850 cause reason from a reply

2012-01-30 Thread Uri Shacked
On Mon, Jan 30, 2012 at 7:39 PM, Uri Shacked wrote: > Hi, > thanks for the options. i will test it soon. > looks like a perfect solution. > > BR, > Uri > ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-rou

Re: [SR-Users] save a Q850 cause reason from a reply

2012-01-30 Thread Alexandr Dubovikov
Hi Uri, if(is_present_hf("Reason")) { $var(cause)=$(hdr(Reason){param.value,cause}{s.int}); xlog("L_INFO", "Our cause code: $var(cause)"); } Also you can add this value to your CDR modparam("acc", "log_extra", "src_user=$fU;src_domain=$fd;dst_user=$rU;dst_domain=$

Re: [SR-Users] save a Q850 cause reason from a reply

2012-01-30 Thread Anca Vamanu
Hi Uri, You can use the param transformation: $(hdr(Reason){param.value,cause}) http://www.kamailio.org/dokuwiki/doku.php/transformations:3.1.x#parameters_list_transformations Regards, Anca On 01/30/2012 08:20 AM, Uri Shacked wrote: Hi, the gateway i use for sending call to pstn has an optio