[OpenSER-Users] Using t_replicate to replicate towards a UA
Iñaki Baz Castillo
ibc at in.ilimit.es
Wed Jul 16 15:08:31 CEST 2008
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
> pascal.maugeri at company.com):
>
> t_replicate("sip:pascal at company.com <sip%3Apascal at company.com>");
>
> 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:pascal at company.net<sip%3Apascal at company.net>
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 = sip%3Apascal at company.com
}
}
but not sure if it would work.
--
Iñaki Baz Castillo
ibc at in.ilimit.es
More information about the sr-users
mailing list