[OpenSIPS-Users] Call Forward on Busy but not to feature server

Mike O'Connor mike at oeg.com.au
Fri Jan 8 10:07:10 CET 2010


'Hi All

The follow does not work, I've never seen an example of anyone trying to
use avp's to do this. All the example I've seen do a 'sethostport' to a
static address and then a t_relay.

        ##      sethostport("192.168.2.100:5060");
        ##      # do not set the missed call flag again
        ##      t_relay();

In the code below $avp(s:callfwdbusy) is currently resolving to '
sip:500101@<local domain>'

failure_route[ONFAILURE_ROUTE] {
        if (t_was_cancelled()) {
                exit;
        }

        if (t_check_status("486|408")) {
                if (is_avp_set("$avp(s:callfwdbusy)")) {
                        if (is_avp_set("$avp(s:callfwdbusy)"))  {
                                $ru = $avp(s:callfwdbusy); < -- Comments
about this line below
                                t_relay();
                        }
                }
        }
}

I've tried a number of command for the line with the comment.

rewriteuri("$avp(s:callfwdbusy)";

This seemed to be the best option but opensips required "" arround it,
but once there it does not convert this string to a value.

Again any help is appreciated.

Cheers
Mike




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100108/d28fb733/attachment.htm 


More information about the Users mailing list