Re: [asterisk-users] gsm codec compile

2014-03-03 Thread Rodrigo Borges Pereira
Try to set PROC to arm.


On Mon, Mar 3, 2014 at 7:13 PM, Doug dsc3...@yahoo.com wrote:

 I was successful in compiling asterisk in raspbien except for the
 following error If I enable the gsm codec. It appears there is something in
 the Makefile n this directory that needs to be changed. Probably involving
 optimization. Not sure why it does not recognize the processor since it is
 one that is mentioned in the Makefile.  Any help would be appreciated.

 make[2]: Entering directory `/usr/src/asterisk/codecs/gsm'
[AS] src/k6opt.s - src/k6opt.o
 Assembler messages:
 Error: unknown architecture `armv6l'

 Error: unrecognized option -march=armv6l
 make[2]: *** [src/k6opt.o] Error 1

 Here are the lines in the Makefile -

 ifeq (, $(findstring $(OSARCH) , Darwin SunOS ))
 ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b
 arm5b armeb hppa2.0 ppc powerpc ppc64 ia64 s390 bfin mipsel
 mips))
 ifeq (, $(findstring $(shell uname -m) , ppc ppc64 alpha armv4l arm5b
 armv5b armv61 armv7l s390 ))
 OPTIMIZE+=-march=$(PROC)
 endif
 endif
 endif

 gcc is -

 Thread model: posix
 gcc version 4.6.3 (Debian 4.6.3-14+rpi1)

 # uname -m
 armv6l


 Doug http://www.crompton.com/

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] gsm codec compile

2014-03-03 Thread Rodrigo Borges Pereira
what about editing makeopts.in to have PROC=arm ?


On Mon, Mar 3, 2014 at 9:48 PM, Doug dsc3...@yahoo.com wrote:

 OK set PROC to -

 OPTIMIZE+=-march=arm

 and now getting tons of errors in k6opt.s

 src/k6opt.s:350: Error: bad instruction `psllw %mm3,%mm0'
 src/k6opt.s:351: Error: bad instruction `movd %mm0,%eax'
 src/k6opt.s:352: Error: selected processor does not support ARM mode `movw
 %ax,(%esi)'
 src/k6opt.s:356: Error: bad instruction `emms'
 src/k6opt.s:358: Error: bad instruction `popl %esi'
 src/k6opt.s:359: Error: bad instruction `leave'
 src/k6opt.s:360: Error: bad instruction `ret'
 src/k6opt.s:367: Error: unrecognized symbol type 
 src/k6opt.s:372: Error: unrecognized symbol type 
 src/k6opt.s:382: Error: unrecognized symbol type 
 src/k6opt.s:384: Error: bad instruction `pushl %ebp'
 src/k6opt.s:385: Error: bad instruction `movl %esp,%ebp'
 src/k6opt.s:386: Error: bad instruction `pushl %esi'

 Doug Crompton
 WA3DSP
 http://www.crompton.com


   On Monday, March 3, 2014 3:18 PM, Rodrigo Borges Pereira 
 rodrigoborgespere...@gmail.com wrote:

 Try to set PROC to arm.


 On Mon, Mar 3, 2014 at 7:13 PM, Doug dsc3...@yahoo.com wrote:

 I was successful in compiling asterisk in raspbien except for the
 following error If I enable the gsm codec. It appears there is something in
 the Makefile n this directory that needs to be changed. Probably involving
 optimization. Not sure why it does not recognize the processor since it is
 one that is mentioned in the Makefile.  Any help would be appreciated.

 make[2]: Entering directory `/usr/src/asterisk/codecs/gsm'
[AS] src/k6opt.s - src/k6opt.o
 Assembler messages:
 Error: unknown architecture `armv6l'

 Error: unrecognized option -march=armv6l
 make[2]: *** [src/k6opt.o] Error 1

 Here are the lines in the Makefile -

 ifeq (, $(findstring $(OSARCH) , Darwin SunOS ))
 ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b
 arm5b armeb hppa2.0 ppc powerpc ppc64 ia64 s390 bfin mipsel
 mips))
 ifeq (, $(findstring $(shell uname -m) , ppc ppc64 alpha armv4l arm5b
 armv5b armv61 armv7l s390 ))
 OPTIMIZE+=-march=$(PROC)
 endif
 endif
 endif

 gcc is -

 Thread model: posix
 gcc version 4.6.3 (Debian 4.6.3-14+rpi1)

 # uname -m
 armv6l


 Doug http://www.crompton.com/

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Problem with pri show channels on rasterisk (11.7)

2014-02-26 Thread Rodrigo Borges Pereira
Sorry to insist. Maybe I should submit this as a bug?

Thanks.


On Tue, Feb 25, 2014 at 7:57 PM, Rodrigo Borges Pereira 
rodrigoborgespere...@gmail.com wrote:

 Hi,

 I'm running a test system with Ast 11.7 and DAHDI 2.9.0. I loaded a TE205P
 card. Then I enter asterisk console, and once I do a pri show channels,
 the console no longer works correctly. There's no output for any command
 after that. If I type pri show and hit tab for completion, console
 freezes there, I need to kill session.

 Any hints? new bug? known issue?

 Tks

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Problem with pri show channels on rasterisk (11.7)

2014-02-26 Thread Rodrigo Borges Pereira
Indeed, I tested two more cards on this system, and I don't get the same
problem with them. Unfortunately, different models (TE122P and TE110P), but
still it seems to suggest a problem with the TE205P. Weird manifestation
though, because everything else seems ok with, even a patlooptest is just
fine. Too bad it's OOW by now :)

