<div dir="ltr">Hi All ,<div><br></div><div> I am using opensips-1.11 . </div><div><br></div><div>My config file looks like bellow .</div><div><br></div><div><b> <font color="#20124d"> if (method=="INVITE") {</font></b><div><b><font color="#20124d"><br></font></b></div><div><b><font color="#20124d"> if(is_present_hf("X-Info"))<br></font></b></div><div><b><font color="#20124d"> {</font></b></div><div><b><font color="#20124d"> $var(c)=$hdr(X-Info);</font></b></div><div><b><font color="#20124d"> $var(d)=$(var(c){s.select,2,;});</font></b></div><div><b><font color="#20124d"> $var(e)=$(var(c){s.select,3,;});</font></b></div><div><b><font color="#20124d"> $var(f)=$(var(c){s.select,4,;});</font></b></div><div><b><font color="#20124d"> }</font></b></div><div><b><font color="#20124d"><br></font></b></div><div><b><font color="#20124d"><br></font></b></div><div><b><font color="#20124d"><span class="gmail-Apple-tab-span" style="white-space:pre">        </span> #Set the flag for counting the dialogs. We user flag=4 for counting dialogs</font></b></div><div><b><font color="#20124d"><span class="gmail-Apple-tab-span" style="white-space:pre">                </span> setflag(2);</font></b></div><div><b><font color="#20124d"><span class="gmail-Apple-tab-span" style="white-space:pre">                </span> setflag(4);</font></b></div><div><b><font color="#20124d"> xlog( "L_NOTICE", "CallCenter_Info & $ci,$var(c) \n" );</font></b></div><div><b><font color="#20124d"> xlog( "L_NOTICE", "3CLogicCDR & $ci,$fU,$oU,$rd \n" );</font></b></div><div><b><font color="#20124d"> xlog("L_NOTICE", " Source IP ($si) : method ($rm) r-uri ($ru) : callID $ci \n");</font></b></div><div><b><font color="#20124d"><span class="gmail-Apple-tab-span" style="white-space:pre">                                        </span>}</font></b></div><div><br></div><div><br></div><div> What I am trying to do is , I am extracting "X-Info" from INVITE message and printing it in logs in place of "$var(c)" . When an INVITE message doesn't have "X-Info" header it prints "<null>" in place of "$var(c)" in logs .</div><div><br></div><div><br></div><div> <b> This is working fine in opensips-1.6 . For each and every call the $var(c) is getting updated . </b></div><div><br></div><div> <b>I am facing some problem in opensips-1.11 . For example : When I am doing a call which has "X-Info" it prints the value corresponding to that . In the next call , lets the INVITE message don't have "X-Info" , for this rather than printing "<null>" in place of "$var(c)" </b><b>its printing the previous value .</b></div><div><b><br></b></div><div><b><br></b></div><div><b> I am not getting why this is happening . Please help me . I think the variable is getting saved somewhere and getting printed again and again . </b></div><div><br></div><div> How can I solve this problem . Its very critical for me . It will affect my CDR . Please help me .</div><div><br></div><div><div class="gmail_signature"><div dir="ltr"><b><i>Thanks & Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div>
</div></div>