The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

How to process SIP INFO-Messages

You are viewing a single message from this topic. View all messages.

  1. 2009-04-17 11:57:08 UTC
    Thank you very much :) Handled erverything fine!

    Here the code if there are other who need things like that:

    SipPhone tempPhone = a.getParent();
    tempPhone.listenRequestMessage();

    //Process INFO-Message
    RequestEvent event = tempPhone.waitRequest(1000); //wait a second
    if(event != null){
    Request tReq = event.getRequest();
    parent.v("INFO-Message:\n"+tReq.toString());
    if(tReq.toString().indexOf("INFO") >= 0){
    tempPhone.sendReply(event, SipResponse.OK, "OK",
    null, null, 0, null, null, null, null, null);
    }
    if(tReq.toString().indexOf("BYE") >= 0){
    // Process your BYE...
    }
    }


    greetz rul4
< Previous | 1 | Next >

Add a Reply

You can use Markdown syntax in your reply.

Preview

Monitor this

Log in to monitor this topic. Not registered? Create an account to receive email updates when replies are posted to this topic. If you do not log in or register, your reply will be added anonymously.