[SR-Users] select outgoing interface

2018-04-23 Thread Laurent Schweizer

Dear all,

I have a config with multiple interface( multiple IP in same subnet) and want 
to know how I can select the interface used to send a request (UDP).
The best is the possibility to choose for each request the outgoing interface 
but if it's not possible I think I can also work with a solution where the 
outgoing interface is defined globally ?
I need this because one provider request one IP for inbound call and one IP for 
outbound call .


Thanks

Laurent



___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] select outgoing interface

2018-04-23 Thread Alex Balashov
Hi Laurent,

You can either rely on Kamailio to do this using the mhomed=1 core
config directive, more particularly described here:

https://www.kamailio.org/wiki/cookbooks/5.1.x/core#mhomed

Or you can turn this off, and manually steer outgoing requests by using
the $fs PV. It is writable, e.g.

   listen=udp:x.x.x.x:5060
   listen=udp:y.y.y.y:5060

   route[RELAY] {
 ...

 $fs = 'udp:x.x.x.x:5060';

 if(!t_relay())
 sl_reply_error();
 
 exit;
   }

If you are moving traffic between interfaces and using Record-Route, be
sure to turn this setting on:

https://kamailio.org/docs/modules/5.1.x/modules/rr.html#rr.p.enable_double_rr

-- Alex

On Mon, Apr 23, 2018 at 08:28:27AM +, Laurent Schweizer wrote:
> 

> Dear all,
> 
> I have a config with multiple interface( multiple IP in same subnet) and want 
> to know how I can select the interface used to send a request (UDP).
> The best is the possibility to choose for each request the outgoing interface 
> but if it's not possible I think I can also work with a solution where the 
> outgoing interface is defined globally ?
> I need this because one provider request one IP for inbound call and one IP 
> for outbound call .
> 
> 
> Thanks
> 
> Laurent
> 
> 
> 

> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] select outgoing interface

2018-04-23 Thread Laurent Schweizer
Hi Alex,

Thanks for the fast solution !

BR

Laurent


-Message d'origine-
De : sr-users [mailto:sr-users-boun...@lists.kamailio.org] De la part de Alex 
Balashov
Envoyé : lundi, 23 avril 2018 10:34
À : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] select outgoing interface

Hi Laurent,

You can either rely on Kamailio to do this using the mhomed=1 core config 
directive, more particularly described here:

https://www.kamailio.org/wiki/cookbooks/5.1.x/core#mhomed

Or you can turn this off, and manually steer outgoing requests by using the $fs 
PV. It is writable, e.g.

   listen=udp:x.x.x.x:5060
   listen=udp:y.y.y.y:5060

   route[RELAY] {
 ...

 $fs = 'udp:x.x.x.x:5060';

 if(!t_relay())
 sl_reply_error();
 
 exit;
   }

If you are moving traffic between interfaces and using Record-Route, be sure to 
turn this setting on:

https://kamailio.org/docs/modules/5.1.x/modules/rr.html#rr.p.enable_double_rr

-- Alex

On Mon, Apr 23, 2018 at 08:28:27AM +, Laurent Schweizer wrote:
> 

> Dear all,
> 
> I have a config with multiple interface( multiple IP in same subnet) and want 
> to know how I can select the interface used to send a request (UDP).
> The best is the possibility to choose for each request the outgoing interface 
> but if it's not possible I think I can also work with a solution where the 
> outgoing interface is defined globally ?
> I need this because one provider request one IP for inbound call and one IP 
> for outbound call .
> 
> 
> Thanks
> 
> Laurent
> 
> 
> 

> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio not listening to proper ipv6 address

2018-04-23 Thread selak Dev
That was it... Thanks...

The root cause of the problem was the firewall. It was blocking ipv6
transport for port 5061, and when I saw the "wrong" ip address in netstat I
assumed Kamailio had issue, because outcome is the same.

Best regards,
Marko

On Sat, Apr 21, 2018 at 3:39 AM, Boden Garman  wrote:

> Hi Marko,
>
> Depending on your version of netstat it may be truncating the IPv6
> address. Try using `ss -n -6 state listening` and see what it reports.
>
> On 20 April 2018 at 23:59, selak Dev  wrote:
>
>> Hi,
>>
>> I need to enable Kamailio to work with ipv6 also, and I enabled
>>
>> auto_bind_ipv6=1
>>
>> and when restarted I can see that it is listening to ipv6 ip addresses
>> also.
>> The problem is that it stripped the ip address at the end and it is
>> listening to the wrong one.
>> When I try to register I get timeout, since it is not listening the
>> correct address.
>>
>> ip address of the server is 2604:a880:400:d0:::
>>
>> and when I execute "sudo netstat -plnt" too see which app is listening to
>> which address/port I can see:
>> 
>> tcp6   0  0 2604:a880:400:d0:::5085 :::*
>> LISTEN  17748/kamailio
>> tcp6   0  0 2604:a880:400:d0:::5061 :::*
>> LISTEN  17748/kamailio
>>
>> It somehow stripped the last part of the address (:). I dont know
>> if it is related to :: which would be all zeros, but it doesn't work even
>> if i explicitly specify which address to listen with
>>
>> listen=[2604:a880:400:d0::::]
>> or
>> listen=tcp:[2604:a880:400:d0::::]:5061
>> or
>> listen=tcp:[2604:a880:400:d0:::]:5061
>>
>> I tried all combinations and the results are always the same...
>>
>> Have anybody had this problem before?
>> Do you know how to fix this?
>>
>>
>> Best regards,
>> Marko Selakovic
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Use of MariaDB to replace MySQL

2018-04-23 Thread Ginhoux, Patrick
Hi Charles,

 

Thanks for the answer.

 

So that this makes me confident to migrate soon.

 

Cordialement.

Patrick GINHOUX 

Unisys | +33 1 46 69 52 12 | +33 6 60 32 24 74 | patrick.ginh...@unisys.com

 

De : sr-users  De la part de Charles Chance
Envoyé : samedi 21 avril 2018 11:18
À : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] Use of MariaDB to replace MySQL

 

Hello,

 

MariaDB is a drop-in replacement, so simply continue using the db_mysql module 
as you are now.

 

Cheers,

 

Charles

 

On Sat, 21 Apr 2018 at 07:53, Ginhoux, Patrick mailto:patrick.ginh...@fr.unisys.com> > wrote:

Hi,

 

Currently, my Kamailio proxy uses a MySql DB to get configuration data.  We 
have a plan to migrate MySQL to MariaDB.

 

Is  there MariaDB modules with Kamailio ?

 

Thanks in advance for your answer.

 

P. Ginhoux

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org  
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 

Charles Chance
Managing Director

 

t. 0330 120 1200m. 07932 063 891

 

Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered 
office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham 
Science Park, Birmingham B7 4BB.



smime.p7s
Description: S/MIME cryptographic signature
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] BLF+Asterisk+NAT

2018-04-23 Thread John Bob
Phone sends SubscribeKamailio Responds 202 OKKamailio Responds with NOTIFY Via: SIP/2.0/TCP 66.66.66.66:5051;branch=z9hG4bKfe3e.e4fedb84.0To: 30041@66.66.66.66>;tag=48ae253ab7From: 47701@66.66.66.66>;tag=00c39aabf419ddeab4250cd65af8ef90-6fb2CSeq: 2 NOTIFYCall-ID: 1493ef52c41b6c1aContent-Length: 0User-Agent: kamailio (5.1.2 (x86_64/linux))Max-Forwards: 70Event: dialogContact: Subscription-State: terminated;reason=timeout In that packet I see Subscription-state: terminated;reason=timeout  Im not sure what I am missing or misconfigured. Any help would be great. I’ve attached my config. Thanks.

kamailio.cfg
Description: Binary data
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Planning the release of Kamailio v5.1.3

2018-04-23 Thread Daniel-Constantin Mierla
Hello,

short note to say that I am going to start packaging 5.1.3 soon, if
there is something to be backported to branch 5.1, write first to sr-dev
mailing list or sync on irc #kamailio channel. Once the announcement for
the release is out, work on branch 5.1 can be done as usual.

Cheers,
Daniel


On 19.04.18 08:36, Daniel-Constantin Mierla wrote:
> Hello,
>
> I am considering to package a new release from branch 5.1, respectively
> v5.1.3 sometime next week, likely on Tuesday or Wednesday (April 24 or
> 25). I any issue is not yet reported on github tracker, do it as soon as
> possible to have a chance to be investigated.
>
> Cheers,
> Daniel
>

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users