[Users] help with uac_redirect
Klaus Darilion
klaus.mailinglists at pernau.at
Fri Aug 26 19:10:25 CEST 2005
Hi Kevin!
Take a look at the lcr module. load_contacts() supports fetching URIs in
branches in AVPs, and the loading them from AVPs in order of their q-values.
regards
klaus
Kevin M. Murphy wrote:
> Greeting all,
> I am currently working at migrating a Vovida deployment to OpenSer, and
> need to keep
> some of the Vovida architecture. I have been messing with the
> uac_redirect module and
> have found it to be almost exactly what i am looking for with one
> exception. I would like to
> fork calls serially based on contacts in a 302, however i have only been
> able to do this in parallel.
> Is there a way to make this happen. Here is some example config stuff,
> Thanks in advance to all.
>
> ----------------------------------------------------------------------
> #test redirect config (to service two vovida Proxyies) :
> # the idea here is that the two ip addresses will query the redirect
> server first and then route apropriately
> # the first host here is invalid, while the second should work,
>
> if (method=="INVITE") {
>
> if(src_ip=="xxx.xxx.xxx.15") {
>
> rewritehostport("xxx.xxx.xxx.20:5066");
>
> #prefix("23801");
>
> append_branch("sip:4439121133 at xxx.xxx.xxx.20:5060");
>
> sl_send_reply("302", "Moved Temporarily");
>
> }
>
> if(src_ip=="xxx.xxx.xxx..20") {
>
> rewritehostport("xxx.xxx.xxx.15:5066");
>
> prefix("23801");
>
>
> append_branch("sip:238014105716405 at xxx.xxx.xxx.20:5060");
>
> sl_send_reply("302", "Moved Temporarily");
>
> }
>
>
>
>
>
> #currently the Proxies have a failed route statment like this:
>
> failure_route[1] {
>
> get_redirects("3:2");
>
> append_branch();
>
> t_relay();
>
> }
>
> ----------------------------------------------------------
>
> The behavior I would like to see is that the first contact is tried,
> and, after failure, the second contact is tried.
>
> Thanks again,
> Kevin
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>
More information about the sr-users
mailing list