Thanks.


On Wed, Feb 26, 2014 at 7:21 PM, Shaun Ruffell sruff...@digium.com wrote:

 On Wed, Feb 26, 2014 at 05:34:02PM +, Rodrigo Borges Pereira wrote:
  Sorry to insist. Maybe I should submit this as a bug?
 
  Thanks.

 As the owner of a TE205P, it might be easiest to contact Digium's
 technical support for installation assistance.

 I personally am not aware of any general issues when running pri
 show channels

  On Tue, Feb 25, 2014 at 7:57 PM, Rodrigo Borges Pereira 
  rodrigoborgespere...@gmail.com wrote:
 
   Hi,
  
   I'm running a test system with Ast 11.7 and DAHDI 2.9.0. I loaded a
 TE205P
   card. Then I enter asterisk console, and once I do a pri show
 channels,
   the console no longer works correctly. There's no output for any
 command
   after that. If I type pri show and hit tab for completion, console
   freezes there, I need to kill session.
  
   Any hints? new bug? known issue?
  
   Tks
  

 --
 Shaun Ruffell
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

[asterisk-users] Problem with pri show channels on rasterisk (11.7)

2014-02-25 Thread Rodrigo Borges Pereira
Hi,

I'm running a test system with Ast 11.7 and DAHDI 2.9.0. I loaded a TE205P
card. Then I enter asterisk console, and once I do a pri show channels,
the console no longer works correctly. There's no output for any command
after that. If I type pri show and hit tab for completion, console
freezes there, I need to kill session.

Any hints? new bug? known issue?

Tks
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

[asterisk-users] Problem/error with DAHDI tools 2.9.0.1

2014-02-12 Thread Rodrigo Borges Pereira
Hello,

Getting this error on dahdi_cfg. Reverting to 2.8 the error goes away:

*line 15: Unable to create 'dahdi_cfg' mutex.*

Is this a problem?

Thanks in advance.

Full detail:

[ebox] dahdi_cfg -vvv
DAHDI Tools Version - 2.9.0.1

DAHDI Version: 2.9.0
Echo Canceller(s): HWEC
Configuration
==

SPAN 1: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 3: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 4: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 01)
Channel 02: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 02)
Channel 03: Hardware assisted D-channel (Default) (Echo Canceler: kb1)
(Slaves: 03)
Channel 04: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 04)
Channel 05: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 05)
Channel 06: Hardware assisted D-channel (Default) (Echo Canceler: kb1)
(Slaves: 06)
Channel 07: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 07)
Channel 08: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 08)
Channel 09: Hardware assisted D-channel (Default) (Echo Canceler: kb1)
(Slaves: 09)
Channel 10: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 10)
Channel 11: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 11)
Channel 12: Hardware assisted D-channel (Default) (Echo Canceler: kb1)
(Slaves: 12)

12 channels to configure.

Notice: Configuration file is /etc/dahdi/system.conf
*line 15: Unable to create 'dahdi_cfg' mutex.*
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Problem/error with DAHDI tools 2.9.0.1

2014-02-12 Thread Rodrigo Borges Pereira
Hello Shaun,

This system is a custom distro, based on debian and currently built around
kernel 2.6.35.8. Is sem_open introduced only in DAHDI 2.9 ?




On Wed, Feb 12, 2014 at 5:37 PM, Shaun Ruffell sruff...@digium.com wrote:

 On Wed, Feb 12, 2014 at 05:21:24PM +, Rodrigo Borges Pereira wrote:
  Hello,
 
  Getting this error on dahdi_cfg. Reverting to 2.8 the error goes away:
 
  *line 15: Unable to create 'dahdi_cfg' mutex.*
 
  Is this a problem?
 
  Thanks in advance.
 
  Full detail:
 
  [ebox] dahdi_cfg -vvv
  DAHDI Tools Version - 2.9.0.1
 
  DAHDI Version: 2.9.0
  Echo Canceller(s): HWEC
  Configuration
  ==
 
  SPAN 1: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
  SPAN 2: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
  SPAN 3: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
  SPAN 4: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
 
  Channel map:
 
  Channel 01: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 01)
  Channel 02: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 02)
  Channel 03: Hardware assisted D-channel (Default) (Echo Canceler: kb1)
  (Slaves: 03)
  Channel 04: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 04)
  Channel 05: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 05)
  Channel 06: Hardware assisted D-channel (Default) (Echo Canceler: kb1)
  (Slaves: 06)
  Channel 07: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 07)
  Channel 08: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 08)
  Channel 09: Hardware assisted D-channel (Default) (Echo Canceler: kb1)
  (Slaves: 09)
  Channel 10: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 10)
  Channel 11: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 11)
  Channel 12: Hardware assisted D-channel (Default) (Echo Canceler: kb1)
  (Slaves: 12)
 
  12 channels to configure.
 
  Notice: Configuration file is /etc/dahdi/system.conf
  *line 15: Unable to create 'dahdi_cfg' mutex.*

 Which distro / version are you running? It appears that the sem_open
 call has failed on this platform.

 There does appear to be a mistake in the code though with the error
 reporting. 'perror' should be used instead of 'error'.  The line
 number in the config file isn't related to this error report.

 --
 Shaun Ruffell
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Problem/error with DAHDI tools 2.9.0.1

2014-02-12 Thread Rodrigo Borges Pereira
Maybe the problem is lack of tmpfs?

