Can you xlog $avp(callfwd) and $ru? -Laszlo
2013/9/6 Tấn Phát Ngô <[email protected]> > 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@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. > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > -- -- Kind regards, Laszlo Bekesi http://voipfreak.net
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
