Re: [asterisk-users] Error opening file for reading: Permission denied

2014-08-18 Thread Paul Greenberg
Mitch,

Is it the below error?

if ((fd = open(filename, O_RDONLY)) < 0) {
ast_log(LOG_WARNING, "Cannot open file '%s' for reading: %s\n", 
filename, strerror(errno));
return NULL;
}

Regards,
Paul

From: asterisk-users-boun...@lists.digium.com 
 on behalf of Mitch Claborn 

Sent: Monday, August 18, 2014 1:14 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Error opening file for reading: Permission denied

Asterisk 12.4

I am seeing message "Error opening file for reading: Permission denied"
several times during the asterisk startup (asterisk -cv) but it
doesn't say which file.  Is there a way to find out which file is having
trouble?

--

Mitch


--
_
-- 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] Error opening file for reading: Permission denied

2014-08-18 Thread Mitch Claborn

Asterisk 12.4

I am seeing message "Error opening file for reading: Permission denied" 
several times during the asterisk startup (asterisk -cv) but it 
doesn't say which file.  Is there a way to find out which file is having 
trouble?


--

Mitch


--
_
-- 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] AMI & Elastix

2014-08-18 Thread Mikael Fredin
On 18 August 2014 15:35, Усин Айбек  wrote:

> Thanks, im find it/ but in win7 it doesnt work. and it work under linux
> 
>

That's because windows terminates newlines differently, you should convert
newlines under windows to windows format (\r\n).
-- 
_
-- 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] AMI & Elastix

2014-08-18 Thread Усин Айбек
Thanks, im find it/ but in win7 it doesnt work. and it work under linux 


2014-08-18 18:02 GMT+06:00 Steven Howes :

> On 18 Aug 2014, at 09:27, Усин Айбек  wrote:
>
> I have trouble with connection to AMI 1.1 wich enabled on Elastix
>
> "*Asterisk Call Manager/1.1*
> *Action: Login Username: admin Secret: qweasd123*
>
> *Response: Error*
> *Message: Missing action in request*"
>
>
> You are missing the newline characters.. Action/Username/Secret should be
> on their own lines.
>
> Read the AMI spec.
>
> Steve
>
> --
> _
> -- 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
>



-- 
Тот кто хочет чего то добиться он находит пути реализации, другие находят
причины невозможности это сделать.
http://ubuntu.kz>Казахстанское сообщество пользователей линукс
Ubuntu
http://ibeck.kz>Дизайн и разработка сайтов любой сложности
-- 
_
-- 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] log caller hangup events

2014-08-18 Thread Paul Greenberg
Hi,


I am mostly concerned with inbound calls.

Would it work the same?


Regards,

Paul


From: asterisk-users-boun...@lists.digium.com 
 on behalf of Gopalakrishnan N 

Sent: Monday, August 18, 2014 4:13 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] log caller hangup events

Hi,

You can use Hangup handler. May be this post can you help you,
http://gblades.blogspot.in/2013/07/how-to-get-sip-response-code-in.html

Regards


On Mon, Aug 18, 2014 at 9:45 AM, Paul Greenberg 
mailto:p...@greenberg.pro>> wrote:

All,


I would like to log a message whenever a party hangs up a call or session, i.e. 
no Dial(), user drops off a menu. The message should include the length of the 
user's session, the session's start time, and called ID.


Theoretically, I could set up a channel variable and then ...


Any advice would be most welcome!


Regards,

Paul

--
_
-- 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] AMI & Elastix

2014-08-18 Thread Steven Howes
On 18 Aug 2014, at 09:27, Усин Айбек  wrote:
> I have trouble with connection to AMI 1.1 wich enabled on Elastix 
> 
> "Asterisk Call Manager/1.1
> Action: Login Username: admin Secret: qweasd123
> 
> Response: Error
> Message: Missing action in request"

You are missing the newline characters.. Action/Username/Secret should be on 
their own lines.

Read the AMI spec.

Steve-- 
_
-- 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] AMI & Elastix

2014-08-18 Thread Усин Айбек
update new state:
"*  == Client from 192.168.0.95, failed to authenticate in 30 seconds*
*  == Connect attempt from '192.168.0.95' unable to authenticate*
*  == Client from 192.168.0.95, failed to authenticate in 30 seconds*
*  == Connect attempt from '192.168.0.95' unable to authenticate*
*-- Remote UNIX connection*
*-- Remote UNIX connection disconnected*
*  == Connect attempt from '192.168.0.95' unable to authenticate*"


2014-08-18 14:27 GMT+06:00 Усин Айбек :

> Hi all!
> I have trouble with connection to AMI 1.1 wich enabled on Elastix
>
> "*Asterisk Call Manager/1.1*
> *Action: Login Username: admin Secret: qweasd123*
>
> *Response: Error*
> *Message: Missing action in request*"
>
> Elastix versions:
>
> "* Kernel*
> *   Linux(x86_64)-2.6.18-348.1.1.el5*
>
> * Elastix*
> *   elastix-2.4.0-1*
> *   elastix-portknock-0.0.1-0*
> *   elastix-agenda-2.4.0-1*
> *   elastix-email_admin-2.4.0-1*
> *   elastix-addons-2.4.0-1*
> *   elastix-fax-2.4.0-1*
> *   elastix-firstboot-2.4.0-1*
> *   elastix-framework-2.4.0-1*
> *   elastix-reports-2.4.0-1*
> *   elastix-my_extension-2.4.0-1*
> *   elastix-extras-2.4.0-1*
> *   elastix-vtigercrm-5.2.1-7*
> *   elastix-system-2.4.0-1*
> *   elastix-security-2.4.0-1*
> *   elastix-im-2.4.0-1*
> *   elastix-a2billing-1.9.4-5*
> *   elastix-asterisk-sounds-1.2.3-1*
> *   elastix-pbx-2.4.0-1*
>
> * RounCubeMail*
> *   RoundCubeMail-0.3.1-12*
>
> * Mail*
> *   postfix-2.3.3-6.el5*
> *   cyrus-imapd-2.3.7-12.el5_7.2*
>
> * IM*
> *   openfire-3.7.1-1*
>
> * FreePBX*
> *   freePBX-2.8.1-16*
>
> * Asterisk*
> *   asterisk-1.8.20.0-0*
> *   asterisk-perl-0.10-2*
> *   asterisk-addons-1.8.20.0-0*
>
> * FAX*
> *   hylafax-4.3.10-2rhel5*
> *   iaxmodem-1.2.0-2*
>
> * DRIVERS*
> *   dahdi-2.6.1-4*
> *   rhino-0.99.6-0.b2*
> *   wanpipe-util-3.5.28-0*"
> I am connect from telnet installed on anoter PC with ip 192.168.0.95
> Elastix installed on XEN virtual mashine with ip 192.168.0.5
> in manager.conf i wrote:
>
> "*[general]*
> *enabled = yes*
> *port = 5038*
> *bindaddr = 0.0.0.0*
> *displayconnects=yes ;only effects 1.6+*
>
> *[admin]*
> *secret = qweasd123*
> *deny=192.168.1.0/255.255.255.0 *
> *permit=127.0.0.1/255.255.255.0 *
> *permit=192.168.0.5/255.255.255.0 *
> *permit=192.168.0.95/255.255.255.0 *
> *read =
> system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate*
> *write =
> system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate*
> "
>
>  network connection is stable. if it need i'am add ping dump.
>
> Please help me and i am sorry, for my bad english!
> --
> Тот кто хочет чего то добиться он находит пути реализации, другие находят
> причины невозможности это сделать.
> http://ibeck.kz>Дизайн и разработка сайтов любой сложности
>



-- 
Тот кто хочет чего то добиться он находит пути реализации, другие находят
причины невозможности это сделать.
http://ubuntu.kz>Казахстанское сообщество пользователей линукс
Ubuntu
http://ibeck.kz>Дизайн и разработка сайтов любой сложности
-- 
_
-- 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] AMI & Elastix

2014-08-18 Thread Усин Айбек
Hi all!
I have trouble with connection to AMI 1.1 wich enabled on Elastix

"*Asterisk Call Manager/1.1*
*Action: Login Username: admin Secret: qweasd123*

*Response: Error*
*Message: Missing action in request*"

Elastix versions:

"* Kernel*
*   Linux(x86_64)-2.6.18-348.1.1.el5*

* Elastix*
*   elastix-2.4.0-1*
*   elastix-portknock-0.0.1-0*
*   elastix-agenda-2.4.0-1*
*   elastix-email_admin-2.4.0-1*
*   elastix-addons-2.4.0-1*
*   elastix-fax-2.4.0-1*
*   elastix-firstboot-2.4.0-1*
*   elastix-framework-2.4.0-1*
*   elastix-reports-2.4.0-1*
*   elastix-my_extension-2.4.0-1*
*   elastix-extras-2.4.0-1*
*   elastix-vtigercrm-5.2.1-7*
*   elastix-system-2.4.0-1*
*   elastix-security-2.4.0-1*
*   elastix-im-2.4.0-1*
*   elastix-a2billing-1.9.4-5*
*   elastix-asterisk-sounds-1.2.3-1*
*   elastix-pbx-2.4.0-1*

* RounCubeMail*
*   RoundCubeMail-0.3.1-12*

* Mail*
*   postfix-2.3.3-6.el5*
*   cyrus-imapd-2.3.7-12.el5_7.2*

* IM*
*   openfire-3.7.1-1*

* FreePBX*
*   freePBX-2.8.1-16*

* Asterisk*
*   asterisk-1.8.20.0-0*
*   asterisk-perl-0.10-2*
*   asterisk-addons-1.8.20.0-0*

* FAX*
*   hylafax-4.3.10-2rhel5*
*   iaxmodem-1.2.0-2*

* DRIVERS*
*   dahdi-2.6.1-4*
*   rhino-0.99.6-0.b2*
*   wanpipe-util-3.5.28-0*"
I am connect from telnet installed on anoter PC with ip 192.168.0.95
Elastix installed on XEN virtual mashine with ip 192.168.0.5
in manager.conf i wrote:

"*[general]*
*enabled = yes*
*port = 5038*
*bindaddr = 0.0.0.0*
*displayconnects=yes ;only effects 1.6+*

*[admin]*
*secret = qweasd123*
*deny=192.168.1.0/255.255.255.0 *
*permit=127.0.0.1/255.255.255.0 *
*permit=192.168.0.5/255.255.255.0 *
*permit=192.168.0.95/255.255.255.0 *
*read =
system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate*
*write =
system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate*
"

 network connection is stable. if it need i'am add ping dump.

Please help me and i am sorry, for my bad english!
-- 
Тот кто хочет чего то добиться он находит пути реализации, другие находят
причины невозможности это сделать.
http://ibeck.kz>Дизайн и разработка сайтов любой сложности
-- 
_
-- 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] log caller hangup events

2014-08-18 Thread Gopalakrishnan N
Hi,

You can use Hangup handler. May be this post can you help you,
http://gblades.blogspot.in/2013/07/how-to-get-sip-response-code-in.html

Regards


On Mon, Aug 18, 2014 at 9:45 AM, Paul Greenberg  wrote:

>  All,
>
>
>  I would like to log a message whenever a party hangs up a call or
> session, i.e. no Dial(), user drops off a menu. The message should include
> the length of the user's session, the session's start time, and called ID.
>
>
>  Theoretically, I could set up a channel variable and then ...
>
>
>  Any advice would be most welcome!
>
>
>  Regards,
>
> Paul
>
> --
> _
> -- 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] Question about SIP Dial

2014-08-18 Thread Gopalakrishnan N
It supposed to be like this Dial(SIP/${EXTEN}#ip.add.re.ss)

Regards


On Fri, Aug 15, 2014 at 6:20 AM, CDR  wrote:

> In channel PJSIP I use this format
> Dial(PJSIP/endpoint/sip:${EXTEN}@ip.add.re.ss)
> what would be the equivalent of this format in old SIP?
> I tried
> Dial(SIP/peer/${EXTEN}@ip.add.re.ss)
> but it does not work. I just cannot embed the IP address in the peer's
> definition, but I need to use some other configuration features that
> are unique to each peer.
>
> --
> _
> -- 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