[sip-comm-dev] Request setMethod exception


#1

Hi all,

I have implemented SipListener interface in my program. I want to call "void
processRequest(RequestEvent requestevent) method".
For this, i m creating RequestEvent object say reqEvent and also Request
object say req.
Now, when i setMethod using req.setMethod("INVITE"). It gives me a
nullPointer exception.

has anybody faced such problem before. Plz send me a sample code which
works.
Actually, i m new to SIP.
plz help

Thanks in advance.


#2

Rohan,

Please consult src/net/java/sip/communicator/impl/protocol/sip/OperationSetBasicTelephonySipImpl.java
on the subject of creating Requests. Look for references to the method
createRequest and among them there are ones which create INVITE
requests by calling createRequest(Request.INVITE).

Regards,
Lubo

ยทยทยท

On Fri, Oct 17, 2008 at 3:52 PM, Rohan Solanki <solanki.rohan@gmail.com> wrote:

Hi all,

I have implemented SipListener interface in my program. I want to call "void
processRequest(RequestEvent requestevent) method".
For this, i m creating RequestEvent object say reqEvent and also Request
object say req.
Now, when i setMethod using req.setMethod("INVITE"). It gives me a
nullPointer exception.

has anybody faced such problem before. Plz send me a sample code which
works.
Actually, i m new to SIP.
plz help

Thanks in advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net