adilismail / imsdroid

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

Get Message Header Values #274

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
a) Before posting your issue you MUST answer to the questions otherwise it
will be rejected (invalid status) by us
b) Please check the issue tacker to avoid duplication
c) Please provide network capture (wireshark) or Android log (DDMS output)
if you want quick response

What steps will reproduce the problem?
1.In the SIP Server, add "Credit-amount" field into Register Response Message 
header.
2.Imsdroid 2.0 Register

What is the expected output? What do you see instead?
Can not get the "Credit-amount" by code:
    public int OnDialogEvent(DialogEvent e) {
    SipMessage sipMessage = e.getSipMessage();
    if (sipMessage != null) {
         String amounts = sipMessage.getSipHeaderValue("Credit-amount");
             .....
        }

And I also can not get the "CSeq" Value by the same code.

Please help me!

What version of the product are you using? On what operating system?
IMSdroid 2.0, android 2.1

Please provide any additional information below.

Original issue reported on code.google.com by santongs...@gmail.com on 10 Aug 2011 at 9:03

Attachments:

GoogleCodeExporter commented 9 years ago
oh, I have resolved this prob. I put the getSipHeaderValue into error Callback, 
should be put it into OnRegistrationEvent. 

Original comment by santongs...@gmail.com on 11 Aug 2011 at 2:51

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 7 Sep 2011 at 9:11