[Users] Can openser put a Contact header in a response when behave as UAS?
Jose Antonio Garvayo
jglara at gmail.com
Tue Jan 31 09:43:18 CET 2006
Thanks a lot, it worked
On 1/27/06, Bogdan-Andrei Iancu <bogdan at voice-system.ro> wrote:
>
> Hi,
>
> not sure I understand your scenario, but to add something to the
> replies, use texops function append_to_reply() before t_relay():
> http://openser.org/docs/modules/1.1.x/textops.html#AEN180
>
> regards,
> bogdan
>
> Jose Antonio Garvayo wrote:
>
> > Hi,
> >
> > I want to use the openser as a UAS on behalf of a user that's not
> > registered.
> > There's a proxy in the middle that receives an INVITE and find that
> > the user is not registered, and rely the INVITE to the openser.
> > I want the openser to send a 200 OK response, but also to put a
> > Contact in the response so the final ACK will be send also to the
> > openser.
> >
> > I have tried the following:
> >
> > append_hf("Contact: xxxxx:pp");
> > if (t_newtran()) {
> > xlog("UAS logic");
> > append_hf("Contact: xxxxx:pp");
> > t_reply("200","OK");
> > append_hf("Contact: xxxxx:pp");
> > } else sl_reply_error();
> >
> >
> > But still no Contact appears in the 200 OK response.
> >
> > Thanks
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >Users mailing list
> >Users at openser.org
> >http://openser.org/cgi-bin/mailman/listinfo/users
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060131/9dc913f3/attachment.htm>
More information about the sr-users
mailing list