qickrooms / red5phone

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

Just a question? "Hangup bevor callee answered the call" #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hey developers, 

i have a little question about a testing issue!
My test scenario is:
I make a call from the sip/flex/java phone over the red5 to a real
phonenumber. The callee does not answer the call, so i hang up in the
browser sip/flex/java phone application.

What happend?
In my test, the red5phone says "Hand up..." but the sip-server does not
hangup. The INVITE state is still there. What happend next, the sip-server
trys to call the number until the callee break up/hang up the call.

It seems to be a bug in the java classes, i think the refuse, cancel and
bye state will be send to the sip-server, but without achievement.

Can anyone reconstruct that?

Original issue reported on code.google.com by michaelpalmer04 on 4 Feb 2009 at 3:03

GoogleCodeExporter commented 9 years ago
Problem is with Cancel message from Mjsip. if your proxy ask Authentication for 
the 
invite the Cseq is 2 while the cancel is with Cseq=1 and there for its not 
Cancel 
the call.

you need to add the following lines in ExtendedInviteDialog.java
if (req.isInvite()) // make sure it's an invite
 this.invite_req=req; // must track last invite so cancel will work correctly - 
fixes 503 from asterisk on cancel

after the code in about line number 258 (look like that in my code)

         if (code==401) ah=digest.getAuthorizationHeader();
         else ah=digest.getProxyAuthorizationHeader();
         req.setAuthorizationHeader(ah);

         if (req.isInvite()) // make sure it's an invite
         this.invite_req=req; // must track last invite so cancel will work 
correctly - fixes 503 from asterisk on cancel

Original comment by lior.her...@gmail.com on 7 Feb 2009 at 4:18

GoogleCodeExporter commented 9 years ago
hey lior, where is this code must be implemented? Specifically, what class is 
it?

Original comment by frenalfa...@gmail.com on 4 May 2011 at 6:48