Re: "utran-cell-id-3gpp" parameter not appended in P-Access-Network-Info header

Becky McElroy <[email protected]> Wed, 30 May 2007 00:23:40 -0400
Newsgroups gmane.comp.voip.nist-sip
Message-ID <[email protected]>
Hi Antonio,

The problem is that SipUnit doesn't have the final JainSipRi1.2.jar with 
all the IMS header support (although your program does). When you call 
sipCall.initiateOutgoingCall() with the additionalHeaders String 
ArrayList, initiateOutgoingCall() ends up invoking 
HeaderFactory.createHeader() (the one in the 
sipunit/lib/JainSipRi1.2.jar) with the anih.toString() from 
additionalHeaders but that createHeader() can't generate the proper 
header because it doesn't have the required IMS header support.

There are a couple of different workarounds for this, until I 
repackage/release SipUnit with the latest JainSipRi1.2.jar:
    1) replace the JainSipRi1.2.jar in your sipunit/lib with the latest 
JainSipRi1.2.jar which I can provide you or you can get the jain-sip 
project from dev.java.net CVS repository and build the jar from there;
or  2) try calling the other initiateOutgoingCall() method where the 
additionalHeaders is an ArrayList of javax.sip.header.Header, in which 
case you don't have to convert anih to a string and sipunit doesn't have 
to convert it back into a Header.

Good find, thanks for reporting that. Sorry for the inconvenience-
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
>
>  
>