statfs(/dev/shm, 0xbff88568)  = -1 ENOENT (No such file or
directory)

Is this a new requirement for DAHDI?




On Wed, Feb 12, 2014 at 5:49 PM, Rodrigo Borges Pereira 
rodrigoborgespere...@gmail.com wrote:

 Hello Shaun,

 This system is a custom distro, based on debian and currently built around
 kernel 2.6.35.8. Is sem_open introduced only in DAHDI 2.9 ?




 On Wed, Feb 12, 2014 at 5:37 PM, Shaun Ruffell sruff...@digium.comwrote:

 On Wed, Feb 12, 2014 at 05:21:24PM +, Rodrigo Borges Pereira wrote:
  Hello,
 
  Getting this error on dahdi_cfg. Reverting to 2.8 the error goes away:
 
  *line 15: Unable to create 'dahdi_cfg' mutex.*
 
  Is this a problem?
 
  Thanks in advance.
 
  Full detail:
 
  [ebox] dahdi_cfg -vvv
  DAHDI Tools Version - 2.9.0.1
 
  DAHDI Version: 2.9.0
  Echo Canceller(s): HWEC
  Configuration
  ==
 
  SPAN 1: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
  SPAN 2: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
  SPAN 3: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
  SPAN 4: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
 
  Channel map:
 
  Channel 01: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 01)
  Channel 02: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 02)
  Channel 03: Hardware assisted D-channel (Default) (Echo Canceler: kb1)
  (Slaves: 03)
  Channel 04: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 04)
  Channel 05: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 05)
  Channel 06: Hardware assisted D-channel (Default) (Echo Canceler: kb1)
  (Slaves: 06)
  Channel 07: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 07)
  Channel 08: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 08)
  Channel 09: Hardware assisted D-channel (Default) (Echo Canceler: kb1)
  (Slaves: 09)
  Channel 10: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 10)
  Channel 11: Clear channel (Default) (Echo Canceler: kb1) (Slaves: 11)
  Channel 12: Hardware assisted D-channel (Default) (Echo Canceler: kb1)
  (Slaves: 12)
 
  12 channels to configure.
 
  Notice: Configuration file is /etc/dahdi/system.conf
  *line 15: Unable to create 'dahdi_cfg' mutex.*

 Which distro / version are you running? It appears that the sem_open
 call has failed on this platform.

 There does appear to be a mistake in the code though with the error
 reporting. 'perror' should be used instead of 'error'.  The line
 number in the config file isn't related to this error report.

 --
 Shaun Ruffell
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Problem/error with DAHDI tools 2.9.0.1

2014-02-12 Thread Rodrigo Borges Pereira
Well, I created /dev/shm and mounted tmpfs on it, and the problem is no
more. Just creating /dev/shm was not enough.

thanks.


On Wed, Feb 12, 2014 at 6:06 PM, Shaun Ruffell sruff...@digium.com wrote:

 On Wed, Feb 12, 2014 at 05:55:41PM +, Rodrigo Borges Pereira wrote:
  Maybe the problem is lack of tmpfs?
 
  statfs(/dev/shm, 0xbff88568)  = -1 ENOENT (No such file or
  directory)
 
  Is this a new requirement for DAHDI?

 tmpfs is not a requirement per-se, but it's how most POSIX libraries
 on linux (including the one installed on your system) implement the
 named semaphores.

 --
 Shaun Ruffell
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Problem/error with DAHDI tools 2.9.0.1

2014-02-12 Thread Rodrigo Borges Pereira
Just one last question: do you have another suggestion about this?

thanks.


On Wed, Feb 12, 2014 at 6:07 PM, Rodrigo Borges Pereira 
rodrigoborgespere...@gmail.com wrote:

 Well, I created /dev/shm and mounted tmpfs on it, and the problem is no
 more. Just creating /dev/shm was not enough.

 thanks.


 On Wed, Feb 12, 2014 at 6:06 PM, Shaun Ruffell sruff...@digium.comwrote:

 On Wed, Feb 12, 2014 at 05:55:41PM +, Rodrigo Borges Pereira wrote:
  Maybe the problem is lack of tmpfs?
 
  statfs(/dev/shm, 0xbff88568)  = -1 ENOENT (No such file or
  directory)
 
  Is this a new requirement for DAHDI?

 tmpfs is not a requirement per-se, but it's how most POSIX libraries
 on linux (including the one installed on your system) implement the
 named semaphores.

 --
 Shaun Ruffell
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Problem/error with DAHDI tools 2.9.0.1

2014-02-12 Thread Rodrigo Borges Pereira
Ok thanks Shaun!

Best regards.


On Wed, Feb 12, 2014 at 6:22 PM, Shaun Ruffell sruff...@digium.com wrote:

 On Wed, Feb 12, 2014 at 06:12:41PM +, Rodrigo Borges Pereira wrote:
  Just one last question: do you have another suggestion about this?
 
  thanks.

 Not really. There are other ways that dahdi_cfg could serialize
 itself, but POSIX semaphores are widely deployed on systems that are
 installing newer versions of DAHDI.

 Although, dahdi-tools should probably have a configure script test
 for a working implementation of sem_open and use another mechanism
 if it is not available.

 --
 Shaun Ruffell
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] B410P BRI card testing with patgen / pattest

2014-01-29 Thread Rodrigo Borges Pereira
Hello Russ,

Actually this was with pattest and patgen, not patlooptest. I don't know if
I can use patlooptest with B410P, should I?

Thanks.


On Wed, Jan 29, 2014 at 6:33 PM, Russ Meyerriecks
rmeyerrie...@digium.comwrote:

 On Tue, Jan 28, 2014 at 11:56 AM, Rodrigo Borges Pereira
 rodrigoborgespere...@gmail.com wrote:

  (.Error 44119): Unexpected result, 255 != 0, 1 bytes since last error.

  Would this be the kind of output that matches a problem card or something
  may be wrong in my setup? I'm using DAHDI 2.8.0.1.

 patlooptest works by sending an incremental sequence of bytes down the
 transmit side (1,2,3,4,...). Then on the receive side, it watches for
 the same sequence.

 In this case, you aren't receiving any valid patterns.
 It's likely a configuration error (unless the card is known bad). You
 might try double checking your test procedure.

 --
 Russ Meyerriecks
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 direct: +1 256-428-6025
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

[asterisk-users] B410P BRI card testing with patgen / pattest

2014-01-28 Thread Rodrigo Borges Pereira
Hello,

I'm not sure if my previous e-mail went through, it contained a link so it
may have been blocked, Apologies if this is a duplicate.

I have a card here at the office that I'm trying to validate with some
tests. For now I've followed the  instructions available in the KB
(Back-to-Back-Pattern-Test-for-BRI-Adapters)

I get this kind of output:

[..]
(.Error 44119): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44120): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44121): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44122): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44123): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44124): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44125): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44126): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44127): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44128): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44129): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44130): Unexpected result, 255 != 0, 1 bytes since last error.
[...]

This goes on continuously, like a massive flood, not a small burst in the
beginning like the KB article mentions.

Would this be the kind of output that matches a problem card or something
may be wrong in my setup? I'm using DAHDI 2.8.0.1.

Any input appreciated, thanks!

Regards,
Rodrigo
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Integration with outlook

2014-01-28 Thread Rodrigo Borges Pereira
There's also SIPTAPI: http://www.ipcom.at/en/telephony/siptapi/


On Tue, Jan 28, 2014 at 7:13 PM, bilal ghayyad bilmar...@yahoo.com wrote:

 Hello;

 Is there a method way to be able to dial the phone number through
 asterisk from the outlook email contact?

 Regards
 Bilal

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

[asterisk-users] B410P BRI card testing with patgen / pattest

2014-01-27 Thread Rodrigo Borges Pereira
Hello,

I have a card here at the office that I'm trying to validate with some
tests. For now I've followed the  instructions available here:
http://kb.digium.com/articles/Configuration/Back-to-Back-Pattern-Test-for-BRI-Adapters
.

I get this kind of output:

[..]
(.Error 44119): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44120): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44121): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44122): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44123): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44124): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44125): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44126): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44127): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44128): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44129): Unexpected result, 255 != 0, 1 bytes since last error.
(Error 44130): Unexpected result, 255 != 0, 1 bytes since last error.
[...]

This goes on continuously, like a massive flood, not a small burst in the
beginning like the KB article mentions.

Would this be the kind of output that matches a problem card or something
may be wrong in my setup? I'm using DAHDI 2.8.0.1.

Any input appreciated, thanks!

Regards,
Rodrigo
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] patlooptest output - errors

2014-01-15 Thread Rodrigo Borges Pereira
Still no luck:

shell pgrep asterisk
shell ps -ef | grep asterisk
shell lsof /dev/dahdi/channel
shell lsof /dev/dahdi/1
shell lsof /dev/dahdi/2
shell chrt -f 99 patlooptest /dev/dahdi/2 -t 300 -v
/dev/dahdi/2: Device or resource busy

I can assure no PBX related process is running.



On Wed, Jan 15, 2014 at 4:14 PM, Shaun Ruffell sruff...@digium.com wrote:

 On Wed, Jan 15, 2014 at 04:00:19AM +, Rodrigo Borges Pereira wrote:
  Ok, I'm a believer now:
 
 
  shell chrt -f 99 patlooptest /dev/dahdi/1 -t 300 -v
  Using Timeout of 300 Seconds
  Going for it...
  Timeout achieved Ending Program
  Test ran 28295 loops of 2039 bytes/loop with 0 errors
 
 
  Still, any hint about this?
 
  shell lsof /dev/dahdi/2
  shell
  shell chrt -f 99 patlooptest /dev/dahdi/2 -t 300 -v
  /dev/dahdi/2: Device or resource busy
 
  Thanks.

 Asterisk doesn't necessarily have to open channels via
 /dev/dahdi/channel number.  In fact, they generally open
 /dev/dahdi/channel and then use the SPECIFY ioctl to bind that
 particular file descriptor to a specific dahdi channel.

 So try 'lsof /dev/dahdi/channel'  and see what you see.

 Cheers,
 Shaun

 --
 Shaun Ruffell
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] patlooptest output - errors

2014-01-15 Thread Rodrigo Borges Pereira
No, I see this:

