Re: [asterisk-users] General Kernel practices on CentOS

2017-12-18 Thread Ron Wheeler
Linux x.y.com 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 
2017 x86_64 x86_64 x86_64 GNU/Linux

I try to keep up with the latest versions of everything.

Ron

On 15/12/2017 5:59 AM, Olivier wrote:

Hello Ron,
Which kernel do you run Asterisk/Freepbx with ?
Cheers

2017-12-14 16:57 GMT+01:00 Ron Wheeler >:


CentOS 7 works well with Asterisk.
Install latest CentOS7 with updates install asterisk

I am running FreePBX on CentOS 7.

Ron

On 14/12/2017 10:38 AM, Olivier wrote:

Hello,

I'm used to install Asterisk on Debian stable platforms.

A customer is asking how I would proceed on a CentOS platform.

After a short research (see [1] as an example), I'm wondering
what are general kernel practices on CentOS regarding Asterisk
and when targeting stability:

- Is it recommended to upgrade kernel version(s) (ie moving from
linux 3.10 to 4.3) just after OS installation ?

Best regards





-- 
Ron Wheeler

President
Artifact Software Inc
email:rwhee...@artifact-software.com 
skype: ronaldmwheeler
phone:866-970-2435, ext 102 


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at:
https://community.asterisk.org/ 

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started


asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users





--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] PJSIP OPTIONS

2017-12-18 Thread volga629

Hello Joshua,
Thank you for help that worked.

On Thu, 14 Dec, 2017 at 7:06 AM, Joshua Colp  wrote:

On Wed, Dec 13, 2017, at 09:38 PM, volga...@networklab.ca wrote:

 Hello Joshua,
 What will be example of endpoint configuration that not require
 authentication from specific ip ?


An endpoint doesn't know about an IP address. The identify I 
previously
mentioned is what associates the request to an endpoint. In the 
endpoint

if you have no inbound authentication specified (auth option) then it
won't require authentication.

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: 
https://community.asterisk.org/


New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Is it possible to have two endpoints to the same IP address where one uses IP based authentication and the other requires asterisk to register to that system?

2017-12-18 Thread Joshua Colp
On Mon, Dec 18, 2017, at 12:04 PM, Dan Cropp wrote:
> Thanks George
> 
> I originally didn’t have the 1002@ for the identify.  Changed that when
> things were not working.  I changed it back.
> 
> Unfortunately, the system I am connecting with doesn’t seem to support
> the line support.  Looking at the SIP packets, I see Asterisk send it. 
> Unfortunately, they do not send the line information as part of the
> INVITE.  I checked with some developers of that system and they do not
> know anything about the line setting.
> Is there any rfcs I could refer them to?

"line" support doesn't have an explicit RFC. It relies on the remote
side sending back the contents of the registered Contact address as they
are supposed to when sending the INVITE. In practice some do, some
don't.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Is it possible to have two endpoints to the same IP address where one uses IP based authentication and the other requires asterisk to register to that system?

2017-12-18 Thread Dan Cropp
Thanks George

I originally didn’t have the 1002@ for the identify.  Changed that when things 
were not working.  I changed it back.

Unfortunately, the system I am connecting with doesn’t seem to support the line 
support.  Looking at the SIP packets, I see Asterisk send it.  Unfortunately, 
they do not send the line information as part of the INVITE.  I checked with 
some developers of that system and they do not know anything about the line 
setting.
Is there any rfcs I could refer them to?


From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of George Joseph
Sent: Thursday, December 14, 2017 10:59 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Is it possible to have two endpoints to the same 
IP address where one uses IP based authentication and the other requires 
asterisk to register to that system?



On Wed, Dec 13, 2017 at 10:51 AM, Dan Cropp 
mailto:d...@amtelco.com>> wrote:
Currently using PJSIP.  First, they want me to get this working with the 
existing PJSIP configuration, but then setup a second box using chan_sip 
performing similar work.

For PJSIP…
I currently have an endpoint configured to a system using IP based 
authentication.  It is configured with a match setting in the endpoint section.
All channels coming from that IP address go to this endpoint.

