[OpenSIPS-Users] rewite contact

Slava Bendersky volga629 at networklab.ca
Wed Sep 26 08:23:00 EDT 2018


Hello Bogdan, 
Yes, the issue that outbound socket is UDP I expected that contact will not contain ;transport=tls. 

volga629 



From: "volga629" <volga629 at skillsearch.ca> 
To: "Bogdan-Andrei Iancu" <bogdan at opensips.org> 
Cc: "OpenSIPS users mailling list" <users at lists.opensips.org> 
Sent: Wednesday, September 26, 2018 9:22:09 AM 
Subject: Re: [OpenSIPS-Users] rewite contact 

Hello Bogdan, 
Yes, the issue that outbound socket is UDP I expected that contact will not contain ;transport=tls. 

volga629 


From: "Bogdan-Andrei Iancu" <bogdan at opensips.org> 
To: "OpenSIPS users mailling list" <users at lists.opensips.org>, "Slava Bendersky" <volga629 at networklab.ca> 
Sent: Wednesday, September 26, 2018 6:45:09 AM 
Subject: Re: [OpenSIPS-Users] rewite contact 

Hi Slava, 

By definition mid_registrar *will* change the contact, mainly the user and domain part of the URI contact. The URI parameters are preserved. The transport too, unless you change the outbound socket (to a different protocol). 

Regards, 
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer [ http://www.opensips-solutions.com/ | http://www.opensips-solutions.com ] OpenSIPS Bootcamp 2018 [ http://opensips.org/training/OpenSIPS_Bootcamp_2018/ | http://opensips.org/training/OpenSIPS_Bootcamp_2018/ ] 
On 09/26/2018 05:19 AM, Slava Bendersky wrote: 



Hello Everyone, 
In which case mid_registrar will not rewrite contact ? 
I see when present param ;transport=tls contact is not rewritten. 
config 

#### REGISTRAR module 
loadmodule "mid_registrar.so" 
modparam("mid_registrar", "mode", 2) 
modparam("mid_registrar", "received_avp", "$avp(RECEIVED)") 
modparam("mid_registrar", "max_contacts", 10) 
modparam("mid_registrar", "tcp_persistent_flag", "TCP_PERSIST_REGISTRATIONS") 
modparam("mid_registrar", "outgoing_expires", 7200) 

code 

if($proto=="TCP|tcp|TLS|tls") { 
setflag(TCP_PERSIST_REGISTRATIONS); 
} 
mid_registrar_save("location","p1"); 
# Work arround for github issue #1109 
append_hf("Path: [ sip:$fU at lan_ip:5060;transport=udp | <sip:$fU at lan_ip:5060;transport=udp> ] \r\n"); 
xlog("L_INFO", "Forwarding REGISTER to main registrar ~> [$ct]\n"); 
} 


Freeswitch contact 

Call-ID: [ mailto:1293754241-5060-1 at BJC.BGI.B.GF | 1293754241-5060-1 at BJC.BGI.B.GF ] 
User: [ mailto:101 at domain.com | 101 at domain.com ] 
Contact: "" [ sip:101 at 192.168.1.65:5060;transport=tls;fs_path=sip%3A101%4010.30.100.41%3A5060%3Btransport%3Dudp | <sip:101 at 192.168.1.65:5060;transport=tls;fs_path=sip%3A101%4010.30.100.41%3A5060%3Btransport%3Dudp> ] 
Agent: Grandstream GXP1760W 1.0.1.74 
Status: Registered(TLS)(unknown) EXP(2018-09-30 19:37:59) EXPSECS(429254) 
Ping-Status: Reachable 
Ping-Time: 0.00 
Host: pbx04.domain.lan 
IP: 10.30.100.41 
Port: 5060 
Auth-User: 101 
Auth-Realm: domain.com 
MWI-Account: [ mailto:101 at domain.com | 101 at domain.com ] 
volga629 




_______________________________________________
Users mailing list [ mailto:Users at lists.opensips.org | Users at lists.opensips.org ] [ http://lists.opensips.org/cgi-bin/mailman/listinfo/users | http://lists.opensips.org/cgi-bin/mailman/listinfo/users ] 




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180926/91578c99/attachment.html>


More information about the Users mailing list