search for: passertedid

Displaying 1 result from an estimated 1 matches for "passertedid".

2009 Nov 29
3
Parsing custom SIP headers
...r=${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 = "P-Asserted-Identity" HCOLON PAssertedID-value *(COMMA PAssertedID-value) PAssertedID-value = name-addr / addr-spec ---cut--- so I guess SIP_PARSE_HEADER() would need an index argument, just like SIP_HEADER(). Proper parsing could be done in an AGI() script...