Thanks a lot, it worked
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@openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>