Hum it does not look to work...
If I keep the t_replicate("sip:pascal@company.com
<sip%3Apascal(a)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(a)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(a)company.com):
t_replicate("sip:pascal@company.com <sip%3Apascal(a)company.com> <
sip%3Apascal(a)company.com <sip%253Apascal(a)company.com>>")gt;>");
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@company.net <sip%3Apascal(a)company.net><
sip%3Apascal(a)company.net <sip%253Apascal(a)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(a)company.com <sip%253Apascal(a)company.com>
}
}
but not sure if it would work.
--
Iñaki Baz Castillo
ibc(a)in.ilimit.es
_______________________________________________
Users mailing list
Users(a)lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users