[OpenSIPS-Users] About "nat_traversal" fix_contact()

Samuel samuelcamara at hotmail.com
Mon Jun 3 12:54:57 CEST 2013


Hello,

Muito Obrigado Flavio!

Actually, I was to update the post, since I found and tested it
successfully.

But now I'm having another issue.

The Path header inserted do not contains transport type.
If only UDP is involved it works properly since UDP is used.

But for:
 UAC----TLS---- Opensips ----- UDP---Registar/P2
I'm having troubles.
INVITE is coming from P2 to Opensips ()UDP) but then, opensips  attempts to
send INVITE to UAC via UDP instead TLS.
I think that issue is that the Route header received in INVITE do not
contains the transport=tls. And do not contains it because the PAth header
received in the register do not contains it.

I think i need to add transport=tls to Path header.

I tried to append it but I'm not able to insert it:
add_path_received(); 
search_append("Path:",";transport=tls"); 

Do you know how to insert the transport=tls in the Path header? 
Is the search_append not working because Path header didn't exist in the
received REGISTER message? 


REGISTER sip:sip.domain.com SIP/2.0
Via: SIP/2.0/UDP OPENSIPS_IP;branch=z9hG4bKe3bb.e60c0916.0;i=d
Via: SIP/2.0/TLS
192.168.1.102:58881;received=UAC_NAT_IP;branch=z9hG4bKohsqOLJzwXEHZ0L5;rport=58881
Route: <sip:REGISTAR_IP:5060;transport=udp;lr>
Contact:
<sip:user at UAC_NAT_IP:58881;rinstance=FC82F103;transport=tls>;expires=600
Max-Forwards: 69
From: "sam" <sip:user at sip.domain.com>;tag=E20769585794B205C193A25BFBF68D58
Allow: OPTIONS, INVITE, ACK, REFER, CANCEL, BYE, NOTIFY
Supported: replaces, path
User-Agent: Softphone/4.0 (build 165099)
To: "sam" <sip:user at sip.domain.com>
Expires: 600
Call-ID: C014ACE304843553C37D74A73F2526F5FE9B2870
CSeq: 2 REGISTER
Content-Length: 0
P-hint: outbound
Path: <sip:OPENSIPS_IP;lr;received=sip:UAC_NAT_IP:58881>


INVITE sip:user at UAC_NAT_IP:58881;rinstance=FC82F103;transport=tls SIP/2.0
Via: SIP/2.0/UDP REGISTAR_IP:5060;branch=z9hG4bK40tktqcm2rckafaai0rf0082r7
Call-ID: SD6o6n201-a8749ef3ee4857cb0b8acf7ff6b7618e-gurpko2
CSeq: 1 INVITE
From: "Anonymous"
<sip:Restricted at REGISTAR_IP>;tag=SD6o6n201-61003188_8cce6d4f_340d03f6-0938-47c5-b7d9-ee93897314f2
To:
<sip:user-mb21q3pkmk3jb at 10.0.5.77:5060;rinstance=FC82F103;useradd=OPENSIPS_IP;userport=5060>
Max-Forwards: 69
Contact: "Anonymous" <sip:Restricted at REGISTAR_IP:5060;transport=udp>
Allow: INVITE
Accept: application/sdp
Anonymity: uri
Min-SE: 90
X-UUID: 38dde664adcc4886afa850b81eb81cd0
Supported: timer,replaces
Content-Disposition: session;handling=required
Content-Type: application/sdp
X-DID: 2815204000
Content-Length: 283
Route: <sip:OPENSIPS_IP;lr;received=sip:UAC_NAT_IP:58881>

Or should i force to use TLS in some diferent way?

Thanks for help!






--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/About-nat-traversal-fix-contact-tp1487591p7586665.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list