Hi Joachim,
see append_to_reply() function http://www.openser.org/docs/modules/0.10.x/textops.html#AEN168
note that save() internally sends the 200 ok, so you need to call append_to_reply() before save()
regards, bogdan
Joachim Fabini wrote:
Hi,
Again, complete newbie question (honestly, I searched the OpenSER and SER archives and did not find an answer ;):
(How) can OpenSER add a new header field into the registrar's 200 OK status message in reply to a successful REGISTER? (New header field meaning that the header line was not present in the REGISTER).
What I tried so far is to add the field in two ways:
- Added the field to the incoming REGISTER message
while doing the main processing using append_hf(). The new header field is not included into the 200 OK.
- Added the field within the OnReply_Route[1] block
(triggered). But apparently OpenSER does invoke the OnReply_Route only for incoming status messages. When the code is invoked by a proxy on traversing status messages it works perfectly, for the registrar it does not.
Any idea how to modify Registrar-outgoing status messages?
Many thanks in advance, --Joachim
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users