-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fully support IMS headers #105
Comments
Hi @jaimecasero, Please help me to understand this requirement correctly: public Host getICIDGeneratedAt(); public Host getOriginatingIOI(); public Host getTerminatingIOI(); And those interfaces need to be implemented in PChargingVector.java Thank for your help :) |
Not exactlly.. There are a number of IMS headers which doesnt currently support full specifications in terms of parsing grammar. In particular the parameters related to IPv6 addresses are not implemented, so people wanting to use these headers with IPv6 addresses are not supported. Taking PChargingVectorHeader example, the specifications covers an special params with "gen-value" definition. This rule coming from 3261 is: So, any of these param should support IPv6. The issue is that if you try to parse such a header, there is a parsing exception,because of different expected char sets.. This issue comes from SOIssue .There you will see and example of this parsing failure. So, you should start by defining a unit test including this header value, to ensure is failing with current impl. Then you need to investigate the JAIN-SIP stack parsing layers, and introduce any modifications to support rule "host = hostname / IPv4address / IPv6reference" including IPv6. This parsing layer is complex, so take your time and feel free to ask me. am i explaining myself? |
Hi @jaimecasero , It's really clear now. Thank for your help. if I have any more further question, I will ask you directly here. |
Great. The parsing layers is an intrincate class hierarchym so if you start from PChargingVectorParser, you will ge to the core classes ParserCore |
#105 Jain-sip support IPV6address parsing for P Charging Vector header
https://tools.ietf.org/html/rfc3455#section-5.6
Currently we just support gen-value with toke nor quotedString, but not host, so we lose capability to parse IPv6 addresses
The text was updated successfully, but these errors were encountered: