<div dir="ltr">hey all <br><br><span title="Ebook Wiley.Internet.Communications.Using.SIP.Delivering.VoIP.and.Multimedia.Services.with.Session.Initiation.Protocol.Jul.2006.pdf"></span>after making call forward feature using avpops module and its exported functions avp_db_load and avp_pushto <br>
<br>i have a problem :<br><br>assuming all calls to extension 12001 will be forwarded to extension 12008, in opensers&#39;s database i have added the following :<br><br>username=12001<br><br>domain =mydomain<br><br>attribute = callfwd<br>
<br>value = sip:12008@mydomain<br><br>type = 0<br><br>untill that every thing was fine and all calls comes to 12001 forward to 12008 without any problem , the problem comes from when i am using 12008 to call 12001 it calls itself ( mean 12008) <br>
<br>so anyone can tell me what i have missed ?<br><br>i have configured my openser.cfg like this <br><br>in loaded modules section added <br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
loadmodules &quot;avpops.so&quot;<br></blockquote><br>in module parameter section added :<br><br><blockquote>modparam(&quot;avpops&quot;, &quot;avp_url&quot;, &quot;mysql://openser:openserrw@localhost/openser&quot;)<br><br>
modparam(&quot;avpops&quot;, &quot;avp_table&quot;, &quot;usr_preferences&quot;)<br></blockquote><br>in Invite message handler added : <br><br><br><br><blockquote>if(avp_db_load(&quot;$ru/username&quot;,&quot;$avp(s:callfwd)&quot;)) {<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; avp_pushto(&quot;$ru&quot;, &quot;$avp(s:callfwd)&quot;);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route(1);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br></blockquote>any suggestions ?<br><br><br></div>