Re: [asterisk-users] AMI: check if the user has a Mailbox

2016-04-21 Thread Pete Mundy
Hi Luca

Would greping for the existence of the mailbox number in /etc/voicemail.conf do 
the trick?

Pete


> On 22/04/2016, at 7:34 am, Luca Bertoncello  wrote:
> 
> Hi list!
> 
> On an Asterisk-Server I have some users. Just two of them have a Mailbox.
> I want to write a little Web interface to manage many things and I'd like to
> have a menu point for the voicemail, but just if the user has a Mailbox.
> 
> I found the AMI-Command MailboxStatus, but it does not return what I need,
> since it returns 0 if the user has a Mailbox but no messages and if the user
> has no Mailbox...
> 
> Could someone suggest me a way to get this information?
> 
> Thanks a lot!
> Luca Bertoncello
-- 
_
-- 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] Trouble getting Asterisk Running with FreePBX 11

2016-04-21 Thread Duncan


On 22/04/16 01:52, Daniel Chavez wrote:

Hi,
I recently had to reinstall Asterisk and FreePBX. asteirsk 11.20 and FreePBX 12.
This is running on Centos 6.7 32 bit.
When I use amportal start
It comes up with the errors below
Error in argument 1, char 2: option not found r
/usr/local/sbin/amportal: line 49: Usage:: command not found
 WARNING: ERROR IN CONFIGURATION 
My guess is you might not have run amportal with enough permissions to 
allow it to create /var/run/asterisk


If you create the directory and give asterisk permissions you should get 
past this but since it can be wiped its better to make sure your 
permissions are right.




