showrav017 / jain-sip

Automatically exported from code.google.com/p/jain-sip
0 stars 0 forks source link

Failed to add cancel to example #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I have tried to add a cancel to the default mobicents example by using the 
following code:
var jainSipCancelRequest=this.jainSipInvitingTransaction.createCancel();
            jainSipCancelRequest.addHeader(this.jainSipContactHeader);
            jainSipCancelRequest.addHeader(this.jainSipUserAgentHeader);
        var jainSipClientTransaction = this.sipProvider.getNewClientTransaction(jainSipCancelRequest);
            jainSipCancelRequest.setTransaction(jainSipClientTransaction);
jainSipClientTransaction.sendRequest();            

What is the expected output? What do you see instead?
Exception is raised complaining about "could not find original tx to cancel. 
RFC 3261 9.1"

But if I change last line to:
jainSipClientTransaction.sendMessage(jainSipCancelRequest);

Everything works.

What version of the product are you using? On what operating system?
Latest svn version

Please provide any additional information below.

Original issue reported on code.google.com by sergio.g...@gmail.com on 23 Jan 2013 at 11:01

GoogleCodeExporter commented 8 years ago

Original comment by laurent....@gmail.com on 24 Jan 2013 at 4:23

GoogleCodeExporter commented 8 years ago

Original comment by laurent....@gmail.com on 24 Jan 2013 at 10:37