[SR-Users] Kamailio and NAPTR lookup with TLS
Hi all, I'm using kamailio 1.5 with TLS module. I need to make ENUM query and get NAPTR record. >From NAPTR lookup, I'd like to relay my SIP Invite with tls protocol. How can I tell Kamailio to use TLS protocol ( instead of udp) after NAPTR lookup ? I've try to set : dns_tls_pref=1 dns_udp_pref=2 dns_tcp_pref=3 in the general section of kamailio.cfg, but I get a parse error. Regards, Daniel ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Fwd: Re: Fwd: Re: Kamailio and NAPTR lookup with TLS
Hi klaus, Suppose I can't access to NAPTR settings. I need to manage SIP URI, so , If I right understand, the only way to use TLS protocol in kamailio 1.5 is to append ";transport=tls" in R-URI before relay. In other words I need to rewrite R-URI: $ru = $ru + ";transport=tls" ; # and the t_relay t_relay() ; something like that? Regards, Daniel Il 08/07/2010 18.45, Matteo Campana ha scritto: > > > Messaggio originale > Oggetto: Re: [SR-Users] Kamailio and NAPTR lookup with TLS > Data: Thu, 08 Jul 2010 18:44:27 +0200 > Mittente: Klaus Darilion > A:Daniel-Constantin Mierla > CC: matteo.camp...@klarya.it, sr-users@lists.sip-router.org > > > > Am 08.07.2010 18:10, schrieb Daniel-Constantin Mierla: > > Hello, > > > > On 7/8/10 5:59 PM, Matteo Campana wrote: > >> > >> Hi all, > >> I'm using kamailio 1.5 with TLS module. > >> I need to make ENUM query and get NAPTR record. > >> > From NAPTR lookup, I'd like to relay my SIP Invite with tls protocol. > >> > >> How can I tell Kamailio to use TLS protocol ( instead of udp) after > >> NAPTR lookup ? > >> > >> I've try to set : > >> > >> dns_tls_pref=1 > >> dns_udp_pref=2 > >> dns_tcp_pref=3 > >> > >> in the general section of kamailio.cfg, but I get a parse error. > >> > > these parameters were introduced in kamailio with version 3.0. > > > > If you need TLS then it is recommended to use 3.0 anyhow, it is a far > > better implementation. That will make the life easier to migrate to > > upcoming 3.1 that will bring asynchronous TLS. > > > > No matter what you have in R-URI, you can force TLS via setting outbound > > proxy address to be a TLS uri: > > > > $du = "sip:__ip_or_host__;transport=tls"; > > t_relay(); > > IIRC we do have NAPTR support in Kamailio 1.5 - don't we? > > Then I think it should work when putting a domain into $du and makeing > sure that there is no transport parameter, no port, and NAPTR TLS record > has highest priority. > > regards > klaus > > > > > The IP or host you can take from R-URI without any problem via PV $rd. > > Other option is to use function from tm - t_relay_to_tls(): > > > > http://kamailio.org/docs/modules/stable/modules/tm.html#t_relay_to_udp > > > > Cheers, > > Daniel > > > > ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Fwd: Re: Fwd: Re: Kamailio and NAPTR lookup with TLS
Hi Daniel, I have followed your instruction (I'm using kamailio 1.5) and before the t_relay("0x05") statement I've setted: $du="sip:" + $rd + ";transport=tls"; but I get the following mesasge: Jul 14 15:17:55 OVSIPP /usr/local/sbin/kamailio[7790] Request leaving server, *D_-URI='sip:garr.it;transport=tls'_* - M=INVITE RURI=sip:x...@garr.it F=sip:yy...@sip.mydomqin.it:5066 T=sip:123456...@sip.mydomain.it:5066 Jul 14 15:17:55 OVSIPP /usr/local/sbin/kamailio[7790]: CRITICAL:core:mk_proxy: could not resolve hostname: "garr.it" Jul 14 15:17:55 OVSIPP /usr/local/sbin/kamailio[7790]: ERROR:tm:uri2proxy: bad host name in URI Jul 14 15:17:55 OVSIPP /usr/local/sbin/kamailio[7790]: ERROR:tm:t_forward_nonack: failure to add branches Therefore I would like to use information about TLS connection (tls port?) got from NAPTR record. Doesn't it possible with kamailio 1.5 ? Many thanks, Daniel Il 08/07/2010 18.12, Matteo Campana ha scritto: > > > Messaggio originale > Oggetto: Re: [SR-Users] Kamailio and NAPTR lookup with TLS > Data: Thu, 08 Jul 2010 18:10:35 +0200 > Mittente: Daniel-Constantin Mierla > A:matteo.camp...@klarya.it > CC: sr-users@lists.sip-router.org > > > > Hello, > > On 7/8/10 5:59 PM, Matteo Campana wrote: > > > > Hi all, > > I'm using kamailio 1.5 with TLS module. > > I need to make ENUM query and get NAPTR record. > > > From NAPTR lookup, I'd like to relay my SIP Invite with tls protocol. > > > > How can I tell Kamailio to use TLS protocol ( instead of udp) after NAPTR > > lookup ? > > > > I've try to set : > > > > dns_tls_pref=1 > > dns_udp_pref=2 > > dns_tcp_pref=3 > > > > in the general section of kamailio.cfg, but I get a parse error. > > > > > these parameters were introduced in kamailio with version 3.0. > > If you need TLS then it is recommended to use 3.0 anyhow, it is a far > better implementation. That will make the life easier to migrate to > upcoming 3.1 that will bring asynchronous TLS. > > No matter what you have in R-URI, you can force TLS via setting outbound > proxy address to be a TLS uri: > > $du = "sip:__ip_or_host__;transport=tls"; > t_relay(); > > The IP or host you can take from R-URI without any problem via PV $rd. > Other option is to use function from tm - t_relay_to_tls(): > > http://kamailio.org/docs/modules/stable/modules/tm.html#t_relay_to_udp > > Cheers, > Daniel > > -- > Daniel-Constantin Mierla > http://www.asipto.com/ > > ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] UAC Module: test registration to a Voip provider
Hi all, we are using the UAC module ( http://www.kamailio.org/docs/modules/stable/modules_k/uac.html#id2910015) to register the proxy to an external DID provider. I know that the module takes care of sending REGISTER on the basis of credentials stored in uacreg table, but my question is: if I add a new row in the uacreg table, kamailio will register the new username after the database update or I need a restart of kamailio (or some kamailio module)? If I edit the row in uacreg table and I call the rpc command *sercmd uac.reg_dump *I see the old values in the output, but if I restart kamailio I see the new values. Tanks in advance, Matteo ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users