<div>My server is a SIP server with a relay module. Initially,  as I read the RFC 4975 I understood the same as Adrian has just told me. But when I captured the traffic I saw that my SIP SIMPLE client sends a 500 Sever internal Error to the server. Anyhow it made me think that it had to do with MSRP and server  ports and that I hadn't understood the RFC properly. As I see now is that the SIP 200 OK is not beeing send by the one that accepts the chat.</div>
<div><br></div><div>Thank you for your replies.</div><div><br></div><div>Regards</div><div><br><div class="gmail_quote">2013/2/12 Adrian Georgescu <span dir="ltr"><<a href="mailto:ag@ag-projects.com" target="_blank">ag@ag-projects.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Noemi,<br>
<br>
The ports used for media sessions whether the media is RTP audio/video or MSRP chat/file transfer are negotiated in real time using the SIP protocol, in the SDP payload, is not something you set somewhere in the client, these ports can be different for every established session.<br>

<br>
When your client start the SIP session, the remote party will tell you the ports where you must send media in the 200 OK SIP message. When you receive a session request, the ports where you must send the media are in the INVITE you receive.<br>

<br>
In you case is the server that must offer the ports and the client will simply use them.<br>
<span class="HOEnZb"><font color="#888888"><br>
Adrian<br>
</font></span><div class="im HOEnZb"><br>
On Feb 12, 2013, at 5:58 PM, Noemi Leon wrote:<br>
<br>
</div><div class="HOEnZb"><div class="h5">> Hello all,<br>
><br>
> I want to use sip simple client with my server, which listens msrp messages through port 5060 (same as SIP). How can I make the client to send the msrp messages to the port 5060?<br>
><br>
> Thanks in advance.<br>
><br>
> Regards<br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> SIPBeyondVoIP mailing list<br>
> <a href="mailto:SIPBeyondVoIP@lists.ag-projects.com">SIPBeyondVoIP@lists.ag-projects.com</a><br>
> <a href="http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip" target="_blank">http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip</a><br>
<br>
</div></div></blockquote></div><br></div>