They want me to keep this endpoint, but add a new endpoint where we register 
with them.

Existing…
[transport1]
type = transport
bind = 0.0.0.0
protocol = udp

[1002]
type = aor
remove_existing = yes
contact = sip:1...@xxx.xxx.xxx.xxx

[1002]
type = endpoint
context = mycontext
transport = transport1
accountcode = 6
dtmf_mode = inband
device_state_busy_at = 48
force_rport = no
identify_by = username
from_user = 1002
disallow = all
allow = ulaw
acl = acl1

[identify112]
type = identify
endpoint = 1002
match = 1...@xxx.xxx.xxx.xxx


Check this first...  identify112 probably failed to load because the match 
parameter can only take an ip address
plus an optional netmask, or a hostname.  The '1002@' is invalid.




I setup the registration and the endpoint.

[286]
type = aor
remove_existing = yes
contact = sip:2...@xxx.xxx.xxx.xxx
qualify_frequency = 60

[auth8]
type = auth
username = 286
password = yyy

[286]
type = endpoint
context = mycontext
transport = transport1
outbound_auth = auth8
aors = 286
accountcode = 22
dtmf_mode = inband
device_state_busy_at = 48
force_rport = no
disallow = all
allow = ulaw
acl = acl1

[registration3]
type = registration
transport = transport1
client_uri = sip:2...@zzz.zzz.zzz.zzz
server_uri = sip:xxx.xxx.xxx.xxx
contact_user = 286
outbound_auth = auth8
expiration = 3600

The registration for the second endpoint works fine.  However, when I call 
through the other system for 286, it is failing.  For the INVITE from the other 
switch, the from_user varies depending on who is calling.  Asterisk logs report 
“No matching endpoint found” when it processes the INVITE for 286.

I believe the reason INVITEs work for the other channel is because they are 
programmed to support the match for this IP address.

Can anyone offer some suggestions?

You may be able to use the 'line and 'endpoint' registration parameters...
[registration3]
type = registration
...
line = yes
endpoint = 286

This causes asterisk to put the encoded endpoint name in the outgoing Contact 
header.  If the provider properly echos back Contact parameters when sending 
responses or new requests, asterisk will use the line parameter to match an 
endpoint.  I'll have to double check but I believe we do that BEFORE checking 
any identify object for a match.





--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



--
George Joseph
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & 
www.asterisk.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] asterisk and Hyper-V

2017-12-18 Thread Kseniya Blashchuk
No problem, I will try to test with CentOS if I have time

пн, 18 дек. 2017 г. в 13:33, Dmitriy Ermakov :

