[asterisk-users] Asterisk crash in ast_find_ourip

2017-03-14 Thread Patrick Wakano
Hello list,

We've got an Asterisk crash in one of our servers and the core dump showed
following call tree.
Is this anyhow helpful to someone? Seems like a regular RTP / RTCP handling
that lead to a malloc crash

Grateful for any help!
Cheers,
Patrick

Thread 1 (Thread 0x7f8d6b023700 (LWP 14915)):
#0  0x7f8ead2d9252 in _int_malloc () from /lib64/libc.so.6
#1  0x7f8ead2da6b1 in malloc () from /lib64/libc.so.6
#2  0x7f8ead36f902 in make_request () from /lib64/libc.so.6
#3  0x7f8ead36fa5a in __check_pf () from /lib64/libc.so.6
#4  0x7f8ead332d17 in getaddrinfo () from /lib64/libc.so.6
#5  0x005435f5 in ast_sockaddr_resolve (addrs=0x7f8d6b01fee8,
str=0x7f8d6b01ffb0 "**", flags=768, family=0) at
netsock2.c:304
#6  0x0043484d in resolve_first (addr=0x7f8d6b022250,
name=0x7f8d6b01ffb0 "**", family=,
flag=768) at acl.c:792
#7  0x00434ce6 in ast_find_ourip (ourip=0x7f8d6b022250,
bindaddr=, family=0) at acl.c:970
#8  0x7f8e504f4d37 in ast_rtcp_read (instance=0x7f8e293df0f8) at
res_rtp_asterisk.c:4077
#9  0x7f8e504f5a45 in ast_rtp_read (instance=0x7f8e293df0f8,
rtcp=) at res_rtp_asterisk.c:4233
#10 0x7f8dfecdc7e1 in sip_rtp_read (ast=0x7f8e290f57c8) at
chan_sip.c:8298
#11 sip_read (ast=0x7f8e290f57c8) at chan_sip.c:8401
#12 0x004b44c5 in __ast_read (chan=0x7f8e290f57c8, dropaudio=0) at
channel.c:3874
#13 0x00476655 in bridge_handle_trip
(bridge_channel=0x7f8e28d669f8) at bridge_channel.c:2272
#14 bridge_channel_wait (bridge_channel=0x7f8e28d669f8) at
bridge_channel.c:2442
#15 0x00477658 in bridge_channel_internal_join
(bridge_channel=0x7f8e28d669f8) at bridge_channel.c:2587
#16 0x00468610 in bridge_channel_ind_thread (data=0x7f8e28d669f8)
at bridge.c:1690
#17 0x005bdbbb in dummy_start (data=) at
utils.c:1232
#18 0x7f8eae18d9d1 in start_thread () from /lib64/libpthread.so.0
#19 0x7f8ead3488fd in clone () from /lib64/libc.so.6