shell cat /proc/dahdi/2
Span 2: TE2/0/2 T2XXP (PCI) Card 0 Span 2 (MASTER) B8ZS/ESF LOOP
CRC4 error count: 1
E-bit error count: 1

  25 TE2/0/2/1 Clear Master LOOP
  26 TE2/0/2/2 Clear LOOP
  27 TE2/0/2/3 Clear LOOP
  28 TE2/0/2/4 Clear LOOP
  29 TE2/0/2/5 Clear LOOP
  30 TE2/0/2/6 Clear LOOP
  31 TE2/0/2/7 Clear LOOP
  32 TE2/0/2/8 Clear LOOP
  33 TE2/0/2/9 Clear LOOP
  34 TE2/0/2/10 Clear LOOP
  35 TE2/0/2/11 Clear LOOP
  36 TE2/0/2/12 Clear LOOP
  37 TE2/0/2/13 Clear LOOP
  38 TE2/0/2/14 Clear LOOP
  39 TE2/0/2/15 Clear LOOP
  40 TE2/0/2/16 Clear LOOP
  41 TE2/0/2/17 Clear LOOP
  42 TE2/0/2/18 Clear LOOP
  43 TE2/0/2/19 Clear LOOP
  44 TE2/0/2/20 Clear LOOP
  45 TE2/0/2/21 Clear LOOP
  46 TE2/0/2/22 Clear LOOP
  47 TE2/0/2/23 Clear LOOP
  48 TE2/0/2/24 Clear LOOP

shell cat /proc/dahdi/1
Span 1: TE2/0/1 T2XXP (PCI) Card 0 Span 1 B8ZS/ESF LOOP

   1 TE2/0/1/1 Clear Master RED
   2 TE2/0/1/2 Clear RED
   3 TE2/0/1/3 Clear RED
   4 TE2/0/1/4 Clear RED
   5 TE2/0/1/5 Clear RED
   6 TE2/0/1/6 Clear RED
   7 TE2/0/1/7 Clear RED
   8 TE2/0/1/8 Clear RED
   9 TE2/0/1/9 Clear RED
  10 TE2/0/1/10 Clear RED
  11 TE2/0/1/11 Clear RED
  12 TE2/0/1/12 Clear RED
  13 TE2/0/1/13 Clear RED
  14 TE2/0/1/14 Clear RED
  15 TE2/0/1/15 Clear RED
  16 TE2/0/1/16 Clear RED
  17 TE2/0/1/17 Clear RED
  18 TE2/0/1/18 Clear RED
  19 TE2/0/1/19 Clear RED
  20 TE2/0/1/20 Clear RED
  21 TE2/0/1/21 Clear RED
  22 TE2/0/1/22 Clear RED
  23 TE2/0/1/23 Clear RED
  24 TE2/0/1/24 Clear RED


On Wed, Jan 15, 2014 at 4:28 PM, Shaun Ruffell sruff...@digium.com wrote:

 On Wed, Jan 15, 2014 at 04:18:55PM +, Rodrigo Borges Pereira wrote:
  Still no luck:
 
  shell pgrep asterisk
  shell ps -ef | grep asterisk
  shell lsof /dev/dahdi/channel
  shell lsof /dev/dahdi/1
  shell lsof /dev/dahdi/2
  shell chrt -f 99 patlooptest /dev/dahdi/2 -t 300 -v
  /dev/dahdi/2: Device or resource busy
 
  I can assure no PBX related process is running.

 Do you see the channel listed as (in use) in /proc/dahdi/1?  I.e.

 Before opening channel 2:

   [root@112-17-24-10 ~]# cat /proc/dahdi/1
   Span 1: WCTDM/0 Wildcard A8B (MASTER)

  1 WCTDM/0/0 FXOKS (EC: VPMOCT032 - INACTIVE)
  2 WCTDM/0/1 FXOKS (EC: VPMOCT032 - INACTIVE)
  3 WCTDM/0/2 FXOKS (EC: VPMOCT032 - INACTIVE)
  4 WCTDM/0/3 FXOKS (EC: VPMOCT032 - INACTIVE)
  5 WCTDM/0/4 FXOKS (EC: VPMOCT032 - INACTIVE)
  6 WCTDM/0/5 FXSKS RED (EC: VPMOCT032 - INACTIVE)
  7 WCTDM/0/6 Reserved
  8 WCTDM/0/7 Reserved

 After opening channel 2:

   [root@112-17-24-10 ~]# cat /proc/dahdi/1
   Span 1: WCTDM/0 Wildcard A8B (MASTER)

  1 WCTDM/0/0 FXOKS (EC: VPMOCT032 - INACTIVE)
  2 WCTDM/0/1 FXOKS (In use) (EC: VPMOCT032 - INACTIVE)
  3 WCTDM/0/2 FXOKS (EC: VPMOCT032 - INACTIVE)
  4 WCTDM/0/3 FXOKS (EC: VPMOCT032 - INACTIVE)
  5 WCTDM/0/4 FXOKS (EC: VPMOCT032 - INACTIVE)
  6 WCTDM/0/5 FXSKS RED (EC: VPMOCT032 - INACTIVE)
  7 WCTDM/0/6 Reserved
  8 WCTDM/0/7 Reserved

 --
 Shaun Ruffell
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] patlooptest output - errors

2014-01-15 Thread Rodrigo Borges Pereira
Shaun, sorry to insist on this, but this kind of diagnostic is new for me
and extremely valuable for my support operations.

You say when configured this way.. do you mean regarding dahdi? Here's my
system conf, based on your KB article for loop testing:

shell cat system.conf
loadzone=us
defaultzone=us
span=1,0,0,esf,b8zs
clear=1-24
span=2,0,0,esf,b8zs
clear=25-48

How could  I configure now so I can get conclusive readings for span2?

Thanks.




