From ushacked@gmail.com Tue Jan 31 18:24:26 2012 From: Uri Shacked To: sr-users@lists.kamailio.org Subject: [SR-Users] save a Q850 cause reason from a reply Date: Tue, 31 Jan 2012 19:24:19 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1166314931==" --===============1166314931== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi guys..... the header searching and saving the Q850 code didn't work. here is what i wrote in the cfg, in the failure route: *# manage failure routing cases failure_route[MANAGE_FAILURE] { xlog("L_CRIT", "failure \n"); if($avp(CAR)=="CALLOUT"){ xlog("L_CRIT", "failure in callout \n"); ##if(is_present_hf("Reason")) { xlog("L_CRIT", "failure in reason\n"); $avp(Q850)=$(hdr(Reason){param.value,cause}{s.int}); xlog("L_CRIT", "failure in reason $avp(Q850)\n"); ##}* here is the log print...... * 3(3433) CRITICAL: