[OpenSER-Users] Using t_replicate to replicate towards a UA

Pascal Maugeri pascal.maugeri at gmail.com
Wed Jul 16 21:35:15 CEST 2008


Hum it does not look to work...

If I keep the t_replicate("sip:pascal at company.com <sip%3Apascal at company.com>")
it will try resolve the destination with DNS server. I believe I should
resolve first the user SIP URI with the location using USRLOC and then
replicate using the location (eg.: sip:pascal@<host>:<port>) but I don't
know how to do that. I haven't found anything in the module documentation
for that purpose.

Regards,
Pascal

On Wed, Jul 16, 2008 at 3:08 PM, Iñaki Baz Castillo <ibc at in.ilimit.es>
wrote:

> 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> <
> sip%3Apascal at company.com <sip%253Apascal 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><
> sip%3Apascal at company.net <sip%253Apascal 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 <sip%253Apascal at company.com>
>        }
>
> }
>
>
> but not sure if it would work.
>
>
> --
> Iñaki Baz Castillo
> ibc at in.ilimit.es
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openser.org/pipermail/users/attachments/20080716/797a1199/attachment.htm 


More information about the Users mailing list