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>")>");
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@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
}
}
but not sure if it would work.
--
Iñaki Baz Castillo
ibc(a)in.ilimit.es