El Wednesday 16 July 2008 21:35:15 Pascal Maugeri escribió:
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.
Let me a question (since I've never tryed t_replicate):
- Does t_replicate just allow as argument a IP:port and not a domain/hostname?
- In the second case: does it allow a SIP URI with userinfo and so? (I
think "no" due to your original mail).
In the worst case: t_replicate just allows an IP:PORT as argument you could
try the following in two ways:
a)
1 - Add a new listen port to OpenSer (port=6060).
2 - Use "t_replicate(OPENSER_PUBLIC_IP:6060)
3 - In the login of OpenSer allow requests to OPENSER_PUBLIC_IP:6060 without
authentication just in case it comes from OPENSER_PUBLIC_IP:5060.
4 - In the request processing change the RURI to "sip:pascal@company.com", do
the "lookup" and "t_relay".
b)
1 - Before t_replicate add a header "X-Replicated: yes"
2 - "t_replicate(OPENSER_PUBLIC_IP:5060) <-- no other port needed.
3 - Because the request comes from OPENSER_PUBLIC_IP:5060 and has
a "X-Replicated: yes" header:
4 - In the request processing change the RURI to "sip:pascal@company.com", do
the "lookup" and "t_relay".
Could it work?
--
Iñaki Baz Castillo
ibc(a)in.ilimit.es