2009/6/3 David Roberge <[email protected]>: > 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 <[email protected]> _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
