[OpenSIPS-Users] t_relay() for Tel-URI

Iñaki Baz Castillo ibc at aliax.net
Wed Jun 3 18:06:14 CEST 2009


2009/6/3 David Roberge <droberge at xittel.net>:
> Hi OpenSIPS users,
>
> I have a UAC sending OpenSIPS a SIP INVITE with a SIP RURI.  I need OpenSIPS
> to rewrite the SIP RURI into a TEL RURI and statefully relay this message to
> the UAS.
>
> Can I use the t_relay() function to forward the modified INVITE to the UAS?

Yes (see below)


> Since the TEL RURI does not contains any domain part, how OpenSIPS will be
> able to forward the message to the correct destination?

That's the point. A TEL URI has no information about the real
destination of itself. What your proxy must do is:
- Change the RURI (from SIP to TEL).
- Set the $du variable which is the *real* destination of the request.
  Example:  $du = "sip:1.2.3.4:5080";
- Do "t_relay()".

:)


-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the Users mailing list