On Apr 6, 2008, at 5:33 PM, kokoska rokoska wrote:
Thank you very much, Brian, for super tip!
I know I can append headers (yout wrote it to me few days ago :-), but I
didn't know how to modify replies. And if config above will work, it
is exactly what I need.
BTW: Is there a way how to get contents of SIP headers on incoming
INVITEs? (I'm wondering especially on standard "Diversion" header -
parameters "reason" and "counter" - and nonstandard but widely used
"X-HopCounter" header.)
Do you have any hints here?
Isn't this what Max-Forwards header is for? Inbound Diversion is sip_h_diversion variable.
We already kill the call if the Max-Forwards makes it to zero.
/b