Core was generated by `/usr/sbin/asterisk -f -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
#0  0x7f8ead2d9252 in _int_malloc () from /lib64/libc.so.6
#0  0x7f8ead2d9252 in _int_malloc () from /lib64/libc.so.6
No symbol table info available.
#1  0x7f8ead2da6b1 in malloc () from /lib64/libc.so.6
No symbol table info available.
#2  0x7f8ead36f902 in make_request () from /lib64/libc.so.6
No symbol table info available.
#3  0x7f8ead36fa5a in __check_pf () from /lib64/libc.so.6
No symbol table info available.
#4  0x7f8ead332d17 in getaddrinfo () from /lib64/libc.so.6
No symbol table info available.
#5  0x005435f5 in ast_sockaddr_resolve (addrs=0x7f8d6b01fee8,
str=0x7f8d6b01ffb0 "**", flags=768, family=0) at
netsock2.c:304
hints = {ai_flags = 0, ai_family = 0, ai_socktype = 2, ai_protocol
= 0, ai_addrlen = 0, ai_addr = 0x0, ai_canonname = 0x0, ai_next = 0x0}
res = 
ai = 
s = 0x7f8d6b01fe00 "**"
host = 0x7f8d6b01fe00 "**"
port = 0x0
e = 
i = 
res_cnt = 
__PRETTY_FUNCTION__ = "ast_sockaddr_resolve"
#6  0x0043484d in resolve_first (addr=0x7f8d6b022250,
name=0x7f8d6b01ffb0 "**", family=,
flag=768) at acl.c:792
addrs = 
addrs_cnt = 
#7  0x00434ce6 in ast_find_ourip (ourip=0x7f8d6b022250,
bindaddr=, family=0) at acl.c:970
ourhost = "**", '\000' 
root = {ss = {ss_family = 1384, __ss_align = 56, __ss_padding =
"\320\302\000\000\000\000\000\000\060M\177)\000\000\000\000\n\000\000\000\000\000\000\000\002",
'\000' "\300, ", '\000' ,
"\n\000\000\000\062\000\000\000[\000\000\00
0|\000\000\000w\000\000\000n", '\000' ,
"8\000\000\000\000\000\000"}, len = 49872}
res = 1795293104
port = 0
__PRETTY_FUNCTION__ = "ast_find_ourip"
#8  0x7f8e504f4d37 in ast_rtcp_read (instance=0x7f8e293df0f8) at
res_rtp_asterisk.c:4077
i = 
pt = 
length = 
rc = 
message_blob = 
rtcp_report = 0x7f8e2812c198
rtp = 0x7f8e285da140
addr = {ss = {ss_family = 2, __ss_align = 0, __ss_padding =
"0\000\000\000\060\000\000\000\220)\002k\215\177\000\000\320(\002k\215\177\000\000\340\323[\000\000\000\000\000H\360p(\216\177\000\000\021\260Q\000\000\000\000\000\245\006\000\000\216\177\000\000\356O0\255\216\177\000\000\020]\022)\216\177\000\000\000\000\000\000\000\000\000\000\245$\002k\215\177\000\000\000\000\000\000\216\177\000\000H\360p(\216\177\000\000\001\000\000\000\000\000\000"},
len = 16}
rtcpdata = '\000' , "\001", '\000' "\323,
[\000\000\000\000\000\201\310\000\fMm\216\347\334lf\256͑g\205Ms_\205\000\000\003\253\000\002J\340b{\370\363\000\000\000\000\000\000\225\310\000\000\000\017\000\000\000\000\000\000\000\000\201\312\000\aMm\216\347\001\023\065\065\063\067\

Re: [asterisk-users] double NAT - one way audio

2017-03-14 Thread Glenn Geller (VDOPh)
Hi Andre,

On your comment "unfortunately there is no bridge mode or any comparable
mode available", sometimes the carrier (if it's a carrier supplied DSL
router) will have these settings hidden from standard user's eyes.

You may need to call your ISP and request them to place your DSL router
into "bridged" mode.

Thanks,


*Glenn @ VDOTel*


On Sun, Mar 12, 2017 at 11:57 PM, Andre Gronwald 
wrote:

> Hi Glenn,
> unfortunately there is no bridge mode or any comparable mode available. I
> am using the same router (but another type) on my private homenetwork with
> another router at the back (=> same architecture as in this failing
> scenario), but everything works fine.
> There are only two differences:
> 1. Another Type (w724v Type B instead of w724v Type A)
> 2. No VoIP services used by w724v (which is on Type A hardware currently
> the case, maybe disablling them helps?).
>
> I will check to switch 2., but that is not easily doable because there are
> productive numbers used... The asterisk installation is currently in
> development...
>
> regards,
> andre
>
> --
>
> Andre Gronwald
> andregronwal...@gmail.com  >
>
> --
> _
> -- 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] Having problem getting Asterisk to work on CentOS 7

2017-03-14 Thread Dan Cropp
Thanks Tzafrir.

Upon further investigation it is safe_asterisk that was the process id I 
initially saw.  I believe this is what was installed when running make config 
to install the Initialization Scripts in the asterisk 13.14.0 source code
Asterisk did not start up previously on a restart.

I changed SELINUX setting in /etc/selinux/config (default was enforcing and I 
changed it to permissive).  After that, I was seeing the Asterisk PID.  
I didn't realize both safe_asterisk pid and asterisk pid were displaying when I 
executed pgrep asterisk.

Admittedly, I'm new to systemd.  I need to research it to learn what I need to 
do.

Dan Cropp
Senior Software Engineer, R Software Dept.
AMTELCO, 4800 Curtin Drive, McFarland, WI 53558-9424
608 838-4197 ext. 291
1-800-238-5275 ext 291
www.amtelco.com


Statement of Confidentiality
The contents of this e-mail message and any attachments are confidential to 
American Tel-A-Systems, Inc. (AMTELCO), and are intended solely for the 
addressee(s). The information contained in this transmission also may be of a 
legally privileged nature. This transmission is sent in trust and is meant 
solely for delivery to the intended recipient(s). Receipt of this transmission 
does not convey any right to reproduce or disseminate any of the information it 
contains. If you are not the intended recipient, please immediately notify the 
sender by reply e-mail or telephone and delete this message and any attachments.


-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tzafrir Cohen
Sent: Tuesday, March 14, 2017 1:18 PM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] Having problem getting Asterisk to work on CentOS 
7

On Tue, Mar 14, 2017 at 05:09:17PM +, Dan Cropp wrote:
> Thank you Tzafrir.
> 
> I had been using different users in earlier attempts to make this work.  
> Decided to try everything where root is the only user, simply to verify it's 
> working.
> 
> For problem 2, where asterisk is writing to the log but doesn't seem to 
> receive the SIP packets even though tcpdump indicates they are making it to 
> the box on 5060, I am starting asterisk while logged in as root.
> /usr/sbin/asterisk -dddc
> 
> 
> For problem 1, where it seems to be stuck when running as a service, I simply 
> reboot the machine.  Then I log it as root and notice it's not writing to the 
> log.
> 
> When running it as a service (after restart).  Here is what the output 
> from strace -p $PID_OF_ASTERISK
> 
>  [root@localhost ~]# strace -p 1470

pkill? nice? That is not asterisk. Are you sure you got the right process? 
Maybe you got safe_asterisk instead? If it is safe_asterisk:

1. That script is pointless now that you have systemd. Replace it with a simple 
systemd unit (hint: Restart=on-failure gets you most of the way there).

Isn't there one already included with Asterisk by now?

2. Use the option -f of strace to see the exact error message. What is error 
status 34 of asterisk? ERANGE?

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com

--
_
-- 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] Having problem getting Asterisk to work on CentOS 7

2017-03-14 Thread Ron Wheeler

https://docs.fedoraproject.org/en-US/Fedora/11/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-Enabling_and_Disabling_SELinux.html

If disabling Selinux solves your problem, then your problem may be 
related to Selinux.

If it does not change yout problem, you may want to look elsewhere.

It seems that a lot of  things do not work with Selinux or 
have no instructions about how to make them work with Selinux that it 
almost seems like a useless feature.


Ron

On 14/03/2017 2:21 PM, Tzafrir Cohen wrote:

On Tue, Mar 14, 2017 at 06:03:33PM +0100, Jean Aunis wrote:

Hello,

Did you disable selinux ? It usually causes troubles when starting asterisk
as a service. You can do this with : setenforce 0 (this will not totally
disable selinux, but switch it to a permissive mode).

Generally before advising that, check if this is the error:

   tail -f /var/log/audit/audit.log

and try the command.

Is there any open bug for a security policy for Asterisk?




--
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] Having problem getting Asterisk to work on CentOS 7

2017-03-14 Thread Ron Wheeler

I have  FreePBX 14.0.1beta20 running on Centos 7.3.

What problems are you having?
The latest emails don't have any details about the problem or what you 
have tried.


Ron

On 14/03/2017 2:21 PM, Tzafrir Cohen wrote:

On Tue, Mar 14, 2017 at 06:03:33PM +0100, Jean Aunis wrote:

Hello,

Did you disable selinux ? It usually causes troubles when starting asterisk
as a service. You can do this with : setenforce 0 (this will not totally
disable selinux, but switch it to a permissive mode).

Generally before advising that, check if this is the error:

   tail -f /var/log/audit/audit.log

and try the command.

Is there any open bug for a security policy for Asterisk?




--
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


[asterisk-users] codec negotiation or transcoding issue

2017-03-14 Thread Faheem Muhammad
Hi,
I'm facing strange issue while establishing inbound calls from SIP trunks.
Provider A is sending (G729,Alaw,uLaw) offer and asterisk dial the peer
with its preferred codec order(G729,aLaw, uLaw). The peer's phone send the
codec list as (uLaw, speex) in 200 OK replay. The Peer's phone has selected
only uLaw and speed in this case.

Ideally Asterisk should establish the call on uLaw codec, but Asterisk
establish the call with two codec for this call. For downstream RTP is
established with G729 and for upstream RTP is established with uLaw codec.
This behavior cause the one way audio for some phones like Eyebeam 1.5.9
but Phonerlite latest version allow it and there is no audio issue.

Is it normal SIP RFC 3261 behavior or there is something wrong with codec
negotiation or transcoding?

I'm using Asterisk 13.14.0 with realtime chan_pjsip compiled with bundled
pjproject on centos 6.8_x64. I have tested it with Asterisk 11.x with
chan_sip and it works fine.

Please advise me how can I setup the call based on late negotiation
mechanism?

Thank you!
-- 
_
-- 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] Having problem getting Asterisk to work on CentOS 7

2017-03-14 Thread Eric Wieling
This is what I hacked up for my CentOS 7 Asterisk server.   It does NOT act
like safe_asterisk.

[Unit]
Description=Asterisk PBX and telephony daemon
Documentation=man:asterisk(8)
After=network-online.target multi-user.target

[Service]
Type=simple
User=root
Group=root
Environment=HOME=/var/lib/asterisk
WorkingDirectory=/var/lib/asterisk
ExecStart=/usr/sbin/asterisk -f -C /etc/asterisk/asterisk.conf
ExecStop=/usr/sbin/asterisk -rx 'core stop now'
ExecReload=/usr/bin/asterisk -rx 'core reload'

[Install]
WantedBy=multi-user.target


On Tue, Mar 14, 2017 at 2:18 PM, Tzafrir Cohen 
wrote:

> On Tue, Mar 14, 2017 at 05:09:17PM +, Dan Cropp wrote:
> > Thank you Tzafrir.
> >
> > I had been using different users in earlier attempts to make this work.
> Decided to try everything where root is the only user, simply to verify
> it's working.
> >
> > For problem 2, where asterisk is writing to the log but doesn't seem to
> receive the SIP packets even though tcpdump indicates they are making it to
> the box on 5060, I am starting asterisk while logged in as root.
> > /usr/sbin/asterisk -dddc
> >
> >
> > For problem 1, where it seems to be stuck when running as a service, I
> simply reboot the machine.  Then I log it as root and notice it's not
> writing to the log.
> >
> > When running it as a service (after restart).  Here is what the output
> from strace -p $PID_OF_ASTERISK
> >
> >  [root@localhost ~]# strace -p 1470
>
> pkill? nice? That is not asterisk. Are you sure you got the right
> process? Maybe you got safe_asterisk instead? If it is safe_asterisk:
>
> 1. That script is pointless now that you have systemd. Replace it with a
> simple systemd unit (hint: Restart=on-failure gets you most of the way
> there).
>
> Isn't there one already included with Asterisk by now?
>
> 2. Use the option -f of strace to see the exact error message. What is
> error status 34 of asterisk? ERANGE?
>
> --
>Tzafrir Cohen
> icq#16849755  jabber:tzafrir.co...@xorcom.com
> +972-50-7952406   mailto:tzafrir.co...@xorcom.com
> http://www.xorcom.com
>
> --
> _
> -- 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
>



-- 

GMail: Making MS Outlook look good since 2007
-- 
_
-- 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] Having problem getting Asterisk to work on CentOS 7

2017-03-14 Thread Tzafrir Cohen
On Tue, Mar 14, 2017 at 06:03:33PM +0100, Jean Aunis wrote:
> Hello,
> 
> Did you disable selinux ? It usually causes troubles when starting asterisk
> as a service. You can do this with : setenforce 0 (this will not totally
> disable selinux, but switch it to a permissive mode).

Generally before advising that, check if this is the error:

  tail -f /var/log/audit/audit.log

and try the command.

Is there any open bug for a security policy for Asterisk?

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com

-- 
_
-- 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] Having problem getting Asterisk to work on CentOS 7

2017-03-14 Thread Tzafrir Cohen
On Tue, Mar 14, 2017 at 05:09:17PM +, Dan Cropp wrote:
> Thank you Tzafrir.
> 
> I had been using different users in earlier attempts to make this work.  
> Decided to try everything where root is the only user, simply to verify it's 
> working.
> 
> For problem 2, where asterisk is writing to the log but doesn't seem to 
> receive the SIP packets even though tcpdump indicates they are making it to 
> the box on 5060, I am starting asterisk while logged in as root.
> /usr/sbin/asterisk -dddc
> 
> 
> For problem 1, where it seems to be stuck when running as a service, I simply 
> reboot the machine.  Then I log it as root and notice it's not writing to the 
> log.
> 
> When running it as a service (after restart).  Here is what the output from 
> strace -p $PID_OF_ASTERISK
> 
>  [root@localhost ~]# strace -p 1470

pkill? nice? That is not asterisk. Are you sure you got the right
process? Maybe you got safe_asterisk instead? If it is safe_asterisk:

1. That script is pointless now that you have systemd. Replace it with a
simple systemd unit (hint: Restart=on-failure gets you most of the way
there).

Isn't there one already included with Asterisk by now?

2. Use the option -f of strace to see the exact error message. What is
error status 34 of asterisk? ERANGE?

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com

-- 
_
-- 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] Having problem getting Asterisk to work on CentOS 7

2017-03-14 Thread Dan Cropp
Thank you Jean.

I changed selinux to permissive in the /etc/selinux/config and restarted.  
Asterisk was able to start up.  One oddity though, I now see two different pids 
for asterisk (pgrep asterisk).  Is this to be expected or do I still have 
something wrong?

For my second issue, after stopping firewalld, SIP traffic is now making it 
through to Asterisk.

I need to research both selinux and firewalld some more.  They are both new to 
me.

Have a great day!

Dan


From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jean Aunis
Sent: Tuesday, March 14, 2017 12:04 PM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] Having problem getting Asterisk to work on CentOS 
7


Hello,

Did you disable selinux ? It usually causes troubles when starting asterisk as 
a service. You can do this with : setenforce 0 (this will not totally disable 
selinux, but switch it to a permissive mode).

For your second point, maybe you should check that firewalld is either stopped 
or configured properly. By default it has  quite restrictive rules.

Best regards

Jean Aunis

Le 14/03/2017 à 17:45, Dan Cropp a écrit :
Some background information.

I have used Debian with Asterisk for several years.  Have encountered zero 
problems.
I am now trying to setup an Asterisk on a CentOS7 box using VMWare Workstation. 
 I am brand new to CentOS and RHEL so I may be missing something obvious.

I am installing CentOS Minimal Install and Asterisk from Source.  (I have 
installed Asterisk from Source on Debian hundreds of times without any 
problems).
After installing CentOS (only root user), I update CentOS.  I then install the 
CentOS "Development Tools".
Also install, I install net-tools and wget.

After that, I am following the Wiki pages for Asterisk from Source.
https://wiki.asterisk.org/wiki/display/AST/Installing+Asterisk+From+Source
Retrieve the asterisk-13-current.tar.gz and the pjproject-2.6.tar.bz2

I uncompress them, run the asterisk install_prereq script to install all 
required packages.
I configure PJPROJECT, make dep, make, make install, and ldconfig

After that, I install asterisk
./configure
make menuselect
make
make install
make samples
make progdocs
make config

After that, I modify the asterisk conf files for a couple pjsip endpoints and 
turn on debugging and verbosity.  Copying settings from another box which is 
working.

I am seeing two different issues

First, when I restart the box, the asterisk process is present.  However, it's 
not writing anything to the log files so it seems to be stuck.  Any idea why 
running Asterisk as a service after the make config would not seem to fully 
start up?

Second, I stop the asterisk service.  Make sure asterisk process is not 
present.  Then, I start it up manually going to the console.  Everything is 
running.  I see information written to the asterisk log files.  However, I try 
to connect phones to this and it does not work.  I used tcpdump to verify the 
SIP packets are making it to the CentOS box, however Asterisk is not seeing the 
SIP messages.
I run netstat -apn | grep -i asterisk and see Asterisk udp with port 5060.
The one thing I notice is my Debian installations have always been eth0.  
CentOS is using the newer ens33.  Might this cause a proble?
Any suggestions?

Have a great day!

Dan



-- 
_
-- 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] Having problem getting Asterisk to work on CentOS 7

2017-03-14 Thread Dan Cropp
Thank you Tzafrir.

I had been using different users in earlier attempts to make this work.  
Decided to try everything where root is the only user, simply to verify it's 
working.

For problem 2, where asterisk is writing to the log but doesn't seem to receive 
the SIP packets even though tcpdump indicates they are making it to the box on 
5060, I am starting asterisk while logged in as root.
/usr/sbin/asterisk -dddc


For problem 1, where it seems to be stuck when running as a service, I simply 
reboot the machine.  Then I log it as root and notice it's not writing to the 
log.

When running it as a service (after restart).  Here is what the output from 
strace -p $PID_OF_ASTERISK

 [root@localhost ~]# strace -p 1470
Process 1470 attached
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2505
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2505, si_status=0, 
si_utime=0, si_stime=0} ---
wait4(-1, 0x7ffd2cbd4490, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn()  = 0
rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER, 0x7f1a0245b250}, {SIG_IGN, [], 
SA_RESTORER, 0x7f1a0245b250}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat("/bin/pkill", {st_mode=S_IFREG|0755, st_size=28336, ...}) = 0
stat("/bin/pkill", {st_mode=S_IFREG|0755, st_size=28336, ...}) = 0
geteuid()   = 0
getegid()   = 0
getuid()= 0
getgid()= 0
access("/bin/pkill", X_OK)  = 0
stat("/bin/pkill", {st_mode=S_IFREG|0755, st_size=28336, ...}) = 0
geteuid()   = 0
getegid()   = 0
getuid()= 0
getgid()= 0
access("/bin/pkill", R_OK)  = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7f1a02e24a10) = 2509
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x43e670, [], SA_RESTORER, 0x7f1a0245b250}, {SIG_IGN, [], 
SA_RESTORER, 0x7f1a0245b250}, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER, 0x7f1a0245b250}, {0x43e670, [], 
SA_RESTORER, 0x7f1a0245b250}, 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 2509
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2509, si_status=1, 
si_utime=0, si_stime=0} ---
wait4(-1, 0x7ffd2cbd4490, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn()  = 0
rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER, 0x7f1a0245b250}, {SIG_IGN, [], 
SA_RESTORER, 0x7f1a0245b250}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=132, ...}) = 0
chdir("/tmp")   = 0
stat("/bin/stty", {st_mode=S_IFREG|0755, st_size=70264, ...}) = 0
stat("/bin/stty", {st_mode=S_IFREG|0755, st_size=70264, ...}) = 0
geteuid()   = 0
getegid()   = 0
getuid()= 0
getgid()= 0
access("/bin/stty", X_OK)   = 0
stat("/bin/stty", {st_mode=S_IFREG|0755, st_size=70264, ...}) = 0
geteuid()   = 0
getegid()   = 0
getuid()= 0
getgid()= 0
access("/bin/stty", R_OK)   = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7f1a02e24a10) = 2510
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x43e670, [], SA_RESTORER, 0x7f1a0245b250}, {SIG_IGN, [], 
SA_RESTORER, 0x7f1a0245b250}, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER, 0x7f1a0245b250}, {0x43e670, [], 
SA_RESTORER, 0x7f1a0245b250}, 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2510
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2510, si_status=0, 
si_utime=0, si_stime=0} ---
wait4(-1, 0x7ffd2cbd3d10, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn()  = 0
rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER, 0x7f1a0245b250}, {SIG_IGN, [], 

Re: [asterisk-users] Having problem getting Asterisk to work on CentOS 7

2017-03-14 Thread Jean Aunis

Hello,

Did you disable selinux ? It usually causes troubles when starting 
asterisk as a service. You can do this with : setenforce 0 (this will 
not totally disable selinux, but switch it to a permissive mode).


For your second point, maybe you should check that firewalld is either 
stopped or configured properly. By default it has  quite restrictive rules.


Best regards

Jean Aunis


Le 14/03/2017 à 17:45, Dan Cropp a écrit :


Some background information.

I have used Debian with Asterisk for several years.  Have encountered 
zero problems.


I am now trying to setup an Asterisk on a CentOS7 box using VMWare 
Workstation.  I am brand new to CentOS and RHEL so I may be missing 
something obvious.


I am installing CentOS Minimal Install and Asterisk from Source.  (I 
have installed Asterisk from Source on Debian hundreds of times 
without any problems).


After installing CentOS (only root user), I update CentOS.  I then 
install the CentOS “Development Tools”.


Also install, I install net-tools and wget.

After that, I am following the Wiki pages for Asterisk from Source.

https://wiki.asterisk.org/wiki/display/AST/Installing+Asterisk+From+Source

Retrieve the asterisk-13-current.tar.gz and the pjproject-2.6.tar.bz2

I uncompress them, run the asterisk install_prereq script to install 
all required packages.


I configure PJPROJECT, make dep, make, make install, and ldconfig

After that, I install asterisk

./configure

make menuselect

make

make install

make samples

make progdocs

make config

After that, I modify the asterisk conf files for a couple pjsip 
endpoints and turn on debugging and verbosity.  Copying settings from 
another box which is working.


I am seeing two different issues….

First, when I restart the box, the asterisk process is present.  
However, it’s not writing anything to the log files so it seems to be 
stuck.  Any idea why running Asterisk as a service after the make 
config would not seem to fully start up?


Second, I stop the asterisk service.  Make sure asterisk process is 
not present.  Then, I start it up manually going to the console.  
Everything is running.  I see information written to the asterisk log 
files.  However, I try to connect phones to this and it does not 
work.  I used tcpdump to verify the SIP packets are making it to the 
CentOS box, however Asterisk is not seeing the SIP messages.


I run netstat -apn | grep -i asterisk and see Asterisk udp with port 5060.

The one thing I notice is my Debian installations have always been 
eth0.  CentOS is using the newer ens33.  Might this cause a proble?


Any suggestions?

Have a great day!

Dan





-- 
_
-- 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] Having problem getting Asterisk to work on CentOS 7

2017-03-14 Thread Tzafrir Cohen
On Tue, Mar 14, 2017 at 04:45:38PM +, Dan Cropp wrote:

> After that, I modify the asterisk conf files for a couple pjsip endpoints and 
> turn on debugging and verbosity.  Copying settings from another box which is 
> working.
> 
> I am seeing two different issues
> 
> First, when I restart the box, the asterisk process is present.  However, 
> it's not writing anything to the log files so it seems to be stuck.  Any idea 
> why running Asterisk as a service after the make config would not seem to 
> fully start up?

You mentioned starting asterisk manually. Do you do that with the proper
permissions (assuming you do run Asterisk as a non-root user, as you
should). Any chance asterisk does not have write permissions to the log
files?

Failing that, try strace.

  strace -p $PID_OF_ASTERISk

Maybe also add -f and / or -o if there's too much output.

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com

-- 
_
-- 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


[asterisk-users] Having problem getting Asterisk to work on CentOS 7

2017-03-14 Thread Dan Cropp
Some background information.

I have used Debian with Asterisk for several years.  Have encountered zero 
problems.
I am now trying to setup an Asterisk on a CentOS7 box using VMWare Workstation. 
 I am brand new to CentOS and RHEL so I may be missing something obvious.

I am installing CentOS Minimal Install and Asterisk from Source.  (I have 
installed Asterisk from Source on Debian hundreds of times without any 
problems).
After installing CentOS (only root user), I update CentOS.  I then install the 
CentOS "Development Tools".
Also install, I install net-tools and wget.

After that, I am following the Wiki pages for Asterisk from Source.
https://wiki.asterisk.org/wiki/display/AST/Installing+Asterisk+From+Source
Retrieve the asterisk-13-current.tar.gz and the pjproject-2.6.tar.bz2

I uncompress them, run the asterisk install_prereq script to install all 
required packages.
I configure PJPROJECT, make dep, make, make install, and ldconfig

After that, I install asterisk
./configure
make menuselect
make
make install
make samples
make progdocs
make config

After that, I modify the asterisk conf files for a couple pjsip endpoints and 
turn on debugging and verbosity.  Copying settings from another box which is 
working.

I am seeing two different issues

First, when I restart the box, the asterisk process is present.  However, it's 
not writing anything to the log files so it seems to be stuck.  Any idea why 
running Asterisk as a service after the make config would not seem to fully 
start up?

Second, I stop the asterisk service.  Make sure asterisk process is not 
present.  Then, I start it up manually going to the console.  Everything is 
running.  I see information written to the asterisk log files.  However, I try 
to connect phones to this and it does not work.  I used tcpdump to verify the 
SIP packets are making it to the CentOS box, however Asterisk is not seeing the 
SIP messages.
I run netstat -apn | grep -i asterisk and see Asterisk udp with port 5060.
The one thing I notice is my Debian installations have always been eth0.  
CentOS is using the newer ens33.  Might this cause a proble?
Any suggestions?

Have a great day!

Dan
-- 
_
-- 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] How to install and configure Dahdi from Debian Stretch repo ?

2017-03-14 Thread Tzafrir Cohen
On Tue, Mar 14, 2017 at 02:58:07PM +0100, Olivier wrote:
> 2017-03-14 13:08 GMT+01:00 Tzafrir Cohen :
> 
> > On Tue, Mar 14, 2017 at 11:10:57AM +0100, Olivier wrote:
> > > Hello,
> > >
> > > After all these years installing from source, I'm giving Dahdi package
> > > installation a try on a recent Stretch box.
> > >
> > > Google over the web, I didn't find too many doc on this topic.
> > >
> > > 1. Is this one [1] up-to-date ?
> >
> > Not exactly.
> >
> > > Reading Stretch I would say a single asterisk-dahdi would be enough to
> > > install asterisk dahdi and libpri.
> >
> > Almost. Except the kernel modules. For those:
> >
> >   apt install dahdi-source
> >   # also install module-assistant, if it wasn't installed already
> >   m-a a-i dahdi
> >   # Should also install linux-headers-`uname -r`, IIRC
> >
> > >
> > > 2. On my box, the following fails. What would you suggest ? Re-base
> > > everything on Jessie ?
> > > apt-get install linux-headers-`uname -r`
> >
> > That should not happen. What is the output of uname -r #?
> >
> 
> # uname -r
> 4.8.0-2-686-pae
> 
> # apt-get install linux-headers-`uname -r`
> ...
> E: Couldn't find any package by glob 'linux-headers-4.8.0-2-686-pae'
> 
> # apt-cache show linux-headers-4.8
> ...
> N: Couldn't find any package by glob 'linux-headers-4.8'
> ...
> 
> # apt-cache show linux-headers-4.9
> Package: linux-headers-4.9.0-2-686
> Source: linux
> ...
> 
> It looks like linux-headers-4.8 are currently missing in Stretch repo
> though currently installed kernel is 4.8.
> This issue seems quite independant from asterisk, anyway.

You probably started working on this box a while ago. Streetch's current
kernel is 4.9.0-2 (it changed shortly before the freeze). It is now
frozen and won't change (barring a really good reason).

> 
> 
> I started all over with a Jessie box.

I recommend to go back to Stretch and just upgrade the kernel. In other
words: keep the software up-to-date.

> Relating to [1], I could positively run:
> # m-a a-i dahdi
> ...
> 
> But # dahdi_genconf required a reboot to run OK.

Certainly not. See below.

> Though this worries me as I need to script the whole install process, I can
> leave it aside at the moment.
> 
> 
> 
> > >
> > > 3. How is dahdi started-stopped in Stretch ? (I can't find any
> > > /etc/init.d/dahdi file after apt-get install asterisk-dahdi).
> >
> > Started: should be automatically at boot.
> 
> 
> Shall I find an /etc/init.d/dahdi file or equivalent ?
> If positive which command produces this file ?
> I would expect dahdi-linux or dahdi packages to install these file.
> 
> 
> > Waht hardware device do you
> > have?
> >
> 
> # dahdi_hardware
> pci::04:05.0 wctdm24xxp+  d161:8007 HA8-

Traditionally dahdi has been shipped with a modprobe.d configuration
file to blacklist all of the PCI cards. This was because the order in
which they were loaded was not well-defined.

This is irrelevant on a system with a single device. And anyway,
irrelevant in a system configured (as is in the Debian packages) with
auto_assign_spans=0 . In such a system, devices register automatically,
but their spans are not assigned span and channel numbers unless they
are configured in /etc/dahdi/assigned-spans.conf .

So try:

  dahdi_span_assignment auto
  dahdi_genconf

Another reason that the init file was removed is because there is no
need to assign DAHDI spans before asterisk is started: if the channels
are configured with Asterisk, they will appear when assigned (using a
script in /usr/share/dahdi/span_config.d/).

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com

-- 
_
-- 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] How to install and configure Dahdi from Debian Stretch repo ?

2017-03-14 Thread Olivier
2017-03-14 13:08 GMT+01:00 Tzafrir Cohen :

> On Tue, Mar 14, 2017 at 11:10:57AM +0100, Olivier wrote:
> > Hello,
> >
> > After all these years installing from source, I'm giving Dahdi package
> > installation a try on a recent Stretch box.
> >
> > Google over the web, I didn't find too many doc on this topic.
> >
> > 1. Is this one [1] up-to-date ?
>
> Not exactly.
>
> > Reading Stretch I would say a single asterisk-dahdi would be enough to
> > install asterisk dahdi and libpri.
>
> Almost. Except the kernel modules. For those:
>
>   apt install dahdi-source
>   # also install module-assistant, if it wasn't installed already
>   m-a a-i dahdi
>   # Should also install linux-headers-`uname -r`, IIRC
>
> >
> > 2. On my box, the following fails. What would you suggest ? Re-base
> > everything on Jessie ?
> > apt-get install linux-headers-`uname -r`
>
> That should not happen. What is the output of uname -r #?
>

# uname -r
4.8.0-2-686-pae

# apt-get install linux-headers-`uname -r`
...
E: Couldn't find any package by glob 'linux-headers-4.8.0-2-686-pae'

# apt-cache show linux-headers-4.8
...
N: Couldn't find any package by glob 'linux-headers-4.8'
...

# apt-cache show linux-headers-4.9
Package: linux-headers-4.9.0-2-686
Source: linux
...

It looks like linux-headers-4.8 are currently missing in Stretch repo
though currently installed kernel is 4.8.
This issue seems quite independant from asterisk, anyway.


I started all over with a Jessie box.
Relating to [1], I could positively run:
# m-a a-i dahdi
...

But # dahdi_genconf required a reboot to run OK.
Though this worries me as I need to script the whole install process, I can
leave it aside at the moment.



> >
> > 3. How is dahdi started-stopped in Stretch ? (I can't find any
> > /etc/init.d/dahdi file after apt-get install asterisk-dahdi).
>
> Started: should be automatically at boot.


Shall I find an /etc/init.d/dahdi file or equivalent ?
If positive which command produces this file ?
I would expect dahdi-linux or dahdi packages to install these file.


> Waht hardware device do you
> have?
>

# dahdi_hardware
pci::04:05.0 wctdm24xxp+  d161:8007 HA8-


>
> --
>Tzafrir Cohen
> icq#16849755  jabber:tzafrir.co...@xorcom.com
> +972-50-7952406   mailto:tzafrir.co...@xorcom.com
> http://www.xorcom.com
>
> --
> _
> -- 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] How to install and configure Dahdi from Debian Stretch repo ?

2017-03-14 Thread Tzafrir Cohen
On Tue, Mar 14, 2017 at 11:10:57AM +0100, Olivier wrote:
> Hello,
> 
> After all these years installing from source, I'm giving Dahdi package
> installation a try on a recent Stretch box.
> 
> Google over the web, I didn't find too many doc on this topic.
> 
> 1. Is this one [1] up-to-date ?

Not exactly.

> Reading Stretch I would say a single asterisk-dahdi would be enough to
> install asterisk dahdi and libpri.

Almost. Except the kernel modules. For those:

  apt install dahdi-source
  # also install module-assistant, if it wasn't installed already
  m-a a-i dahdi
  # Should also install linux-headers-`uname -r`, IIRC

> 
> 2. On my box, the following fails. What would you suggest ? Re-base
> everything on Jessie ?
> apt-get install linux-headers-`uname -r`

That should not happen. What is the output of uname -r #?

> 
> 3. How is dahdi started-stopped in Stretch ? (I can't find any
> /etc/init.d/dahdi file after apt-get install asterisk-dahdi).

Started: should be automatically at boot. Waht hardware device do you
have?

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com

-- 
_
-- 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


[asterisk-users] How to install and configure Dahdi from Debian Stretch repo ?

2017-03-14 Thread Olivier
Hello,

After all these years installing from source, I'm giving Dahdi package
installation a try on a recent Stretch box.

Google over the web, I didn't find too many doc on this topic.

1. Is this one [1] up-to-date ?
Reading Stretch I would say a single asterisk-dahdi would be enough to
install asterisk dahdi and libpri.

2. On my box, the following fails. What would you suggest ? Re-base
everything on Jessie ?
apt-get install linux-headers-`uname -r`

3. How is dahdi started-stopped in Stretch ? (I can't find any
/etc/init.d/dahdi file after apt-get install asterisk-dahdi).


Best regards




[1]
http://paulswasteland.blogspot.fr/2013/10/quickly-install-asterisk-and-dahdi-on.html
-- 
_
-- 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