<div dir="ltr"><div><div>Can you xlog $avp(callfwd) and $ru?<br></div><br></div>-Laszlo<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/6 Tấn Phát Ngô <span dir="ltr"><<a href="mailto:phat.wu@gmail.com" target="_blank">phat.wu@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div>I want to forward call to client C when client A calls client B in a specified time, example: after 17h30........specified time is optional.</div>
<div>I implement as Building Telephony Systems with OpenSIPS 1.6 but not work (when client A calls client B, it's not forwarding to client C).</div>
<div><br></div><div>My opensips_residential.cfg:</div><div><div><div>#### AVP module</div><div>loadmodule "avpops.so"</div><div>modparam("avpops", "db_url", "mysql://opensips:opensipsrw@localhost/opensips") # CUSTOMIZE ME</div>
<div>modparam("avpops", "avp_table", "usr_preferences")</div></div><div><br></div><div><br></div><div># apply DB based aliases</div><div>alias_db_lookup("dbaliases");</div><div> # apply blind forward<br>
</div><div>if(avp_db_load("$ru","$avp(callfwd)")) {</div><div> $ru = $avp(callfwd);</div><div> xlog("forwarded to: $avp(callfwd)");</div><div> route(relay);</div><div> exit;</div>
<div>}</div></div><div><br></div><div>After that, I create AVP by using command:</div><div>./opensipsctl avp add -T usr_preferences clientB callfwd 0 sip:clientC@my_opensips_proxy<br></div><div>And restart OpenSIPs server.</div>
<div><br></div><div>But when I test, it doesn't work. I'm using OpenSIPs 1.9.1 and I don't know why it doesn't work. Can you suggest some solutions or examples for configuring like this?</div><div><br></div>
<div>Thank you so much and sorry for my bad english.</div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div><div><div><br>--<br></div>Kind regards,<br></div>Laszlo Bekesi<br></div><a href="http://voipfreak.net" target="_blank">http://voipfreak.net</a><br>
</div>
</div>