man2015 / red5phone

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

calling to the same user that called you not working - solution #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. login and register 2 different users. Lets call the A and B
2. call from A to B
3. accept in B
4) hangup in B
5) try to call from B to A
Error -> no incoming call.

What is the expected output? What do you see instead?
Incoming call should appear.

What version of the product are you using? On what operating system?
red5 0.8.0

Please provide any additional information below.

The solution:
in SIPUserAgent.java class you need to do following changes:

1) add call cancel as below:

 public void call( String target_url ) {

        printLog( "call", "Init..." );

        changeStatus( UA_OUTGOING_CALL );

        if (call != null) {
            printLog( "call", "cancelling old object:" + this.call);
            this.call.cancel();
        }
        call = new ExtendedCall( sipProvider, userProfile.fromUrl, 
                userProfile.contactUrl, userProfile.username,
                userProfile.realm, userProfile.passwd, this );

2) add call cancell as below:

 public void listen() {

        printLog( "listen", "Init..." );

        changeStatus( UA_IDLE );

        if (call != null) {
            printLog( "listen", "cancelling old object:" + this.call);
            this.call.cancel();
        }
        call = new ExtendedCall( sipProvider, userProfile.fromUrl, 
                userProfile.contactUrl, userProfile.username,
                userProfile.realm, userProfile.passwd, this );

Original issue reported on code.google.com by Marcin.B...@gmail.com on 9 Oct 2009 at 2:56

GoogleCodeExporter commented 9 years ago
Marcin, you are a star (#). Thanks for fixing that.

Original comment by olajide....@gmail.com on 10 Oct 2009 at 11:38