[asterisk-users] Asterisk Log rotate not working

2013-05-21 Thread Ahmed Munir
Hi,

Last year, I installed Asterisk 10.4.2 and enabled logrotate on daily basis
which was working perfect. Now in couple of months back, the logrotate
feature is not working at all but simply appending the logs in 'messages'
file. Listing down down the configuration for logrotate below;

/var/log/asterisk/messages {
missingok
rotate 5
daily
postrotate
/usr/sbin/asterisk -rx 'logger reload'  /dev/null 2 /dev/null
endscript
}

As asterisk is running by user: root so no need set asterisk permissions
'create 0640 asterisk asterisk' in above configuration.

Please advise so I can resolve this issue.



-- 
Regards,

Ahmed Munir Chohan
--
_
-- 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 Log rotate not working

2013-05-21 Thread Chris Bagnall
On 21/5/13 4:19 pm, Ahmed Munir wrote: Last year, I installed Asterisk 
10.4.2 and enabled logrotate on daily basis

which was working perfect. Now in couple of months back, the logrotate
feature is not working at all but simply appending the logs in 'messages'
file. Listing down down the configuration for logrotate below;


This sounds more like a Linux/logrotate issue rather than 
asterisk-specific. Are your other system logfiles successfully rotating? 
(e.g. /var/log/messages)


If not, it may be something as simple as logrotate's daemon not running. 
You should be able to fix that in your distro's startup scripts.


On Gentoo, you'd do something like /etc/init.d/logrotate start to 
start it now, and rc-update add logrotate default to add it to your 
default runlevel.


Difficult to advise further without knowing the distro in question.

Kind regards,

Chris
--
This email is made from 100% recycled electrons

--
_
-- 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 Log rotate not working

2013-05-21 Thread Jason Parker

On 05/21/2013 10:19 AM, Ahmed Munir wrote:

Hi,

Last year, I installed Asterisk 10.4.2 and enabled logrotate on daily 
basis which was working perfect. Now in couple of months back, the 
logrotate feature is not working at all but simply appending the logs 
in 'messages' file. Listing down down the configuration for logrotate 
below;


/var/log/asterisk/messages {
missingok
rotate 5
daily
postrotate
/usr/sbin/asterisk -rx 'logger reload'  /dev/null 2 /dev/null
endscript
}

As asterisk is running by user: root so no need set asterisk 
permissions 'create 0640 asterisk asterisk' in above configuration.


Please advise so I can resolve this issue.


I believe you want to execute logger rotate, rather than logger reload.

--
_
-- 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] Failed to authenticate device Ext 110

2013-05-21 Thread asterisk users
I'm having a strange problem recently with a Yealink SIP-T28P phone
connected to Asterisk 11.4.0 via openvpn.  It was working fine for months,
and now when I dial anything from the phone, it shows Forbidden, and the
Asterisk console shows:

[May 21 10:47:49] NOTICE[28518][C-0004]: chan_sip.c:25189
handle_request_invite: Failed to authenticate device Ext 110 
sip:110@192.168.6.2;tag=1130259112

Asterisk 192.168.6.2
OpenVPN on router 10.8.0.1
Remote Yealink phone 10.8.0.6

The remote phone shows as being registered:
PBX*CLI sip show peers
Name/username  Host  Dyn Forcerport ACL Port Status  Description
110/110   10.8.0.6  D   A  5062   OK (111 ms) Yealink OpenVPN

Also, if there is voicemail in the mailbox for 110, the phone's message
light is lit and it beeps periodically.

