Re: "utran-cell-id-3gpp" parameter not appended in P-Access-Network-Info header
Becky McElroy <[email protected]> Tue, 22 May 2007 10:47:37 -0400
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
Hello-
The bad header you're seeing:
P-Access-Network-Info: ; 3GPP-UTRAN-TDD
is coming when SipUnit calls javax.sip.header.HeaderFactory.createHeader(
header_name.trim(), value.trim());
where header_name = "P-Access-Network-Info" and value = "3GPP-UTRAN-TDD;
utran-cell-id-3gpp=208021D0F1234567".
Apologies to the NIST LIST but I haven't been keeping up with IMS header
discussions. Is this the wrong way to get the header in this case (IMS
header), when given a string that could by any kind of header? (IMS or
non-IMS)
(Note, if SipUnit is doing the right thing, inside createHeader is this
snippet
StringMsgParser smp = new StringMsgParser();
SIPHeader sipHeader = smp.parseSIPHeader(hdrString);
if (sipHeader instanceof SIPHeaderList)
{
}
and the instance check is returning false in the problem scenario - is
it correct? This is as far as I looked.)
Thanks for any help,
Becky
Antonio Buonamassa wrote:
>Hi everybody,
>
>I've come to a strange result when trying to add a P-Access-Network-Info header
>in my request using JAIN SIP 1.2 (which supports IMS headers).
>Here is a part of my code (try-catch blocs have been removed for lisibility):
>
>
>ArrayList<String> additionalHeaders = new ArrayList<String>();
>
>HeaderFactoryImpl hfi = new HeaderFactoryImpl();
>AccessNetworkInfoHeader anih hfi.createAccessNetworkInfoHeader();
>anih.setAccessType(AccessNetworkInfoHeader.GGGPP_UTRAN_TDD);
>anih.setUtranCellID3GPP("208021D0F1234567");
>additionalHeaders.add(anih.toString());
>
>SipCall sipCall = mySipPhone.createSipCall();
>sipCall.initiateOutgoingCall("sip:[email protected]","sip:[email protected]",
>viaNonProxyRoute, sdpContent, "application", "sdp", additionalHeaders, null);
>
>
>Now, when I launch my whole program and do a Wireshark/Ethereal capture, here is
>what I get in the INVITE request :
>
>P-Access-Network-Info: ; 3GPP-UTRAN-TDD
>
>The P-Access-Network-Info header was inserted with the right access-type, but
>the "utran-cell-id-3gpp" parameter is not appended. Worst, there is a ";" which
>break the syntax correctness. I should get:
>
>P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=208021D0F1234567
>
>Any idea where the problem is? From my code or from the JAIN SIP RI 1.2 ?
>
>Thanks for your help.
>
>Antonio
>
>
>
>
>_______________________________________________
>nist-sip mailing list
>[email protected]
>http://www-x.antd.nist.gov/mailman/listinfo/nist-sip
>
>
>