jcktej / jdiameter

Automatically exported from code.google.com/p/jdiameter
0 stars 0 forks source link

Add Session Release Cause AVP to the AVP Dictionary for Gx RAR #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When sending a Gx RAR with Session-Release-Cause AVP set the following error 
happens:
2013-05-02 13:57:13,042 WARN  [org.mobicents.diameter.dictionary.AvpDictionary] 
AVP with code 1045 and Vendor-Id 10415 not present in dictionary!
2013-05-02 13:57:13,042 WARN  [com.smilecoms.pcrf.sbb.PCRFSbb] Error processing 
HTTP POST event: [{}]
java.lang.NullPointerException
        at net.java.slee.resource.diameter.base.events.avp.AvpUtilities.createAvp(AvpUtilities.java:2475)
        at net.java.slee.resource.diameter.base.events.avp.AvpUtilities.createAvpInternal(AvpUtilities.java:2511)
        at net.java.slee.resource.diameter.base.events.avp.AvpUtilities.createAvp(AvpUtilities.java:2293)
        at com.smilecoms.pcrf.sbb.PCRFSbb.onPost(PCRFSbb.java:1346)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.invokeEventHandler(SbbEntityImpl.java:481)
        at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:379)
        at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:126)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)

to fix this add session release cause AVP to the Diameter dictionary under Gx.

Add:

 <avpdefn name="Session-Release-Cause" code="1045" mandatory="must"    may-encrypt="yes" protected="may" vendor-bit="must" vendor-id="TGPP">
    <type type-name="Enumerated">
            <enum name="UNSPECIFIED_REASON" code="0" />
            <enum name="UE_SUBSCRIPTION_REASON" code="1" />
                        <enum name="INSUFFICIENT_SERVER_RESOURCES"  code="2" />
        </type>
    </avpdefn>

And add to the Re-Auth-Request definition:
<avp name="Session-Release-Cause" code="1045" vendor="10415" multiplicity="1" 
index="-1" />

Original issue reported on code.google.com by richard....@smilecoms.com on 2 May 2013 at 12:31

GoogleCodeExporter commented 9 years ago

Original comment by brainslog on 15 Dec 2013 at 12:44

GoogleCodeExporter commented 9 years ago

Original comment by brainslog on 15 Dec 2013 at 12:44

GoogleCodeExporter commented 9 years ago
This issue was fixed by revision c7425c49fd88.

Original comment by brainslog on 15 Dec 2013 at 12:48