toshi*CLI sip show peer 110


  * Name   : 110
  Description  : Yealink OpenVPN
  Secret   : Set
  MD5Secret: Not set
  Remote Secret: Not set
  Context  : remote-phones
  Record On feature : automon
  Record Off feature : automon
  Subscr.Cont. : Not set
  Language :
  Tonezone : Not set
  AMA flags: Unknown
  Transfer mode: open
  CallingPres  : Presentation Allowed, Not Screened
  Callgroup: 1
  Pickupgroup  : 1
  Named Callgr :
  Nam. Pickupgr:
  MOH Suggest  :
  Mailbox  : 110
  VM Extension : asterisk
  LastMsgsSent : 1/0
  Call limit   : 4
  Max forwards : 0
  Dynamic  : Yes
  Callerid : Ext 110 110
  MaxCallBR: 384 kbps
  Expire   : 608
  Insecure : no
  Force rport  : No
  Symmetric RTP: No
  ACL  : Yes
  DirectMedACL : No
  T.38 support : No
  T.38 EC mode : Unknown
  T.38 MaxDtgrm: -1
  DirectMedia  : No
  PromiscRedir : No
  User=Phone   : No
  Video Support: Yes
  Text Support : No
  Ign SDP ver  : No
  Trust RPID   : Yes
  Send RPID: Yes
  Subscriptions: Yes
  Overlap dial : No
  DTMFmode : rfc2833
  Timer T1 : 500
  Timer B  : 32000
  ToHost   :
  Addr-IP : 10.8.0.6:5062
  Defaddr-IP  : 10.8.0.6:5060
  Prim.Transp. : UDP
  Allowed.Trsp : UDP
  Def. Username: 110
  SIP Options  : (none)
  Codecs   : (ulaw)
  Codec Order  : (ulaw:20)
  Auto-Framing :  No
  Status   : OK (237 ms)
  Useragent: Yealink SIP-T28P 2.61.23.3 00:15:65:xx.xx.xx
  Reg. Contact : sip:110@10.8.0.6:5062
  Qualify Freq : 6 ms
  Keepalive: 0 ms
  Sess-Timers  : Accept
  Sess-Refresh : uas
  Sess-Expires : 1800 secs
  Min-Sess : 90 secs
  RTP Engine   : asterisk
  Parkinglot   :
  Use Reason   : No
  Encryption   : No

sip.conf:

[110]
context=remote-phones
type=peer
host=dynamic
qualify=1500
canreinvite=no
dtmfmode=rfc2833
progressinband=no
callgroup=1
pickupgroup=1   ; We can do call pickup for call group 1
call-limit=4
busy-level=1
qualify=yes
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
nat=no
qualify=8000
description=Yealink OpenVPN
defaultuser=110
secret=x
callerid=Ext 110 110
mailbox=110
defaultip=10.8.0.6
port=5060
disallow=all
allow=ulaw

Any suggestions on what might be happening here, and how it could be
resolved?

THANKS ALL!
--
_
-- 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 Log rotate not working

2013-05-21 Thread Tzafrir Cohen
On Tue, May 21, 2013 at 11:29:37AM -0500, Jason Parker wrote:
 On 05/21/2013 10:19 AM, Ahmed Munir wrote:
 Hi,
 
 Last year, I installed Asterisk 10.4.2 and enabled logrotate on
 daily basis which was working perfect. Now in couple of months
 back, the logrotate feature is not working at all but simply
 appending the logs in 'messages' file. Listing down down the
 configuration for logrotate below;
 
 /var/log/asterisk/messages {
 missingok
 rotate 5
 daily
 postrotate
 /usr/sbin/asterisk -rx 'logger reload'  /dev/null 2 /dev/null
 endscript
 }

 I believe you want to execute logger rotate, rather than logger reload.

It is indeed 'logger reload'. logrotate handles the rotation. All it
needs is that Asterisk will re-open the log file to use the new files
after the old ones were moved.

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

--
_
-- 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] Failed to authenticate device Ext 110