On Wed, Jan 15, 2014 at 5:06 PM, Shaun Ruffell sruff...@digium.com wrote:

 On Wed, Jan 15, 2014 at 05:02:10PM +, Rodrigo Borges Pereira wrote:
  No, I see this:
 

 [snip]

  shell cat /proc/dahdi/1
  Span 1: TE2/0/1 T2XXP (PCI) Card 0 Span 1 B8ZS/ESF LOOP
 
 1 TE2/0/1/1 Clear Master RED
 2 TE2/0/1/2 Clear RED
 3 TE2/0/1/3 Clear RED
 4 TE2/0/1/4 Clear RED
 5 TE2/0/1/5 Clear RED
 6 TE2/0/1/6 Clear RED
 7 TE2/0/1/7 Clear RED
 8 TE2/0/1/8 Clear RED
 9 TE2/0/1/9 Clear RED
10 TE2/0/1/10 Clear RED
11 TE2/0/1/11 Clear RED
12 TE2/0/1/12 Clear RED
13 TE2/0/1/13 Clear RED
14 TE2/0/1/14 Clear RED
15 TE2/0/1/15 Clear RED
16 TE2/0/1/16 Clear RED
17 TE2/0/1/17 Clear RED
18 TE2/0/1/18 Clear RED
19 TE2/0/1/19 Clear RED
20 TE2/0/1/20 Clear RED
21 TE2/0/1/21 Clear RED
22 TE2/0/1/22 Clear RED
23 TE2/0/1/23 Clear RED
24 TE2/0/1/24 Clear RED

 That explains it. Your channels are bound together in one clear
 channel on span 1. When configured this way, you can only open the
 master channels. All the data from the other channels (timeslots)
 are then added to this master channel.

 --
 Shaun Ruffell
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] patlooptest output - errors

2014-01-15 Thread Rodrigo Borges Pereira
Got it! It's working fine  with 25. Actually, I just revisited your KB
article and it does clearly instruct  to test 1, 25, and so forth... But I
was still thinking spans, not channels. So my apologies for this RTFM
moment.

Thanks!


On Wed, Jan 15, 2014 at 5:43 PM, Shaun Ruffell sruff...@digium.com wrote:

 On Wed, Jan 15, 2014 at 05:29:44PM +, Rodrigo Borges Pereira wrote:
  Shaun, sorry to insist on this, but this kind of diagnostic is new for me
  and extremely valuable for my support operations.
 
  You say when configured this way.. do you mean regarding dahdi? Here's
 my
  system conf, based on your KB article for loop testing:
 
  shell cat system.conf
  loadzone=us
  defaultzone=us
  span=1,0,0,esf,b8zs
  clear=1-24
  span=2,0,0,esf,b8zs
  clear=25-48
 
  How could  I configure now so I can get conclusive readings for span2?

 No problem. So given the above configuration, there are only two
 channels that can be opened from user space, channels 1 and 25.

 So if you would like to keep things configured this way and check
 span 2, you would then just run patlooptest on channel 25.

 If you want to run patlooptest on individual channels in the span,
 configure like a PRI is normally:

 loadzone=us
 defaultzone=us
 span=1,0,0,esf,b8zs
 bchan=1-23
 dchan=24
 span=2,0,0,esf,b8zs
 bchan=25-47
 dchan=48


 Then you will be able to run patlooptest on all channels expcept 24
 and 48 (which now have HDLC framing enabled on them).

 --
 Shaun Ruffell
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

[asterisk-users] patlooptest output - errors

2014-01-14 Thread Rodrigo Borges Pereira
Hi there,

Running patlooptest following instructions on Digium KB, using dahdi 2.5.1
with a TE205P. I'm getting this kind of output (not full output). Note, I'm
using a standard cat5 ethernet cable (30cm), with a Digium T10i crossover.


Error 4985 (loop 19898, offset 425, error 214): Unexpected result, Read:
0xff, Expected 0x00.
Offset 422  { ff ff ff ff ff ff ff }
Error 4986 (loop 19898, offset 426, error 215): Unexpected result, Read:
0xff, Expected 0x00.
Offset 423  { ff ff ff ff ff ff ff }
Error 4987 (loop 19898, offset 427, error 216): Unexpected result, Read:
0xff, Expected 0x00.
Offset 424  { ff ff ff ff ff ff ff }
Error 4988 (loop 19898, offset 428, error 217): Unexpected result, Read:
0xff, Expected 0x00.
Offset 425  { ff ff ff ff ff ff ff }
Error 4989 (loop 19898, offset 429, error 218): Unexpected result, Read:
0xff, Expected 0x00.
Offset 426  { ff ff ff ff ff ff 2e }
Error 4990 (loop 19898, offset 430, error 219): Unexpected result, Read:
0xff, Expected 0x00.
Offset 427  { ff ff ff ff ff 2e 2f }
Error 4991 (loop 19898, offset 431, error 220): Unexpected result, Read:
0xff, Expected 0x00.
Offset 428  { ff ff ff ff 2e 2f 30 }
Error 4992 (loop 19898, offset 432, error 221): Unexpected result, Read:
0x2e, Expected 0x00.
Offset 429  { ff ff ff 2e 2f 30 31 }
Event: 29
Event: 30
Error 4993 (loop 24990, offset 0, error 1): Unexpected result, Read: 0x7e,
Expected 0x7a.
Offset 0  { 7e 7f 80 81 }
Error 4994 (loop 24990, offset 428, error 2): Unexpected result, Read:
0xff, Expected 0x2a.
Offset 425  { 27 28 29 ff ff ff ff }
Error 4995 (loop 24990, offset 429, error 3): Unexpected result, Read:
0xff, Expected 0x00.
Offset 426  { 28 29 ff ff ff ff 2a }
Error 4996 (loop 24990, offset 430, error 4): Unexpected result, Read:
0xff, Expected 0x00.
Offset 427  { 29 ff ff ff ff 2a 2b }

