Hello,
Can you paste here the full header as it is received? It will help to see if something is wrong with it or with the code.
Cheers, Daniel
On 09/12/13 16:44, Flavio Battimo wrote:
Hello,
i'm encountering a matter while receiving an INVITE from a third-party proxy module to the Kamailio s-cscf module (version: kamailio 4.1.0 (x86_64/linux) 350d2e)
Accordling to the RFC3325 section 9.1 The P-Asserted-Identity Header,
The P-Asserted-Identity header field is used among trusted SIP entities (typically intermediaries) to carry the identity of the user sending a SIP message as it was verified by authentication. PAssertedID = "P-Asserted-Identity" HCOLON PAssertedID-value *(COMMA PAssertedID-value) PAssertedID-value = name-addr / addr-spec A P-Asserted-Identity header field value MUST consist of exactly one name-addr or addr-spec.
In our scenario the received INVITE contains a P-Asserted-Identity header with an addr-spec value format, so without angle brackets, as described in RFC2822
In Kamailio log I see that it rejects this header asserting it is malformed.
Dec 9 14:22:57 IMSCore-ve /usr/sbin/kamailio[2410]: DEBUG: <core> [mem/q_malloc.c:369]: qm_malloc(): qm_malloc(0x7f271cded010, 72) called from <core>: parser/parse_rr.c: do_parse_rr_body(72) Dec 9 14:22:57 IMSCore-ve /usr/sbin/kamailio[2410]: DEBUG: <core> [mem/q_malloc.c:415]: qm_malloc(): qm_malloc(0x7f271cded010, 72) returns address 0x7f271cebf510 frag. 0x7f271cebf4e0 (size=72) on 1 -th hit Dec 9 14:22:57 IMSCore-ve /usr/sbin/kamailio[2410]: ERROR: <core> [parser/parse_rr.c:82]: do_parse_rr_body(): parse_rr(): Error while parsing name-addr (sip:+39******10@ims.example.net) Dec 9 14:22:57 IMSCore-ve /usr/sbin/kamailio[2410]: DEBUG: <core> [mem/q_malloc.c:439]: qm_free(): qm_free(0x7f271cded010, 0x7f271cebf510), called from <core>: parser/parse_rr.c: do_parse_rr_body(141) Dec 9 14:22:57 IMSCore-ve /usr/sbin/kamailio[2410]: DEBUG: <core> [mem/q_malloc.c:474]: qm_free(): qm_free: freeing frag. 0x7f271cebf4e0 alloc'ed from <core>: parser/parse_rr.c: do_parse_rr_body(72) Dec 9 14:22:57 IMSCore-ve /usr/sbin/kamailio[2410]: CRITICAL: <core> [ims_getters.c:408]: cscf_get_asserted_identity(): WARN:cscf_get_asserted_identity: P-Asserted-Identity header must contain a Nameaddr!!! Fix the client!
Can you confirm this issue?