[OpenSIPS-Users] Error with blind call forwarding using avpops

Tấn Phát Ngô phat.wu at gmail.com
Fri Sep 6 16:28:56 CEST 2013


Hi all,
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.
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).

My opensips_residential.cfg:
#### AVP module
loadmodule "avpops.so"
modparam("avpops", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")
# CUSTOMIZE ME
modparam("avpops", "avp_table", "usr_preferences")


# apply DB based aliases
alias_db_lookup("dbaliases");
 # apply blind forward
if(avp_db_load("$ru","$avp(callfwd)")) {
       $ru = $avp(callfwd);
       xlog("forwarded to: $avp(callfwd)");
       route(relay);
       exit;
}

After that, I create AVP by using command:
./opensipsctl avp add -T usr_preferences clientB callfwd 0
sip:clientC at my_opensips_proxy
And restart OpenSIPs server.

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?

Thank you so much and sorry for my bad english.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130906/fe1c07bb/attachment.htm>


More information about the Users mailing list