2013-05-21 Thread Matthew J. Roth
asterisk users wrote:
 
 I'm having a strange problem recently with a Yealink SIP-T28P phone connected
 to Asterisk 11.4.0 via openvpn. It was working fine for months, and now when I
 dial anything from the phone, it shows Forbidden, and the Asterisk console
 shows: 
 
 [May 21 10:47:49] NOTICE[28518][C-0004]: chan_sip.c:25189 
 handle_request_invite: Failed to authenticate device Ext 110  
 sip:110@192.168.6.2 ;tag=1130259112 
 
 Asterisk 192.168.6.2 
 OpenVPN on router 10.8.0.1 
 Remote Yealink phone 10.8.0.6 
 
 The remote phone shows as being registered: 
 PBX*CLI sip show peers 
 Name/username Host Dyn Forcerport ACL Port Status Description 
 110/110 10.8.0.6 D A 5062 OK (111 ms) Yealink OpenVPN 
 
 Also, if there is voicemail in the mailbox for 110, the phone's message light
 is lit and it beeps periodically. 
 
 ...
 
 Any suggestions on what might be happening here, and how it could be 
 resolved? 


That is quite strange.  Please provide SIP traces of the dialogs between
Asterisk and the phone in the following two scenarios:

  1) Phone registering to Asterisk (presumably successful)
  2) Phone dialing to Asterisk (presumably unsuccessful)

Regards,

Matthew Roth
InterMedia Marketing Solutions
Software Engineer and Systems Developer

--
_
-- 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] Failed to authenticate device Ext 110

2013-05-21 Thread asterisk users
On Tue, May 21, 2013 at 11:26 AM, Matthew J. Roth mr...@imminc.com wrote:

 asterisk users wrote:
 
  I'm having a strange problem recently with a Yealink SIP-T28P phone
 connected
  to Asterisk 11.4.0 via openvpn. It was working fine for months, and now
 when I
  dial anything from the phone, it shows Forbidden, and the Asterisk
 console
  shows:
 
  [May 21 10:47:49] NOTICE[28518][C-0004]: chan_sip.c:25189
 handle_request_invite: Failed to authenticate device Ext 110 
 sip:110@192.168.6.2 ;tag=1130259112
 
  Asterisk 192.168.6.2
  OpenVPN on router 10.8.0.1
  Remote Yealink phone 10.8.0.6
 
  The remote phone shows as being registered:
  PBX*CLI sip show peers
  Name/username Host Dyn Forcerport ACL Port Status Description
  110/110 10.8.0.6 D A 5062 OK (111 ms) Yealink OpenVPN
 
  Also, if there is voicemail in the mailbox for 110, the phone's message
 light
  is lit and it beeps periodically.
 
  ...
 
  Any suggestions on what might be happening here, and how it could be
 resolved?


 That is quite strange.  Please provide SIP traces of the dialogs between
 Asterisk and the phone in the following two scenarios:

   1) Phone registering to Asterisk (presumably successful)
   2) Phone dialing to Asterisk (presumably unsuccessful)

 Regards,

 Matthew Roth
 InterMedia Marketing Solutions
 Software Engineer and Systems Developer

 --


Registration trace
(note that extension 88 is the voicemail extension, which the phone
registers to also for MWI)
-- http://pastebin.com/c3H700wa

Call trace:
|Time | 10.8.0.6  |
| |   | 192.168.6.2   |
|268.693661| INVITE SDP (g711U g729 g722
telephone-eventRTP...e-101)  |SIP From: Ext 110 
sip:110@192.168.6.2 To:sip:88@192.168.6.2
| |(1024)   --  (5060)   |
|268.694449| 401 Unauthorized  |SIP Status
| |(1024)   --  (5060)   |
|268.914195| ACK   |   |SIP Request
| |(1024)   --  (5060)   |
|268.945115| INVITE SDP (g711U g729 g722
telephone-eventRTP...e-101)  |SIP From: Ext 110 
sip:110@192.168.6.2 To:sip:88@192.168.6.2
| |(1024)   --  (5060)   |
|268.945717| 403 Forbidden |SIP Status
| |(1024)   --  (5060)   |
|269.041417| ACK   |   |SIP Request
| |(1024)   --  (5060)   |


I'm also confused by the reference in sip show peers to port 5062, as I
can't see that anywhere in the configuration of either the phone or in
sip.conf.  All the other phones show port 5060 in the sip show peers
output.
--
_
-- 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 Log rotate not working

