I have written a softphone which can communicate with a PBX (simulated by SIPp). For this I use the jain-sip frameworkt for java. My problem is, that jain-sip sends sip messages automatically. For example, after receiving a RE-INVITE message my program sends an OK message back, but jain-sip sends automatically a TRYING message back. Why???
Jain-sip sends also some OK messages automatically. See call flow below (the PBX is sending the INVITE message to my softphone app):
- INVITE -->
- <-- TRYING
- <-- RINGING
- <-- OK/SDP (port number 2000)
- ACK -->
Sending RTP on port 2000
RE-INVITE -->
- <-- TRYING
- <-- OK/SDP (port number 2002)
- ACK -->
- Sending RTP on port 2002
- <-- OK/SDP (port number 2000) // jain-sip sends this message automatically!!!
- ACK -->
- Sending RTP on port 2000 // now the rtp data go to the wrong port
- <-- OK/SDP (port number 2000) // and again jain-sip sends an ok message automatically
- ACK -->
- Sending RTP on port 2000 // rtp data go to the wrong port
- BYE -->
- <-- OK
Why does jain-sip send messages automatically? Have I done something wrong, or is it possible to disable the automatic sending of sip messages?