[SIPForum-discussion] plz help setting source port of a registerrequest

Nittin Dutt Nittin.Dutt at csr.com
Wed Nov 28 09:58:26 UTC 2007


I think you have to bind the 5060 port to the socket you are using to
send.

In standard Socket API the function is simply 'bind(...)', you may have
to look for the equivalent in your Socket APIs.

 

Cheers,

Nittin Dutt

 

________________________________

From: discussion-bounces at sipforum.org
[mailto:discussion-bounces at sipforum.org] On Behalf Of maruf syfullah
Sent: 27 November 2007 09:49
To: discussion at sipforum.org
Subject: [SIPForum-discussion] plz help setting source port of a
registerrequest

 

Hi!

I develop a simple SIP client.
I have understood the docs, examples, but I can't catch any responses.

When I made a trace, I saw that my messages have sent from source port
eg. 1239,   destination port is OK though.

-->  User Datagram Protocol, Src Port: 1239 (1239), Dst Port: 5060
(5060)

Of course I want port 5060 as source AND destination port, so I call
        scn = (SipConnectionNotifier)Connector.open("sip:5060");

But my messages have been sent from a random port, so the answers arrive
to this port.
My listener (which listens to port 5060) never catches anything!
How can I set the port, which I send on?

I found some dudes who also suffered from this:
http://forum.java.sun.com/thread.jspa?threadID=5117248&tstart=255
http://www.easylib.org/English/j2me/General/18712.html

Really no idea...

Does anyone can help?

thanks in advance!!

 

To report this email as spam click here
<https://www.mailcontrol.com/sr/3inT41sxi3xcKmfvVhs7TIYT2do2dG4!gIATCFGy
bk6+!THV!!5IFSbLea8QH9MtvlSBeGKosWz35axmu7jd+2XRHEHpgo8DpzMlSSUAJ6N27qju
c2e9KOeBL8UrsL3JWYh5e5quDek9s3ItjJu+sONg7B3dWMkhfqkNzxZcsroP2PZbgBgi!641
9y8UQTas3kQAg59SwZ2lKpVkq0BdFnxNxw!9dNsq> .

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sipforum.org/pipermail/discussion/attachments/20071128/8eb37722/attachment-0002.html>


More information about the discussion mailing list