<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Dear OpenSIPS-users,</p>
<p><br>
</p>
<p>The table location has the column attr where I use to <span>store specific additional information for each registration</span>.</p>
<p>Whenever A calls B, I have to read this specific information from the A record and from the B record. That is, I need to get and handle specific information about the caller and callee.</p>
<p><br>
</p>
<p>For the callee, I use to invoke the lookup(&quot;location&quot;) function that put the needed information in the attr_avp. That is good and works very well. Then, I just have to read the attr_avp to get such specific information.</p>
<p><br>
</p>
<p>For the caller, I use to invoke:</p>
<p><br>
</p>
<p><span style="color: rgb(0, 111, 201);">$var(aorChamador) = $(ct.fields(uri));</span></p>
<p><span><span style="color: rgb(0, 111, 201);">lookup(&quot;location&quot;,&quot;&quot;,&quot;$var(aorChamador)&quot;);</span><br>
</span></p>
<p><br>
</p>
<p>However it causes amazing side effect in the SIP signaling. Ex: When A calls B, B stays quiet and A rings. So A can answer A. Crazy!</p>
<p>According to the documentation, lookup will <span><span>overwritten</span></span> the
<span>Request-URI. <span>I guess that is why the SIP signaling become incoherent.</span></span></p>
<p><span><span><br>
</span></span></p>
<p><span><span>How could I get the caller attr specific information without side effects?</span></span></p>
<p><span><span><br>
</span></span></p>
<p><span><span>Any hint will be very helpful!!</span></span></p>
<p><span><span><br>
</span></span></p>
<p><span><span>Best regards.</span></span><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: &#43;55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</div>
</body>
</html>