<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'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 "avpops.so"<br></blockquote><br>in module parameter section added :<br><br><blockquote>modparam("avpops", "avp_url", "mysql://openser:openserrw@localhost/openser")<br><br>
modparam("avpops", "avp_table", "usr_preferences")<br></blockquote><br>in Invite message handler added : <br><br><br><br><blockquote>if(avp_db_load("$ru/username","$avp(s:callfwd)")) {<br>
<br> avp_pushto("$ru", "$avp(s:callfwd)");<br><br> route(1);<br><br> exit;<br><br> }<br></blockquote>any suggestions ?<br><br><br></div>