Cause for concern?

I'm testing a card which has been used before without issues. I'm just
playing with patlooptest for the first time, and wasn't expecting to see
this on a supposedly good card.

appreciate any input, thx.

rgds.
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] patlooptest output - errors

2014-01-14 Thread Rodrigo Borges Pereira
Thanks.

The cable is straight, and I was using it together with dahdi:maint. Both
spans are set to provide (0). I've now tested span 1 again without cable,
and still same kind of result:

Timeout achieved Ending Program
Test ran 28309 loops of 2039 bytes/loop with 3692 errors

Interestingly, span 2 goes into loop mode, but patlooptest can't access it:

 patlooptest /dev/dahdi/2 -t 300 -v
/dev/dahdi/2: Device or resource busy

And I do not have Asterisk running.

Mind, I have been told recently by Digium support that a fully conclusive
test (in the context of eventual RMA) requires the physical loopback. So I
am a bit confused in what's the most correct way of doing this kind of
tests. patlooptest + physical loopback? patlooptest alone? physical
loopback with some other method?

Thanks.






On Tue, Jan 14, 2014 at 6:15 PM, Russ Meyerriecks
rmeyerrie...@digium.comwrote:

 On Tue, Jan 14, 2014 at 11:58 AM, Rodrigo Borges Pereira
 rodrigoborgespere...@gmail.com wrote:

  Cause for concern?

 For patlooptest ensure that:
 - Your ethernet cable is straight through and not crossover
 - The span you're testing is set to provide timing, not recover
 - In dahdi_tools you can make utils and just use dahdi_maint to put
 the card into loopback without messing with cables.


 --
 Russ Meyerriecks
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 direct: +1 256-428-6025
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] patlooptest output - errors

2014-01-14 Thread Rodrigo Borges Pereira
Thanks for the tips. I forgot to mention, i did try lsof, and it comes out
with no result.

There is one thing I see different between the spans:

shell head /proc/dahdi/1
Span 1: TE2/0/1 T2XXP (PCI) Card 0 Span 1 B8ZS/ESF LOOP

   1 TE2/0/1/1 Clear Master RED
   2 TE2/0/1/2 Clear RED
   3 TE2/0/1/3 Clear RED
   4 TE2/0/1/4 Clear RED
   5 TE2/0/1/5 Clear RED
   6 TE2/0/1/6 Clear RED
   7 TE2/0/1/7 Clear RED
   8 TE2/0/1/8 Clear RED
shell head /proc/dahdi/2
Span 2: TE2/0/2 T2XXP (PCI) Card 0 Span 2 (MASTER) B8ZS/ESF LOOP
CRC4 error count: 1
E-bit error count: 1

  25 TE2/0/2/1 Clear Master LOOP
  26 TE2/0/2/2 Clear LOOP
  27 TE2/0/2/3 Clear LOOP
  28 TE2/0/2/4 Clear LOOP
  29 TE2/0/2/5 Clear LOOP
  30 TE2/0/2/6 Clear LOOP
shell cat /etc/dahdi/system.conf
loadzone=us
defaultzone=us
span=1,0,0,esf,b8zs
clear=1-24
span=2,0,0,esf,b8zs
clear=25-48

Note the CRC4 and E-bit lines on span 2.

 Right now both ports are in loop mode, no cable attached.

Maybe you guys @ Digium have seen this before as a symptom of card
malfunction?

Thanks.


On Tue, Jan 14, 2014 at 9:18 PM, Russ Meyerriecks
rmeyerrie...@digium.comwrote:

 On Tue, Jan 14, 2014 at 12:54 PM, Rodrigo Borges Pereira
 rodrigoborgespere...@gmail.com wrote:
  Interestingly, span 2 goes into loop mode, but patlooptest can't access
 it:
 
  patlooptest /dev/dahdi/2 -t 300 -v
  /dev/dahdi/2: Device or resource busy
 
  And I do not have Asterisk running.
 You should be able to use lsof /dev/dahdi/2 to find out what process
 has the file open.

  So I
  am a bit confused in what's the most correct way of doing this kind of
  tests. patlooptest + physical loopback? patlooptest alone? physical
 loopback
  with some other method?
 Physical loopback devices are nice because they encompass the cable
 into testing.
 Digital loopbacks are nice because you don't have to get up from your
 desk and plug something in :-) We use them a lot in our automated
 testing.

 One other thing to note. Sometimes patlooptest can be starved by the
 process scheduler. When this happens, it won't have enough time to
 produce or consume all the sequential bytes that it needs to. Then it
 will report errors. You can try increasing the scheduler priority
 with:
 chrt 99 patlooptest span ...

 --
 Russ Meyerriecks
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 direct: +1 256-428-6025
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] patlooptest output - errors

2014-01-14 Thread Rodrigo Borges Pereira
Ok, I'm a believer now:


shell chrt -f 99 patlooptest /dev/dahdi/1 -t 300 -v
Using Timeout of 300 Seconds
Going for it...
Timeout achieved Ending Program
Test ran 28295 loops of 2039 bytes/loop with 0 errors


Still, any hint about this?

shell lsof /dev/dahdi/2
shell
shell chrt -f 99 patlooptest /dev/dahdi/2 -t 300 -v
/dev/dahdi/2: Device or resource busy

