androidsipsip-serverjain-sipmobicents-sip-servlets

Android Emulator Not Sending Sip Register Request To Server


I have build android Sip Stack on using IP address 10.0.2.2 and Port number 5060 and my mobicent-jbossAS7.2 sip-server is running on port 5080 (UDP and TCP both).

I have set the emulator 5554 redirect by using following commands.

telnet localhost 5554

After connected

redir add udp:5080:5060 OK Now I run the application on emulator. I donot get the response. I am using windows 7(32-bit).

Am I using the redir command correctly? Correct my understanding please,if I am wrong. 5080 on redir command is the port of development machine and 5060 is the emulated system.


Solution

  • I found the mistake that I was doing was, redir command was redirecting wrong. Since I have to redir from emulator(5070 Port) to server(5080 Port).

    I change to this

    redir add udp:5070:5080
    

    instead of

    redir add udp:5080:5070

    Since I have to recieve response from server therefore server has to redirect my packets to my emulator. here, the link I solved my problem