Hello all,
Is there a way to set Organization: within SIP header? I know how to change user_agent_header and server_header but I'd rather not do that. Also I know I could do append_hf, but is there an organization_header?
Thanks,
Skyler
Skyler writes:
Is there a way to set Organization: within SIP header? I know how to change user_agent_header and server_header but I'd rather not do that. Also I know I could do append_hf, but is there an organization_header?
i don't know what you mean by "within SIP header", but you can use append_hf function to add whatever header (a standard one or your own).
-=- juha
Hi,
On Sat, 2011-10-15 at 18:37 +0300, Juha Heinanen wrote:
Skyler writes:
Is there a way to set Organization: within SIP header? I know how to change user_agent_header and server_header but I'd rather not do that. Also I know I could do append_hf, but is there an organization_header?
i don't know what you mean by "within SIP header", but you can use append_hf function to add whatever header (a standard one or your own).
-=- juha
I mean, is there a way to add an Organization Header Field without using append_hf function in script.
Example, organization_header="Organization: Company Name"
S.
On Sat, 2011-10-15 at 19:19 +0300, Juha Heinanen wrote:
Skyler writes:
I mean, is there a way to add an Organization Header Field without using append_hf function in script.
Example, organization_header="Organization: Company Name"
i don't think there is any other way.
-- juha
Ok, Thanks :)
S.
Hello,
actually the user_agent_header and server_header can take more than one header. You can just put as many as you want separately by \r\n (without the last \r\n). Try like:
user_agent_header="Organization: My Company\r\nUser-Agent: ..."
But be aware that these headers are used for messages generated by kamailio, not added to messages that are proxied. For proxied traffic you have to use append_hf().
Cheers, Daniel
On 10/15/11 7:14 PM, Skyler wrote:
On Sat, 2011-10-15 at 19:19 +0300, Juha Heinanen wrote:
Skyler writes:
I mean, is there a way to add an Organization Header Field without using append_hf function in script.
Example, organization_header="Organization: Company Name"
i don't think there is any other way.
-- juha
Ok, Thanks :)
S.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Daniel,
Thanks! That works perfectly.
S.
On Mon, 2011-10-17 at 09:53 +0200, Daniel-Constantin Mierla wrote:
Hello,
actually the user_agent_header and server_header can take more than one header. You can just put as many as you want separately by \r\n (without the last \r\n). Try like:
user_agent_header="Organization: My Company\r\nUser-Agent: ..."
But be aware that these headers are used for messages generated by kamailio, not added to messages that are proxied. For proxied traffic you have to use append_hf().
Cheers, Daniel
On 10/15/11 7:14 PM, Skyler wrote:
On Sat, 2011-10-15 at 19:19 +0300, Juha Heinanen wrote:
Skyler writes:
I mean, is there a way to add an Organization Header Field without using append_hf function in script.
Example, organization_header="Organization: Company Name"
i don't think there is any other way.
-- juha
Ok, Thanks :)
S.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users