Thanks.



On Wed, Jan 15, 2014 at 12:48 AM, Shaun Ruffell sruff...@digium.com wrote:

 On Tue, Jan 14, 2014 at 05:58:57PM +, Rodrigo Borges Pereira wrote:
 
  Running patlooptest following instructions on Digium KB, using dahdi
 2.5.1
  with a TE205P. I'm getting this kind of output (not full output). Note,
 I'm
  using a standard cat5 ethernet cable (30cm), with a Digium T10i
 crossover.

 [snip]

  Event: 29
  Event: 30

 [snip]

  Cause for concern?
 
  I'm testing a card which has been used before without issues. I'm just
  playing with patlooptest for the first time, and wasn't expecting to see
  this on a supposedly good card.
 
  appreciate any input, thx.

 Those events (29 and 30) indicate that patlooptest isn't able to
 keep up with the hardware.

 Do you get the same thing when you run patloop test with elevated
 permissions?

   $ chrt -f 99 patlooptest channel timeout

 Cheers,
 Shaun

 --
 Shaun Ruffell
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Remote extensions call drops after 20 seconds.

2013-12-18 Thread Rodrigo Borges Pereira
here's a checklist...

First, RTP port range not port forwarded correctly on the NAT router (check
rtp.conf).

Then, on sip.conf:

externip not correctly setup  (it should be the public IP of the NAT
router)?
nat setting not enabled for any outbound trunk and the extensions (nat=yes)
?
localnet not properly setup (to include subnets of local, un-nat'd
extensions) ?
canreinvite not disabled for any outbound trunk and for the extensions?

rgds




On Wed, Dec 18, 2013 at 8:34 PM, alp...@gmail.com alp...@gmail.com wrote:

 Thank you Eric for your reply. How Can I fix it?

 In server side, I opened RTP ports.


 On Wednesday, December 18, 2013, Eric Wieling wrote:

 Calls dropping after 20 seconds is often directmedia enabled when it
 should not be enabled or RTP keepalives enabled when they should not be
 enabled.  Dropping around 20 mins is often Session Timers being enabled
 when they don't work for the specific environment.

 -Original Message-
 From: asterisk-users-boun...@lists.digium.com [mailto:
 asterisk-users-boun...@lists.digium.com] On Behalf Of alp...@gmail.com
 Sent: Wednesday, December 18, 2013 3:09 PM
 To: asterisk-users@lists.digium.com
 Subject: [asterisk-users] Remote extensions call drops after 20 seconds.

 Hello. I have a problem with the configuration of a remote extensions.
 Calls are truncated at 20 seconds.

 I got my my NAT firewall properly configured. Here I attached my debug in
 CLI: http://pastebin.com/gh34E69f

 Thank you!

 --

 Allan Porras
 http://allanPorras.com http://www.AllanPorras.com Google Plus:
 http://goo.gl/BRkbX

 Twitter: @alpocr http://twitter/alpocr



 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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



 --
 Allan Porras
 http://allanPorras.com http://www.AllanPorras.com
 Google Plus: http://goo.gl/BRkbX
 Twitter: @alpocr http://twitter/alpocr




 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

[asterisk-users] Jetway, Atom, and Digium cards - play well together?

2013-12-04 Thread Rodrigo Borges Pereira
Hi,

I'd like to know from other people's experience using Asterisk and Digium
cards like the TDM410P and B410P on Atom system (.e. giwth D525 CPU) and
Jetway motherboards. Any operational instability, unexpected freezes, etc
or in your experience it's a stable combination?

Thanks in advance for any sharing!

Rgds.
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Asterisk and sites connected via IP-VPN

2013-12-04 Thread Rodrigo Borges Pereira
Have seen mostly a lot of hq/branch implementations using IPSEC over
standard Internet connections.. that's what seems most cost effective for
most smb's, imo, with the inherent trade-offs. Other than that, I'd say
private IP VPN's based on HDSL E1's.


On Wed, Dec 4, 2013 at 5:48 PM, er ic email.eherr9...@gmail.com wrote:

 Just wanted to get a feel for people in the community.

 I researched a lot of information but I wanted to know the communities
 perspective on this and didnt want to revive a dead thread:

 Any pros/cons for connection to asterisk boxes located at different sites
 via an IP-VPN or Frame Relay?

 I wanted to know the best cost effective way to connect the two remote
 boxes other than the Internet.

 Thanks in advanced!

 -E

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

[asterisk-users] Asterisk 1.4 and DAHDI 2.7

2013-11-05 Thread Rodrigo Borges Pereira
Hello,

Can someone confirm to me if Asterisk 1.4 can be used with DAHDI 2.7 ?

Thanks in advance.
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Asterisk 1.4 and DAHDI 2.7

2013-11-05 Thread Rodrigo Borges Pereira
Thanks Shaun. Will give it a go.

Regards,


On Tue, Nov 5, 2013 at 5:31 PM, Shaun Ruffell sruff...@digium.com wrote:

 On Tue, Nov 05, 2013 at 05:02:13PM +, Rodrigo Borges Pereira wrote:
  Hello,
 
  Can someone confirm to me if Asterisk 1.4 can be used with DAHDI 2.7 ?
 
  Thanks in advance.

 2.7 is not tested against the head of the Asterisk 1.4 branch, but
 it *should* work.

 Cheers,
 Shaun

 --
 Shaun Ruffell
 Digium, Inc. | Linux Kernel Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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