2013-05-21 Thread Ahmed Munir
Checked in /var/logs/ directory, all logs are not rotating by logrotate.
Please advise how can I overcome this issue as I'm using CentoOS 5




From: Chris Bagnall aster...@lists.minotaur.cc
 Subject: Re: [asterisk-users] Asterisk Log rotate not working
 To: asterisk-users@lists.digium.com
 Message-ID: 519b9fa6.9000...@lists.minotaur.cc
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 On 21/5/13 4:19 pm, Ahmed Munir wrote: Last year, I installed Asterisk
 10.4.2 and enabled logrotate on daily basis
  which was working perfect. Now in couple of months back, the logrotate
  feature is not working at all but simply appending the logs in 'messages'
  file. Listing down down the configuration for logrotate below;

 This sounds more like a Linux/logrotate issue rather than
 asterisk-specific. Are your other system logfiles successfully rotating?
 (e.g. /var/log/messages)

 If not, it may be something as simple as logrotate's daemon not running.
 You should be able to fix that in your distro's startup scripts.

 On Gentoo, you'd do something like /etc/init.d/logrotate start to
 start it now, and rc-update add logrotate default to add it to your
 default runlevel.

 Difficult to advise further without knowing the distro in question.

 Kind regards,

 Chris
 --
 This email is made from 100% recycled electrons





-- 
Regards,

Ahmed Munir Chohan
--
_
-- 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 Log rotate not working

2013-05-21 Thread Jim Lucas

On 5/21/2013 11:54 AM, Ahmed Munir wrote:

Checked in /var/logs/ directory, all logs are not rotating by logrotate.
Please advise how can I overcome this issue as I'm using CentoOS 5


Ahmed,

Proper log rotation depends on a couple things working together 
correctly to get the job done.  First, you need to make sure you have 
the space to rotate the logs.  If you have compression enabled, 
logrotate creates a copy of the file(s) as it compresses them.  You 
could be running out of space???


Next you need to verify that everything is in place, follow these steps 
to do so.  Keep in mind that I have CentOS 6.4.  So the packages might 
differ a little in the name and surely in the version numbering.


 1) Verify logrotate is installed to your system.
# yum install logrotate

if it asks you to install it, do so.

 2) Verify that crond is installed and running.
Below is the output I get when searching yum to see if crond is 
installed.  If your query returns nothing then crond is not installed.


  [root@jim etc]# yum list all | grep ^cron | grep @
  cronie.x86_64 1.4.4-7.el6 
   @anaconda-CentOS-201303020151.x86_64/6.4
  cronie-anacron.x86_64 1.4.4-7.el6 
   @anaconda-CentOS-201303020151.x86_64/6.4
  crontabs.noarch   1.10-33.el6 
   @anaconda-CentOS-201303020151.x86_64/6.4


If crond is not installed, then you will need to install it.  Once 
you have it installed, move on to the next step.


 3) Make sure crond is setup to start at boot time.

  chkconfig crond on

 4) Verify that logrotate is in one of the cron include folders.  Mine 
is located in the cron.daily folder.


  [root@jim etc]# find /etc/*/logrotate
  /etc/cron.daily/logrotate

  If you don't find that the above file exists, you might need to 
re-install logrotate.


Next I would've had you verify that you have a config file in 
/etc/logrotate.d/ for the asterisk log files.  But it seems you already 
to.  After all this, if it still isn't working, double check all the 
steps above.


Let us know if this does or doesn't help.

--
Jim Lucas

--
_
-- 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] Automatic Speech Recognition and Text To Speech using iSpeech

2013-05-21 Thread Lefteris Zafiris
Hi,

a set of AGI scripts that provide ASR and TTS for asterisk using the
iSpeech API (http://www.ispeech.org/) are available on this page:

http://zaf.github.io/asterisk-ispeech/

This is the first public release, updates will soon follow.
Feel free to test and report.

Regards,

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