> Ok. I am sorry, I don't have any more ideas(
>
> Please, send here email with your testing results.
>
> On 12/18/2017 01:22 PM, Kseniya Blashchuk wrote:
>
> To be honest we are a bit afraid to set 100% )), but we have tried to set
> 90% - no luck. I have also tested with 4.8 and 4.11 kernels - same results.
> I will try with Centos 6 and kernel 3.10 to check if something changes.
> VSwitch shows 1-2% load on the interfaces, and this host is not overloaded
> at all, so I don't think the VM has some lack of resources.
>
> пн, 18 дек. 2017 г. в 13:07, Dmitriy Ermakov :
>
>> I am using CentOS 6, kernel 3.10 from elrepo.org kernels
>> (3.10.102-1.el6.elrepo.x86_64).
>> Asterisk version is 11.21.2 and Asterisk 13.X.X (I can't get it's version
>> now).
>>
>> Is it possible that your network switches' interfaces which are connected
>> to Hyper-V Server are 100% busy?
>> It is possible that my installation works well because my Hyper-V server
>> is not high-load server so it has plenty free CPU, Disk, Memory, Network
>> resources to give them to Asterisk VM.
>>
>> Kseniya, could you try to reserve 100% of virtual CPUs for Asterisk VM
>> (just to test this configuration)?
>>
>>
>> I am sorry I don't have free hardware and time to test your Ubuntu 16,
>> asterisk 13.1, kernel 4.4.0-104 configuration(
>>
>> On 18 Dec 2017 12:09 p.m., "Kseniya Blashchuk" 
>> wrote:
>>
>>> Dmitry, are you using CentOS? What kernel version are you using? I will
>>> try with the same to see if it can be also a kernel-related issue.
>>>
>>> пн, 18 дек. 2017 г. в 11:35, Kseniya Blashchuk :
>>>
 Thank you for a quick answer, Dmitry!

 We have tried the settings you suggested but nothing helped. The
 machine is running 4.4.0-104 kernel, 4 cores, Intel(R) Xeon(R) CPU E5-2620
 v3 @ 2.40GHz, clocksource is hyperv_clocksource_tsc_page, timing module is
 res_timing_timerfd.so. We have also tried to set 50% Reserve - no luck :(.

 пн, 18 дек. 2017 г. в 10:49, Dmitriy Ermakov :

> Hi, Kseniya!
>
> I have three installations of Asterisk (as FreePBX but I think it is
> not important). They work fine.
>
> I have made some settings in Asterisk and Hyper-V:
>
> Asterisk: timing interface - timerfd.
>
> Hyper-V:
>
>1. Virtual Machine => Network Adapter => Hardware Acceleration =>
>Virtual Machine Queue - Disable it;
>2. Virtual Machine => Processor => Virtual Machine Reserve
>(percentage) - set at least 25% (if you have 4 virtual cores for your
>Asterisk). You can try to set reserve more or less then 25% - test it 
> and,
>please, send email here;
>3. Virtual Machine => Integration Services => Time synchronisation
>- enable it.
>
> This settings helped me.
>
> Also check your Linux Kernel version - it must be 3.10 or newer. I saw
> very bad "timing test" results on kernel 2.6.32.
>
> On 12/18/2017 10:26 AM, Kseniya Blashchuk wrote:
>
> Hi all!
> Does anybody have experience with asterisk on Hyper-V? My test setup
> with Ubuntu 16 and asterisk 13.1 (ubuntu repo) shows sound distortion. I
> have analyzed the RTP flow with wireshark and I see high skew and delta
> values when the traffic leaves the hypervisor, however everything is okay
> when a capture is taken from a VM itself. I have read that there can be
> timing problems with Hyper-V. I have tried to disable time sync with the
> machine and tried different clocksources. I have also tried to change
> asterisk timing interface to dahdi (dummy) - nothing helped so far. 
> Hyper-V
> version is 12p2.
> Does anybody have a working setup with Hyper-V?
>
>
>
>
> --
> С уважением, Дмитрий Ермаков
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users


>>> --
>>> _
>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>>
>>> Check out the new Asterisk community forum at:
>>> https://community.asterisk.org/
>>>
>>> New to Asterisk? Start here:
>>>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>>>
>>> asterisk-users mailing list
>>> To UNSUBSCRIBE or update options visit:
>>>http://lists.digium.com/mailman/listinfo/asterisk-users
>>>
>> --
>> 

Re: [asterisk-users] asterisk and Hyper-V

2017-12-18 Thread Dmitriy Ermakov
Ok. I am sorry, I don't have any more ideas(

Please, send here email with your testing results.


On 12/18/2017 01:22 PM, Kseniya Blashchuk wrote:
> To be honest we are a bit afraid to set 100% )), but we have tried to
> set 90% - no luck. I have also tested with 4.8 and 4.11 kernels - same
> results. I will try with Centos 6 and kernel 3.10 to check if
> something changes. VSwitch shows 1-2% load on the interfaces, and this
> host is not overloaded at all, so I don't think the VM has some lack
> of resources.
>
> пн, 18 дек. 2017 г. в 13:07, Dmitriy Ermakov  >:
>
> I am using CentOS 6, kernel 3.10 from elrepo.org
>  kernels (3.10.102-1.el6.elrepo.x86_64).
> Asterisk version is 11.21.2 and Asterisk 13.X.X (I can't get it's
> version now).
>
> Is it possible that your network switches' interfaces which are
> connected to Hyper-V Server are 100% busy?
> It is possible that my installation works well because my Hyper-V
> server is not high-load server so it has plenty free CPU, Disk,
> Memory, Network resources to give them to Asterisk VM.
>
> Kseniya, could you try to reserve 100% of virtual CPUs for
> Asterisk VM (just to test this configuration)?
>
>
> I am sorry I don't have free hardware and time to test your Ubuntu
> 16, asterisk 13.1, kernel 4.4.0-104 configuration(
>
> On 18 Dec 2017 12:09 p.m., "Kseniya Blashchuk"  > wrote:
>
> Dmitry, are you using CentOS? What kernel version are you
> using? I will try with the same to see if it can be also a
> kernel-related issue.
>
> пн, 18 дек. 2017 г. в 11:35, Kseniya Blashchuk
> mailto:ksybl...@gmail.com>>:
>
> Thank you for a quick answer, Dmitry!
>
> We have tried the settings you suggested but nothing
> helped. The machine is running 4.4.0-104 kernel, 4
> cores, Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz,
> clocksource is hyperv_clocksource_tsc_page, timing module
> is res_timing_timerfd.so. We have also tried to set 50%
> Reserve - no luck :(. 
>
> пн, 18 дек. 2017 г. в 10:49, Dmitriy Ermakov
> mailto:demoni...@gmail.com>>:
>
> Hi, Kseniya!
>
> I have three installations of Asterisk (as FreePBX but
> I think it is not important). They work fine.
>
> I have made some settings in Asterisk and Hyper-V:
>
> Asterisk: timing interface - timerfd.
>
> Hyper-V:
>
>  1. Virtual Machine => Network Adapter => Hardware
> Acceleration => Virtual Machine Queue - Disable it;
>  2. Virtual Machine => Processor => Virtual Machine
> Reserve (percentage) - set at least 25% (if you
> have 4 virtual cores for your Asterisk). You can
> try to set reserve more or less then 25% - test it
> and, please, send email here;
>  3. Virtual Machine => Integration Services => Time
> synchronisation - enable it.
>
> This settings helped me.
>
> Also check your Linux Kernel version - it must be 3.10
> or newer. I saw very bad "timing test" results on
> kernel 2.6.32.
>
>
> On 12/18/2017 10:26 AM, Kseniya Blashchuk wrote:
>> Hi all!
>> Does anybody have experience with asterisk on
>> Hyper-V? My test setup with Ubuntu 16 and asterisk
>> 13.1 (ubuntu repo) shows sound distortion. I have
>> analyzed the RTP flow with wireshark and I see high
>> skew and delta values when the traffic leaves the
>> hypervisor, however everything is okay when a capture
>> is taken from a VM itself. I have read that there can
>> be timing problems with Hyper-V. I have tried to
>> disable time sync with the machine and tried
>> different clocksources. I have also tried to change
>> asterisk timing interface to dahdi (dummy) - nothing
>> helped so far. Hyper-V version is 12p2.
>> Does anybody have a working setup with Hyper-V?
>>
>>
>>
>
> -- 
> С уважением, Дмитрий Ермаков
>
> --
> 
> _
> -- Bandwidth and Colocation Provided by
> http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>      
> https://wiki.asterisk.org/wiki/display/AST/Getting+Starte

Re: [asterisk-users] asterisk and Hyper-V

2017-12-18 Thread Kseniya Blashchuk
To be honest we are a bit afraid to set 100% )), but we have tried to set
90% - no luck. I have also tested with 4.8 and 4.11 kernels - same results.
I will try with Centos 6 and kernel 3.10 to check if something changes.
VSwitch shows 1-2% load on the interfaces, and this host is not overloaded
at all, so I don't think the VM has some lack of resources.