astrundir in '/etc/asterisk' is set to  but the directory
does not exists. Attempting to create it with: 'mkdir -p '
mkdir: missing operand
Try `mkdir --help' for more information.
 ERROR: COULD NOT CREATE  
Attempt to execute 'mkdir -p ' failed with an exit code of 1
You must create this directory and the try again.
I'm not sure how to solve this? Asterisk already has the run directory in 
/var/run/asterisk and the config file notes this.
Perhaps it's PHP? Before I ran PHP 5.4 and now am running PHP 5.5.

Good luck

--
_
-- 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: check if the user has a Mailbox

2016-04-21 Thread Telium Technical Support
I don't think the directory check method is reliable; a user can have a
mailbox but if no messages have been left then the directory structure may
not exist.  Through the AMI you can show peer/user information and I believe
it shows you the mailbox associated with user/peer.

-Raj-

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tech Support
Sent: Thursday, April 21, 2016 4:23 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [asterisk-users] AMI: check if the user has a Mailbox

I don't think you are going to be able to get that information using the
AMI. You should be able to figure it out though by looking at the voicemail
directory structure in /var/spool/asterisk/voicemail// or
in your database if you're using real time. It's probably just as easy to
write a script that will look for the proper directory as it is to write a
script to query the AMI. 
Regards;
John V. 

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Luca
Bertoncello
Sent: Thursday, April 21, 2016 3:35 PM
To: Asterisk Users
Subject: [asterisk-users] AMI: check if the user has a Mailbox

Hi list!

On an Asterisk-Server I have some users. Just two of them have a Mailbox.
I want to write a little Web interface to manage many things and I'd like to
have a menu point for the voicemail, but just if the user has a Mailbox.

I found the AMI-Command MailboxStatus, but it does not return what I need,
since it returns 0 if the user has a Mailbox but no messages and if the user
has no Mailbox...

Could someone suggest me a way to get this information?

Thanks a lot!
Luca Bertoncello
(lucab...@lucabert.de)

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


-- 
_
-- 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: check if the user has a Mailbox

2016-04-21 Thread Tech Support
I don't think you are going to be able to get that information using the
AMI. You should be able to figure it out though by looking at the voicemail
directory structure in /var/spool/asterisk/voicemail// or
in your database if you're using real time. It's probably just as easy to
write a script that will look for the proper directory as it is to write a
script to query the AMI. 
Regards;
John V. 

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Luca
Bertoncello
Sent: Thursday, April 21, 2016 3:35 PM
To: Asterisk Users
Subject: [asterisk-users] AMI: check if the user has a Mailbox

Hi list!

On an Asterisk-Server I have some users. Just two of them have a Mailbox.
I want to write a little Web interface to manage many things and I'd like to
have a menu point for the voicemail, but just if the user has a Mailbox.

I found the AMI-Command MailboxStatus, but it does not return what I need,
since it returns 0 if the user has a Mailbox but no messages and if the user
has no Mailbox...

Could someone suggest me a way to get this information?

Thanks a lot!
Luca Bertoncello
(lucab...@lucabert.de)

--
_
-- 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] AMI: check if the user has a Mailbox

2016-04-21 Thread Luca Bertoncello
Hi list!

On an Asterisk-Server I have some users. Just two of them have a Mailbox.
I want to write a little Web interface to manage many things and I'd like to
have a menu point for the voicemail, but just if the user has a Mailbox.

I found the AMI-Command MailboxStatus, but it does not return what I need,
since it returns 0 if the user has a Mailbox but no messages and if the user
has no Mailbox...

Could someone suggest me a way to get this information?

Thanks a lot!
Luca Bertoncello
(lucab...@lucabert.de)

-- 
_
-- 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 13.1-cert6 Now Available

2016-04-21 Thread Robert McGilvray
> Are you selectively loading modules? If so you need the new res_pjproject.so 
> loaded.

Yes. That did it, thanks.

Bob

This email with all information contained herein or attached hereto may contain 
confidential and/or privileged information intended for the addressee(s) only. 
If you have received this email in error, please contact the sender and 
immediately delete this email in its entirety and any attachments thereto.

-- 
_
-- 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 13.1-cert6 Now Available

2016-04-21 Thread Joshua Colp

Robert McGilvray wrote:

Hello,

This build fails to load res_pjsip.so, it kicks back symbol lookup
errors for ast_pjproject_get_buildopt. Certified cert4 works fine,
pjproject is 2.4.5.


Are you selectively loading modules? If so you need the new 
res_pjproject.so loaded.


--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
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


Re: [asterisk-users] Asterisk 13.1-cert6 Now Available

2016-04-21 Thread Robert McGilvray
Hello,

This build fails to load res_pjsip.so, it kicks back symbol lookup errors for 
ast_pjproject_get_buildopt. Certified cert4 works fine, pjproject is 2.4.5.

[Apr 21 13:15:34]  Loading res_pjsip.so.
[Apr 21 13:15:34] -- Local IPv4 address determined to be: 10.33.204.12
[Apr 21 13:15:34] -- Local IPv6 address determined to be: 
[fe80::250:56ff:fe95:501a]
[Apr 21 13:15:34]   == Parsing 
'/home/asterisk/asterisk/certified-13.1-cert6/etc/pjsip.conf': Found
[Apr 21 13:15:34]   == Manager registered action PJSIPShowEndpoints
[Apr 21 13:15:34]   == Manager registered action PJSIPShowEndpoint
/home/asterisk/asterisk/certified-13.1-cert6/sbin/asterisk: symbol lookup 
error: /home/asterisk/asterisk/certified-13.1-cert6/lib/modules/res_pjsip.so: 
undefined symbol: ast_pjproject_get_buildopt

ykt1cfbprd1:/home/asterisk/asterisk/certified-13.1-cert6/etc# ldd 
/home/asterisk/asterisk/certified-13.1-cert6/lib/modules/res_pjsip.so
linux-vdso.so.1 =>  (0x7ffc9aa2e000)
libpjsua2.so.2 => /usr/local/lib/libpjsua2.so.2 (0x7fe01653f000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x7fe016235000)
libpjsua.so.2 => /usr/local/lib/libpjsua.so.2 (0x7fe015f84000)
libpjsip-ua.so.2 => /usr/local/lib/libpjsip-ua.so.2 (0x7fe015d6e000)
libpjsip-simple.so.2 => /usr/local/lib/libpjsip-simple.so.2 
(0x7fe015b5b000)
libpjsip.so.2 => /usr/local/lib/libpjsip.so.2 (0x7fe015914000)
libpjmedia-codec.so.2 => /usr/local/lib/libpjmedia-codec.so.2 
(0x7fe015709000)
libpjmedia-videodev.so.2 => /usr/local/lib/libpjmedia-videodev.so.2 
(0x7fe015506000)
libpjmedia-audiodev.so.2 => /usr/local/lib/libpjmedia-audiodev.so.2 
(0x7fe015301000)
libpjmedia.so.2 => /usr/local/lib/libpjmedia.so.2 (0x7fe0150be000)
libpjnath.so.2 => /usr/local/lib/libpjnath.so.2 (0x7fe014e9e000)
libpjlib-util.so.2 => /usr/local/lib/libpjlib-util.so.2 
(0x7fe014c7b000)
libsrtp.so.2 => /usr/local/lib/libsrtp.so.2 (0x7fe014a66000)
libgsmcodec.so.2 => /usr/local/lib/libgsmcodec.so.2 (0x7fe01485a000)
libspeex.so.2 => /usr/local/lib/libspeex.so.2 (0x7fe014631000)
libilbccodec.so.2 => /usr/local/lib/libilbccodec.so.2 
(0x7fe014422000)
libg7221codec.so.2 => /usr/local/lib/libg7221codec.so.2 
(0x7fe01421)
libpj.so.2 => /usr/local/lib/libpj.so.2 (0x7fe013ff1000)
libm.so.6 => /lib64/libm.so.6 (0x7fe013cef000)
librt.so.1 => /lib64/librt.so.1 (0x7fe013ae6000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x7fe0138ca000)
libc.so.6 => /lib64/libc.so.6 (0x7fe013509000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x7fe0132f2000)
/lib64/ld-linux-x86-64.so.2 (0x7fe0169ef000)

Regards

Robert McGilvray
o: 914 293 3584

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Asterisk 
Development Team
Sent: Wednesday, April 20, 2016 12:04 PM
To: Asterisk Users Mailing List
Subject: [asterisk-users] Asterisk 13.1-cert6 Now Available

The Asterisk Development Team has announced the release of Certified Asterisk 
13.1-cert6.
This release is available for immediate download at
http://downloads.asterisk.org/pub/telephony/certified-asterisk

The release of Certified Asterisk 13.1-cert6 resolves several issues reported 
by the community and would have not been possible without your participation.
Thank you!

The following are the issues resolved in this release:

Bugs fixed in this release:
---
 * ASTERISK-25929 - res_pjsip_registrar: AOR_CONTACT_ADDED events
  not raised (Reported by Joshua Colp)
 * ASTERISK-25928 - res_pjsip: URI validation done outside of PJSIP
  thread (Reported by Joshua Colp)

For a full list of changes in this release, please see the ChangeLog:

http://downloads.asterisk.org/pub/telephony/certified-asterisk/ChangeLog-certified-13.1-cert6

Thank you for your continued support of Asterisk!
This email with all information contained herein or attached hereto may contain 
confidential and/or privileged information intended for the addressee(s) only. 
If you have received this email in error, please contact the sender and 
immediately delete this email in its entirety and any attachments thereto.
-- 
_
-- 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] Trouble getting Asterisk Running with FreePBX 11

2016-04-21 Thread Daniel Chavez
Hi,
I recently had to reinstall Asterisk and FreePBX. asteirsk 11.20 and FreePBX 12.
This is running on Centos 6.7 32 bit.
When I use amportal start
It comes up with the errors below
Error in argument 1, char 2: option not found r
/usr/local/sbin/amportal: line 49: Usage:: command not found
 WARNING: ERROR IN CONFIGURATION 
astrundir in '/etc/asterisk' is set to  but the directory
does not exists. Attempting to create it with: 'mkdir -p '
mkdir: missing operand
Try `mkdir --help' for more information.
 ERROR: COULD NOT CREATE  
Attempt to execute 'mkdir -p ' failed with an exit code of 1
You must create this directory and the try again.
I'm not sure how to solve this? Asterisk already has the run directory in 
/var/run/asterisk and the config file notes this.
Perhaps it's PHP? Before I ran PHP 5.4 and now am running PHP 5.5.
-- 
_
-- 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] XyBot - a XMPP bot that allows users to interact with Asterisk

2016-04-21 Thread Marcelo Terres
Hi.

I'm here to invite you all to test another PoC that I developed and
that uses Asterisk and XMPP, called XyBot.

XyBot is a XMPP bot written in python and its main goal is to enable
users to interact with asterisk directly from their XMPP client.

Xybot was built to provide a expandable structure of plugins and
monitoring agents that allows system administrators to develop their
own features.

You can find more informations (including source code for download) in
my blog at 
https://www.mundoopensource.com.br/xybot-xmpp-bot-that-allows-users-to-interact-with-asterisk/.

Any doubts or suggestions are welcomed.

Regards,

Marcelo H. Terres 
IM: mhter...@jabber.mundoopensource.com.br
https://www.mundoopensource.com.br
https://twitter.com/mhterres
https://linkedin.com/in/marceloterres

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