<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><br>
</p>
<p>Hi.</p>
<p><br>
</p>
<p>In my script I use to use <span>AVP to store specific additional information for each registration.</span><br>
</p>
<p>When I have to get the <span>attr_avp</span> (Module Registrar) from the callee, during a call, I use to codify:
<span style="color: rgb(0, 111, 201);"><br>
</span></p>
<p><span style="color: rgb(0, 111, 201);"><br>
</span></p>
<p><span style="color: rgb(0, 111, 201);"><span>branch_route[per_branch_ops] {</span><br>
</span></p>
<p><span style="color: rgb(0, 111, 201);"> myVariable = $(avp(attr)[$T_branch_idx]</span>
<br>
</p>
<p><span style="color: rgb(0, 111, 201);">}</span><span></span> <br>
</p>
<p><br>
</p>
<p>What about the caller? I also need to get the attr_avp from caller, but I can't find a similar code in OpenSIPS documentation. How to do?</p>
<p><br>
</p>
<p>P.S.: I'm using the configuration: <span style="color: rgb(0, 111, 201);">modparam("usrloc", "db_mode", 0)</span><br>
</p>
<p><br>
</p>
<p>Any hint will be very helpful!</p>
<p>Best regards.</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: +55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</div>
</body>
</html>