Public ip not sent in sip-register request even after setting STUN server.

28 views
Skip to first unread message

sohail mansoori

unread,
Dec 6, 2023, 2:40:24 PM12/6/23
to discuss-doubango
Someone please help ,
I m using daubango library for SIP calls in iOS but when I m seeing logs it always sending private IP, I did use STUN enable methods as well to enable public ip -

[sipStack setSTUNEnabled:YES];
[sipStack setSTUNServerIP:@"stun.l.google.com" andPort:19302];

But still I gets private ip in my sip-registration which you can see in Contact: Header
Let me know someone what to do to send public ip in registration request.

This is my register request -

Via: SIP/2.0/TCP 192.168.1.44:65453;branch=z9hG4bK-1128381505;rport


From: <sip:918878...@sip-uat.domain.io>;tag=413453665


To: <sip:918147...@sip-uat.domain.io>


Contact: <sip:918147985500@192.168.1.44:65453;transport=tcp*[DOUBANGO INFO]: 


SEND: REGISTER sip:sip-uat.voxza.io SIP/2.0


Via: SIP/2.0/TCP 192.168.1.2:65453;branch=z9hG4bK-1128381505;rport


From: <sip:918147985500@sip-uat.domain.io>;tag=413453665


To: <sip:918147985500@sip-uat.domain.io>


Contact: <sip:918147985500@192.168.1.44:65453;transport=tcptransport=tcp>;expires=60;+g.oma.sip-im;language="en,fr";+g.3gpp.smsip;+g.oma.sip-im.large-message;audio;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-application.ims.iari.gsma-vs";+g.3gpp.cs-voice

Reply all
Reply to author
Forward
0 new messages