пн, 18 дек. 2017 г. в 13:07, Dmitriy Ermakov :

> I am using CentOS 6, kernel 3.10 from elrepo.org kernels
> (3.10.102-1.el6.elrepo.x86_64).
> Asterisk version is 11.21.2 and Asterisk 13.X.X (I can't get it's version
> now).
>
> Is it possible that your network switches' interfaces which are connected
> to Hyper-V Server are 100% busy?
> It is possible that my installation works well because my Hyper-V server
> is not high-load server so it has plenty free CPU, Disk, Memory, Network
> resources to give them to Asterisk VM.
>
> Kseniya, could you try to reserve 100% of virtual CPUs for Asterisk VM
> (just to test this configuration)?
>
>
> I am sorry I don't have free hardware and time to test your Ubuntu 16,
> asterisk 13.1, kernel 4.4.0-104 configuration(
>
> On 18 Dec 2017 12:09 p.m., "Kseniya Blashchuk"  wrote:
>
>> Dmitry, are you using CentOS? What kernel version are you using? I will
>> try with the same to see if it can be also a kernel-related issue.
>>
>> пн, 18 дек. 2017 г. в 11:35, Kseniya Blashchuk :
>>
>>> Thank you for a quick answer, Dmitry!
>>>
>>> We have tried the settings you suggested but nothing helped. The machine
>>> is running 4.4.0-104 kernel, 4 cores, Intel(R) Xeon(R) CPU E5-2620 v3 @
>>> 2.40GHz, clocksource is hyperv_clocksource_tsc_page, timing module is
>>> res_timing_timerfd.so. We have also tried to set 50% Reserve - no luck :(.
>>>
>>> пн, 18 дек. 2017 г. в 10:49, Dmitriy Ermakov :
>>>
 Hi, Kseniya!

 I have three installations of Asterisk (as FreePBX but I think it is
 not important). They work fine.

 I have made some settings in Asterisk and Hyper-V:

 Asterisk: timing interface - timerfd.

 Hyper-V:

1. Virtual Machine => Network Adapter => Hardware Acceleration =>
Virtual Machine Queue - Disable it;
2. Virtual Machine => Processor => Virtual Machine Reserve
(percentage) - set at least 25% (if you have 4 virtual cores for your
Asterisk). You can try to set reserve more or less then 25% - test it 
 and,
please, send email here;
3. Virtual Machine => Integration Services => Time synchronisation
- enable it.

 This settings helped me.

 Also check your Linux Kernel version - it must be 3.10 or newer. I saw
 very bad "timing test" results on kernel 2.6.32.

 On 12/18/2017 10:26 AM, Kseniya Blashchuk wrote:

 Hi all!
 Does anybody have experience with asterisk on Hyper-V? My test setup
 with Ubuntu 16 and asterisk 13.1 (ubuntu repo) shows sound distortion. I
 have analyzed the RTP flow with wireshark and I see high skew and delta
 values when the traffic leaves the hypervisor, however everything is okay
 when a capture is taken from a VM itself. I have read that there can be
 timing problems with Hyper-V. I have tried to disable time sync with the
 machine and tried different clocksources. I have also tried to change
 asterisk timing interface to dahdi (dummy) - nothing helped so far. Hyper-V
 version is 12p2.
 Does anybody have a working setup with Hyper-V?




 --
 С уважением, Дмитрий Ермаков

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 Check out the new Asterisk community forum at:
 https://community.asterisk.org/

 New to Asterisk? Start here:
   https://wiki.asterisk.org/wiki/display/AST/Getting+Started

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
>>>
>>>
>> --
>> _
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> Check out the new Asterisk community forum at:
>> https://community.asterisk.org/
>>
>> New to Asterisk? Start here:
>>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>http://lists.digium.com/mailman/listinfo/asterisk-users
>>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailm

Re: [asterisk-users] asterisk and Hyper-V

2017-12-18 Thread Dmitriy Ermakov
I am using CentOS 6, kernel 3.10 from elrepo.org kernels
(3.10.102-1.el6.elrepo.x86_64).
Asterisk version is 11.21.2 and Asterisk 13.X.X (I can't get it's
version now).

Is it possible that your network switches' interfaces which are
connected to Hyper-V Server are 100% busy?
It is possible that my installation works well because my Hyper-V server
is not high-load server so it has plenty free CPU, Disk, Memory, Network
resources to give them to Asterisk VM.

Kseniya, could you try to reserve 100% of virtual CPUs for Asterisk VM
(just to test this configuration)?


I am sorry I don't have free hardware and time to test your Ubuntu 16,
asterisk 13.1, kernel 4.4.0-104 configuration(

On 18 Dec 2017 12:09 p.m., "Kseniya Blashchuk" mailto:ksybl...@gmail.com>> wrote:

Dmitry, are you using CentOS? What kernel version are you using? I
will try with the same to see if it can be also a kernel-related issue.

пн, 18 дек. 2017 г. в 11:35, Kseniya Blashchuk mailto:ksybl...@gmail.com>>:

Thank you for a quick answer, Dmitry!

We have tried the settings you suggested but nothing helped. The
machine is running 4.4.0-104 kernel, 4 cores, Intel(R) Xeon(R)
CPU E5-2620 v3 @ 2.40GHz, clocksource
is hyperv_clocksource_tsc_page, timing module is
res_timing_timerfd.so. We have also tried to set 50% Reserve -
no luck :(. 

пн, 18 дек. 2017 г. в 10:49, Dmitriy Ermakov
mailto:demoni...@gmail.com>>:

Hi, Kseniya!

I have three installations of Asterisk (as FreePBX but I
think it is not important). They work fine.

I have made some settings in Asterisk and Hyper-V:

Asterisk: timing interface - timerfd.

Hyper-V:

 1. Virtual Machine => Network Adapter => Hardware
Acceleration => Virtual Machine Queue - Disable it;
 2. Virtual Machine => Processor => Virtual Machine Reserve
(percentage) - set at least 25% (if you have 4 virtual
cores for your Asterisk). You can try to set reserve
more or less then 25% - test it and, please, send email
here;
 3. Virtual Machine => Integration Services => Time
synchronisation - enable it.

This settings helped me.

Also check your Linux Kernel version - it must be 3.10 or
newer. I saw very bad "timing test" results on kernel 2.6.32.


On 12/18/2017 10:26 AM, Kseniya Blashchuk wrote:
> Hi all!
> Does anybody have experience with asterisk on Hyper-V? My
> test setup with Ubuntu 16 and asterisk 13.1 (ubuntu repo)
> shows sound distortion. I have analyzed the RTP flow with
> wireshark and I see high skew and delta values when the
> traffic leaves the hypervisor, however everything is okay
> when a capture is taken from a VM itself. I have read that
> there can be timing problems with Hyper-V. I have tried to
> disable time sync with the machine and tried different
> clocksources. I have also tried to change asterisk timing
> interface to dahdi (dummy) - nothing helped so far.
> Hyper-V version is 12p2.
> Does anybody have a working setup with Hyper-V?
>
>
>

-- 
С уважением, Дмитрий Ермаков

--

_
-- Bandwidth and Colocation Provided by
http://www.api-digital.com --

Check out the new Asterisk community forum at:
https://community.asterisk.org/


New to Asterisk? Start here:
     
https://wiki.asterisk.org/wiki/display/AST/Getting+Started


asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at:
https://community.asterisk.org/ 

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started


asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


-- 
_
-- Bandwidth and Colocation Provid

Re: [asterisk-users] asterisk and Hyper-V

2017-12-18 Thread Kseniya Blashchuk
Dmitry, are you using CentOS? What kernel version are you using? I will try
with the same to see if it can be also a kernel-related issue.

пн, 18 дек. 2017 г. в 11:35, Kseniya Blashchuk :

> Thank you for a quick answer, Dmitry!
>
> We have tried the settings you suggested but nothing helped. The machine
> is running 4.4.0-104 kernel, 4 cores, Intel(R) Xeon(R) CPU E5-2620 v3 @
> 2.40GHz, clocksource is hyperv_clocksource_tsc_page, timing module is
> res_timing_timerfd.so. We have also tried to set 50% Reserve - no luck :(.
>
> пн, 18 дек. 2017 г. в 10:49, Dmitriy Ermakov :
>
>> Hi, Kseniya!
>>
>> I have three installations of Asterisk (as FreePBX but I think it is not
>> important). They work fine.
>>
>> I have made some settings in Asterisk and Hyper-V:
>>
>> Asterisk: timing interface - timerfd.
>>
>> Hyper-V:
>>
>>1. Virtual Machine => Network Adapter => Hardware Acceleration =>
>>Virtual Machine Queue - Disable it;
>>2. Virtual Machine => Processor => Virtual Machine Reserve
>>(percentage) - set at least 25% (if you have 4 virtual cores for your
>>Asterisk). You can try to set reserve more or less then 25% - test it and,
>>please, send email here;
>>3. Virtual Machine => Integration Services => Time synchronisation -
>>enable it.
>>
>> This settings helped me.
>>
>> Also check your Linux Kernel version - it must be 3.10 or newer. I saw
>> very bad "timing test" results on kernel 2.6.32.
>>
>> On 12/18/2017 10:26 AM, Kseniya Blashchuk wrote:
>>
>> Hi all!
>> Does anybody have experience with asterisk on Hyper-V? My test setup with
>> Ubuntu 16 and asterisk 13.1 (ubuntu repo) shows sound distortion. I have
>> analyzed the RTP flow with wireshark and I see high skew and delta values
>> when the traffic leaves the hypervisor, however everything is okay when a
>> capture is taken from a VM itself. I have read that there can be timing
>> problems with Hyper-V. I have tried to disable time sync with the machine
>> and tried different clocksources. I have also tried to change asterisk
>> timing interface to dahdi (dummy) - nothing helped so far. Hyper-V version
>> is 12p2.
>> Does anybody have a working setup with Hyper-V?
>>
>>
>>
>>
>> --
>> С уважением, Дмитрий Ермаков
>>
>> --
>> _
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> Check out the new Asterisk community forum at:
>> https://community.asterisk.org/
>>
>> New to Asterisk? Start here:
>>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] asterisk and Hyper-V

2017-12-18 Thread Kseniya Blashchuk
Thank you for a quick answer, Dmitry!

We have tried the settings you suggested but nothing helped. The machine is
running 4.4.0-104 kernel, 4 cores, Intel(R) Xeon(R) CPU E5-2620 v3 @
2.40GHz, clocksource is hyperv_clocksource_tsc_page, timing module is
res_timing_timerfd.so. We have also tried to set 50% Reserve - no luck :(.

пн, 18 дек. 2017 г. в 10:49, Dmitriy Ermakov :

> Hi, Kseniya!
>
> I have three installations of Asterisk (as FreePBX but I think it is not
> important). They work fine.
>
> I have made some settings in Asterisk and Hyper-V:
>
> Asterisk: timing interface - timerfd.
>
> Hyper-V:
>
>1. Virtual Machine => Network Adapter => Hardware Acceleration =>
>Virtual Machine Queue - Disable it;
>2. Virtual Machine => Processor => Virtual Machine Reserve
>(percentage) - set at least 25% (if you have 4 virtual cores for your
>Asterisk). You can try to set reserve more or less then 25% - test it and,
>please, send email here;
>3. Virtual Machine => Integration Services => Time synchronisation -
>enable it.
>
> This settings helped me.
>
> Also check your Linux Kernel version - it must be 3.10 or newer. I saw
> very bad "timing test" results on kernel 2.6.32.
>
> On 12/18/2017 10:26 AM, Kseniya Blashchuk wrote:
>
> Hi all!
> Does anybody have experience with asterisk on Hyper-V? My test setup with
> Ubuntu 16 and asterisk 13.1 (ubuntu repo) shows sound distortion. I have
> analyzed the RTP flow with wireshark and I see high skew and delta values
> when the traffic leaves the hypervisor, however everything is okay when a
> capture is taken from a VM itself. I have read that there can be timing
> problems with Hyper-V. I have tried to disable time sync with the machine
> and tried different clocksources. I have also tried to change asterisk
> timing interface to dahdi (dummy) - nothing helped so far. Hyper-V version
> is 12p2.
> Does anybody have a working setup with Hyper-V?
>
>
>
>
> --
> С уважением, Дмитрий Ермаков
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users