Hello,
probably you can use {line} transformation in a while loop:
* https://www.kamailio.org/wiki/cookbooks/devel/transformations#lineat_pos
Skip first one and go until the line is only "\r\n", which marks the end of the headers.
For each line test if it starts with [a-zA-Z] and take the name with {s.select,0,:}.
The alternative is to use embedded interpreters for other scripting languages that provide more string parsing flexibility, like app_lua, app_python, ...
Cheers, Daniel
On 04.06.21 22:14, Evan Verma wrote:
hello! new to working with sip/kamailio. I am currently trying to get a list of all of the header names on the invite the SBC receives. I am having trouble finding a way to do this. Does anyone know of a good solution?
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: