Re: [asterisk-users] file.c:1160 ast_writefile: Unable to open file /var/spool/asterisk/monitor/11Feb2014/_11-Feb-2014-17-44-01.wav: No such file or directory

2014-02-10 Thread Mike
On 14-02-11 03:00 AM, akhilesh chand wrote:
>
> file.c:1160 ast_writefile: Unable to open file
> /var/spool/asterisk/monitor/11Feb2014/_11-Feb-2014-17-44-01.wav: No
> such file or directory
> app_mixmonitor.c:286 mixmonitor_thread: Cannot open
> /var/spool/asterisk/monitor/11Feb2014/_11-Feb-2014-17-44-01.wav
>

Does the path to that file exist, and can asterisk write to it?


-- 
Looking for (employment|contract) work in the
Internet industry, preferably working remotely. 
Building / Supporting the net since 2400 baud was
the hot thing. Ask for a resume! ispbuil...@gmail.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


[asterisk-users] file.c:1160 ast_writefile: Unable to open file /var/spool/asterisk/monitor/11Feb2014/_11-Feb-2014-17-44-01.wav: No such file or directory

2014-02-10 Thread akhilesh chand
Dear Folks,

[Test_Context]
exten => _911.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _911.,2,Set(CALLERID(num)=xxx)
exten =>
_911.,3,Set(CALLTIME=${STRFTIME(${EPOCH},Asia/Calcutta,%d-%b-%Y-%H-%M-%S)})
exten => _911.,4,Set(RECSUBDIR=${STRFTIME(${EPOCH},Asia/Calcutta,%d%b%Y)})
exten => _911.,5,Set(${CALLERID}=${CALLERID(num)})
exten => _911.,6,Set(FILENAME=${CALLERID}_${CALLTIME}.wav)
exten => _911.,7,Set(RECORDFILENAME=${RECSUBDIR}/${FILENAME})
;exten => _911.,8,Set(SOUND_PATH=${RECORDING_KINREP}/${RECORDFILENAME})
exten => _911.,8,MixMonitor(${RECORDFILENAME},b)
exten => _911.,9,Dial(${TRUNK}/${EXTEN:3},,To)
exten => _911.,10,Hangup

Mixmont is not working ,Whenever my give code is executing i got following
error:

file.c:1160 ast_writefile: Unable to open file
/var/spool/asterisk/monitor/11Feb2014/_11-Feb-2014-17-44-01.wav: No such
file or directory
app_mixmonitor.c:286 mixmonitor_thread: Cannot open
/var/spool/asterisk/monitor/11Feb2014/_11-Feb-2014-17-44-01.wav

Regards
Akhilesh
-- 
_
-- 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] Lots of calls, less memory

2014-02-10 Thread Hans Witvliet
On Mon, 2014-02-10 at 10:39 -0500, Tech Support wrote:
> Rather than speculate, take a look at the output of "top". If you're
> running out of memory, shut down useless processes. You'd be surprised what
> processes get started by default that you don't need. You should also check
> the Asterisk logs and look at the last few things Asterisk did right before
> it restarted. You may also want to consider not loading Asterisk modules
> that you are never going to use. Just a suggestion.
> Regards;
> John
> 
> 
> -Original Message-
> From: asterisk-users-boun...@lists.digium.com
> [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Justin
> Sherrill
> Sent: Monday, February 10, 2014 10:27 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] Lots of calls, less memory
> 
> On 14-02-10 9:46 AM, Mike wrote:
> > What log entries are leading you to think that you're running out of RAM?
> 
> None.  It's just my guess.  The log doesn't show anything except Asterisk
> restarting.

how about running "free" or "vmstat" inside cron every hour or so?
If you do a "vmstat 1 10" each hour on the hour, it tells you 10 times
with one second interval the amount of mem you got.
If you do that within cron, you can see the difference during a couple
of days.

Running out of mem, will cause unexpected results (to be found in
syslog), though rebooting should not be one of them. 

for unintended reboots there are a lot of hardware related causes though
Some are easier to detect (like high temp) some are harder.
My most favorite is a moron-co-worker, touching sensative parts (cpu,
mem, mobo) with his ESD-unprotected hands. Problems might show up even
after months or years after the crime has been commited.

hw





-- 
_
-- 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] Lots of calls, less memory

2014-02-10 Thread Justin Sherrill

To follow up the discussion - yeah, it's not RAM, or at least not directly.  
I'm so used to looking in the asterisk logs I didn't think to look at 
/var/log/messages:

Feb 10 09:10:45 telephone-retsof kernel: [35734.705648] asterisk[11215]: 
segfault at ffa2048e ip b70a3def sp b540a000 error 4 in 
libpri.so.1.4[b708b000+47000]

We are slightly behind the current libpri release. 

-- 
_
-- 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] Lots of calls, less memory

2014-02-10 Thread Steve Edwards

On Mon, 10 Feb 2014, Justin Sherrill wrote:

We're running Asterisk 1.8 on a 32-bit Debian machine, and it has been 
fine for some time now.  But!  We've got such a incoming call volume 
over the few weeks that we'll have Asterisk occasionally restart itself. 
My hunch is that it is in part memory pressure.


I'm a 1.2 Luddite, but...

I suspect it's not RAM.

I have a CentOS 32bit box with 2GB that has 350 calls right now (last 
night's peak was 420), most in meetme conferences.


How many concurrent calls are you handling?

How much RAM is Asterisk consuming on your box?

Any obese AGIs? I run tons of AGIs, but I write them in C.

Does 'vmstat 5' show swapping?

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

--
_
-- 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] Lots of calls, less memory

2014-02-10 Thread Tech Support
Rather than speculate, take a look at the output of "top". If you're
running out of memory, shut down useless processes. You'd be surprised what
processes get started by default that you don't need. You should also check
the Asterisk logs and look at the last few things Asterisk did right before
it restarted. You may also want to consider not loading Asterisk modules
that you are never going to use. Just a suggestion.
Regards;
John


-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Justin
Sherrill
Sent: Monday, February 10, 2014 10:27 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Lots of calls, less memory

On 14-02-10 9:46 AM, Mike wrote:
> What log entries are leading you to think that you're running out of RAM?

None.  It's just my guess.  The log doesn't show anything except Asterisk
restarting.


--
_
-- 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] Lots of calls, less memory

2014-02-10 Thread Justin Sherrill
On 14-02-10 9:46 AM, Mike wrote:
> What log entries are leading you to think that you're running out of RAM?

None.  It's just my guess.  The log doesn't show anything except Asterisk 
restarting.


-- 
_
-- 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] Lots of calls, less memory

2014-02-10 Thread Mike
On 14-02-10 10:37 AM, Justin Sherrill wrote:
> We're running Asterisk 1.8 on a 32-bit Debian machine, and it has been fine 
> for some time now.  But!  We've got such a incoming call volume over the few 
> weeks that we'll have Asterisk occasionally restart itself.  My hunch is that 
> it is in part memory pressure.
>

What log entries are leading you to think that you're running out of RAM?

-- 
Looking for (employment|contract) work in the
Internet industry, preferably working remotely. 
Building / Supporting the net since 2400 baud was
the hot thing. Ask for a resume! ispbuil...@gmail.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


[asterisk-users] Lots of calls, less memory

2014-02-10 Thread Justin Sherrill
We're running Asterisk 1.8 on a 32-bit Debian machine, and it has been fine for 
some time now.  But!  We've got such a incoming call volume over the few weeks 
that we'll have Asterisk occasionally restart itself.  My hunch is that it is 
in part memory pressure.

I can't add RAM and have it help, because it's 32-bit.  I intend to move to a 
64-bit machine, but I was hoping to wait until summer.  Does anyone have any 
immediate tips for dealing with this sort of rush?

Justin Sherrill - American Rock Salt
P: 585-991-6825 F: 585-991-6925



-- 
_
-- 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] Polycom SSIP 7000 : how to boot with DHCP (instead of BOOTP) ?

2014-02-10 Thread Olivier
Hi,

I'm configuring a brand new polycom SSIP 7000.

To my surprise, when this telephone boots up, my DHCP server receives a
request that Wireshark classifies a BootP request from which I can't find
any Vendor identification.

The trouble is my DHCP server uses option vendor-class-identifier to serve
different settings to different devices.

Did I miss something ?

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