Displaying 1 result from an estimated 1 matches for "sip_parse_head".
Did you mean:
sip_parse_header
2009 Nov 29
3
Parsing custom SIP headers
...plan using nothing but CUT().
It's so easy to make false assumtions about angle brackets (< >),
whitespace (LWS), quotes (") around the display-name, character
escaping etc. All of the applications of CUT() I have seen are
way too simplistic.
Example of how it could work:
Set(addr=${SIP_PARSE_HEADER(${SIP_HEADER(P-Asserted-Identity)},addr-spec)});
Interesting parts include:
name-addr, display-name, addr-spec, scheme, userinfo, user,
telephone-subscriber, host, hostname, port, ...
Actually headers like P-Asserted-Identity can even have more then
one value.
---cut---
PAssertedID = &quo...