Module: sip-router Branch: master Commit: 09441e89d3bb10d7a4b8c0192e429a8ca1827461 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=09441e89...
Author: Hugh Waite hugh.waite@crocodile-rcs.com Committer: Hugh Waite hugh.waite@crocodile-rcs.com Date: Mon Mar 11 16:55:23 2013 +0000
parser,modules/pv,modules/sipcapture: Improved parsing of P-Asserted/Preferred-Identity headers
parser: - Abstracted addr-spec parsing from parse_to.c into new file. (parse_addr_spec.c) - Added support for comma separated addr-spec values. - Created new P-Asserted-Identity and P-Preferred-Identity header parsers that parse all instances and allows comma separated values. modules/pv: - Added PV index to $ai, $pu, $pU, $pd and $pn variables to retreive the n'th URI instance. E.g. $(ai[1]) modules/sipcapture: - Updated to use the new structure - Maintains previous behaviour - only uses the first URI
---
lib/kcore/parse_pai.c | 77 -- lib/kcore/parse_ppi.c | 119 --- lib/kcore/parse_ppi.h | 53 -- modules/pv/pv.c | 10 +- modules/pv/pv_core.c | 142 +++- modules/sipcapture/sipcapture.c | 52 +- parser/hf.c | 5 +- parser/parse_addr_spec.c | 926 +++++++++++++++++++++++ parser/parse_addr_spec.h | 70 ++ parser/parse_ppi_pai.c | 211 +++++ lib/kcore/parse_pai.h => parser/parse_ppi_pai.h | 38 +- parser/parse_to.c | 797 +------------------- parser/parse_to.h | 29 +- 13 files changed, 1381 insertions(+), 1148 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=0944...