El Wednesday 16 July 2008 14:59:51 Pascal Maugeri escribió:
> Hi
>
> Is it possible to replicate incoming SIP requests (eg. REGISTER) to another
> remote user SIP URI instead of host URI:
>
> For instance I want to do (having previously registered to OpenSER the user
> [EMAIL PROTECTED]):
>
>   t_replicate("sip:[EMAIL PROTECTED] <[EMAIL PROTECTED]>");
>
> instead of
>
>   t_replicate("sip:10.2.3.4:5060");
>
>
> I tried it with OpenSER 1.3 but I get the error message when it tries to
> replicate:
>
>  3(8113) Main routing block. Method [REGISTER]
>  3(8113) ERROR: mk_proxy: could not resolve hostname: "company.com"
>  3(8113) ERROR: uri2proxy: bad host name in URI
> <sip:[EMAIL PROTECTED]<[EMAIL PROTECTED]>

I don't know if t_replicate generates a request than runs 
into "on_branch_route", but if that works then you could process 
on_branch_route, so both request run it separately and match the set URI, 
something as:

 t_replicate("sip:1.1.1.1:5060");  <-- facked URI


on_branch_route[X] {

        if $ru == "sip:1.1.1.1:5060" {
                $ru = [EMAIL PROTECTED]
        }

}


but not sure if it would work.


-- 
Iñaki Baz Castillo
[EMAIL PROTECTED]

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

Reply via email to