Ugh... avps....I absolutely can't follow the docs on avp's. I have -no idea- 
what that's all about.

-----Original Message-----
From: Klaus Darilion [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 14, 2005 8:58 AM
To: Douglas Garstang
Cc: [email protected]
Subject: Re: [Users] Routing Examples


Douglas Garstang wrote:
> I'm having a terrible time trying to get failure routes to work. Can someone 
> point me to some USEFUL examples please? The examples that come with OpenSER 
> are trivial. They all use append_branch("sip:[EMAIL PROTECTED]") which in the 
> real world is barely useful. I need to try sending messages to a specified 
> host with the current user's URI.
> 
> For example, is this the correct usage for trying to connect in sequence to 
> multple destinations?
> 
> rewritehostport("192.168.10.7:5060");
> append_branch();
> t_on_failure("2");
> t_relay();
> 
> failure_route[2] {
>       rewritehostport("192.168.10.7:5060");
>       append_branch();
>       t_relay();
> }
> 
> The second route is never tried. In general, what should I be doing here? 
> Which is correct?


I use:

failure_route[1] {

        # send to voicemail in format sip:<extension>@1.2.3.4:5061
         avp_pushto("$ruri/username","$extension");
         sethostport("1.2.3.4:5061");
         append_branch();
         t_relay();
}

klaus

> 
> rewritehostport(ip-addr)
> append_branch()
> t_relay()
> 
> or maybe...
> append_branch(ip-addr)
> t_relay()
> 
> or maybe...
> append_branch(ip-addr1)
> append_branch(ip-addr2)
> t_relay()
> 
> Do you get my point? The docs are really bad and don't cover exactly how this 
> stuff is supposed to be implemented! if I do a google search on this stuff, I 
> get almost no matches. There's no books either. I'm out of ideas.
> 
> I'm just trying to connect to multiple destinations in sequence....
> 
> 
> 
> 
> _______________________________________________
> Users mailing list
> [email protected]
> http://openser.org/cgi-bin/mailman/listinfo/users
> 
> 


_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to