Hello<div><br></div><div><br></div><div>I&#39;ve two problems regarding dialog module- used for profiling users that are in-a-call.</div><div><br></div><div>My topology is quiet simple.</div><div><br></div><div><div><br class="Apple-interchange-newline">
SIP-USER-71141----&gt;Kamailio-------------&gt;Asterisk[AGI]||</div><div>CALLEE&lt;-----------------Kamailio&lt;--------------------------------||</div><br class="Apple-interchange-newline"></div><div><br></div><div>1- I wish to store my custom SIP header value in profiles.</div>
<div><br></div><div>I&#39;m having trouble in figuring out on how to use Dialog_vars table in my kamailio server. I&#39;m using dialog module to profile SIP users that are in call or making a call. It works well and the dialog maintains an entry when the call is established. Now, the difficult part is that I want my custom header to be inserted into either dialog table or dialog_vars table such that when I do a query &quot;<b>is_in_profile(&quot;$avp(my_value)&quot;)</b>&quot; it returns me a result.</div>
<div><br></div><div><br></div><div>2- Alternative to 1, I can log A,B leg separately but it doesn&#39;t erase all data on call hangup.</div><div><br></div><div>Asterisk AGI changes the caller-id of SIP-USERA such that if it was 71141 it would be something like &quot;007&quot; on its way out to destination via kamailio. Now, at this point in kamailio when the call is answered by destination the dialog module saves the call data with values corresponding to &quot;007&quot; and not &quot;71141&quot;.</div>
<div>I have to disable the <span style="background-color:rgb(254,254,238)">&quot;dialog&quot;, &quot;detect_spirals&quot; in order to count this one call as two separate entities BUT problem occurs when on hangup the B-Leg gets erased from the table but the A-leg remains in DB for as long as  infinity.</span></div>
<div><span style="background-color:rgb(254,254,238)"><br></span></div><div><span style="background-color:rgb(254,254,238)">Please help me in this. </span></div><div><span style="background-color:rgb(254,254,238)">Let me know if more details are required from me.</span></div>
<div><span style="background-color:rgb(254,254,238)"><br></span></div><div><span style="background-color:rgb(254,254,238)">Regards,</span></div><div><span style="background-color:rgb(254,254,238)">Sammy G.</span></div>