What exactly is the appropriate syntax for the value of the ac_extra_hdrs option in K3's 'tm'?
As described here, it is not very clear:
http://www.kamailio.org/docs/modules/3.0.x/modules/tm.html#ac_extra_hdrs
modparam("tm", "ac_extra_hdrs", "myfavoriteheaders-")
What does this mean? Where do I put the header name, and what is the delimeter? Is it a semicolon or colon-separated list? What if, for example, I want to pass X-Alex-Status and X-Alex-Cause in CANCELs and negative ACKs from the original INVITE? Do I use ...
modparam("tm", "ac_extra_hdrs", "X-Alex_Status;X-Alex-Cause")
If so, what is the significance of the '-' in the above example?
Thanks!
Hello,
On 1/22/10 12:27 AM, Alex Balashov wrote:
What exactly is the appropriate syntax for the value of the ac_extra_hdrs option in K3's 'tm'?
As described here, it is not very clear:
http://www.kamailio.org/docs/modules/3.0.x/modules/tm.html#ac_extra_hdrs
modparam("tm", "ac_extra_hdrs", "myfavoriteheaders-")
What does this mean? Where do I put the header name, and what is the delimeter? Is it a semicolon or colon-separated list? What if, for example, I want to pass X-Alex-Status and X-Alex-Cause in CANCELs and negative ACKs from the original INVITE? Do I use ...
modparam("tm", "ac_extra_hdrs", "X-Alex_Status;X-Alex-Cause")
If so, what is the significance of the '-' in the above example?
what I understand from the docs it is about a prefix that can be set, so in your example can be 'X-Alex'
Cheers, Daniel
On 01/22/2010 08:43 AM, Daniel-Constantin Mierla wrote:
If so, what is the significance of the '-' in the above example? what I understand from the docs it is about a prefix that can be set, so in your example can be 'X-Alex'
'X-Alex' or 'X-Alex-'?
My point is that I think the documentation should be clearer about this, and should explicitly say that this value is a prefix. :-)
It is also not very flexible if I wish to use headers that do not share a common prefix.
On 1/23/10 7:52 AM, Alex Balashov wrote:
On 01/22/2010 08:43 AM, Daniel-Constantin Mierla wrote:
If so, what is the significance of the '-' in the above example? what I understand from the docs it is about a prefix that can be set, so in your example can be 'X-Alex'
'X-Alex' or 'X-Alex-'?
in your first email was: modparam("tm", "ac_extra_hdrs", "X-Alex_Status;X-Alex-Cause")
so I got the common prefix.
My point is that I think the documentation should be clearer about this, and should explicitly say that this value is a prefix. :-)
Feel free to propose a better text.
It is also not very flexible if I wish to use headers that do not share a common prefix.
Do not know who implemented and the purpose, probably a list would be better.
Cheers, Daniel