Re: [asterisk-users] Removing mailbox and password prompt for voicemail

2016-08-01 Thread Nabeel
>
> But did you understand every line and what it was doing?
>

They are quite self-explanatory, so of-course I understand them.


> Too much information missing.  Perhaps instead of asking how to
> implement the solution that you have already decided on you should
> instead tell us what problem you are trying to solve.  Are you really
> trying to make your voicemail available to anyone who calls you or are
> you limiting it to just the registered phone?  How are you accessing VM


I am using ODBC realtime storage with Asterisk. Currently, with no password
set, a user can dial the voicemail number to retrieve their own voicemail,
without needing to enter a password (without hearing the password prompt).
However, there is still a 'mailbox' prompt played, and if a different
mailbox number is entered after this prompt, then a password can be entered
(if set) which intrudes into the other person's mailbox. I want to remove
this 'mailbox' prompt so that users won't have this opportunity to access
another person's mailbox.

That's exactly what I mean.  That's why you need to password protect
> it.


I am yet to test this behaviour in Asterisk during the Unavailable/Busy
message. However, if this is the case, then this seems to be an illogical
security hole in Asterisk's design. Why does Asterisk allow accessing
another person's mailbox by pressing the '*' key, while listening to *the
other person's* unavailable message?

Nabeel
-- 
_
-- 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] Removing mailbox and password prompt for voicemail

2016-08-01 Thread Steve Howes

On 01/08/16 09:08, Nabeel wrote:

I am yet to test this behaviour in Asterisk during the 
Unavailable/Busy message. However, if this is the case, then this 
seems to be an illogical security hole in Asterisk's design. Why does 
Asterisk allow accessing another person's mailbox by pressing the '*' 
key, while listening to /the other person's/ unavailable message?




So you can access your own voicemail remotely.

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

[asterisk-users] Detecting end of Ringback

2016-08-01 Thread Saint Michael
On an outbound call, PJSIP, I execute a macro and try to detect the end of
ringback, inside the macro. So far waitforring() does nothing, stays stuck.
Any combination of waitffornoise and waitforsilence, or backgrounddetect
fail to find the moment when the ringabck stops. I can detect when it
starts, with waitfornoise, but not its end.
Any idea? Should I open a ticket for waitforring?
-- 
_
-- 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] Detecting end of Ringback

2016-08-01 Thread Joshua Colp

Saint Michael wrote:

On an outbound call, PJSIP, I execute a macro and try to detect the end
of ringback, inside the macro. So far waitforring() does nothing, stays
stuck. Any combination of waitffornoise and waitforsilence, or
backgrounddetect fail to find the moment when the ringabck stops. I can
detect when it starts, with waitfornoise, but not its end.
Any idea? Should I open a ticket for waitforring?


WaitForRing doesn't do audio analysis to determine ringing, it's up to 
the channel driver to signal that ringing has occurred using a frame. As 
PJSIP doesn't do audio analysis (it's up to the provider or gateway) 
it's just answered instead.


--
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] Removing mailbox and password prompt for voicemail

2016-08-01 Thread D'Arcy J.M. Cain
On Mon, 1 Aug 2016 09:08:36 +0100
Nabeel  wrote:
> I am using ODBC realtime storage with Asterisk. Currently, with no
> password set, a user can dial the voicemail number to retrieve their

>From their own phone or from any phone?

> I am yet to test this behaviour in Asterisk during the
> Unavailable/Busy message. However, if this is the case, then this
> seems to be an illogical security hole in Asterisk's design. Why does
> Asterisk allow accessing another person's mailbox by pressing the '*'
> key, while listening to *the other person's* unavailable message?

It's not for accessing another person's mailbox.  It's for accessing
your own when you are away from home/office.

-- 
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:da...@vex.net
VoIP: sip:da...@vex.net

-- 
_
-- 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] Agent with status "in call" and "Not in use" at same time in asterisk13

2016-08-01 Thread Alonso Genis
Dears,

I have a small callcenter with asterisk13.10-rc3.

My agents have dynamic association with an identify, example:

# queue show
helpdesk has 0 calls (max 5) in 'rrmemory' strategy (0s holdtime, 0s
talktime), W:0, C:0, A:0, SL:0.0% within 0s
   Members:
  9428 (Local/1939@1939_in/n from SIP/1939) (ringinuse disabled)
(dynamic) (paused) (Not in use) has taken no calls yet
  9458 (Local/1942@1942_in/n from SIP/1942) (ringinuse disabled)
(dynamic) (Not in use) has taken no calls yet
  9421 (Local/2887@2887_in/n from SIP/2887) (ringinuse disabled)
(dynamic) (Busy) has taken no calls yet
  9001 (Local/1943@1943_in/n from SIP/1943) (ringinuse disabled)
(dynamic) (paused) (Not in use) has taken no calls yet
   No Callers

I add or remove agents with "queue add member" or "queue remove member"
comands.

My problem is when an agent has status (in call) (Not in use). I think i
must see just (in call) (Busy), i wonder what (in call) (Not in use) means.

When this situation occurs, that agent don't receive calls anymore. I must
remove it and add to queue again for a fix.

My queues.conf configuration is:

[general]
persistentmembers = yes

[helpdesk]
autofill=yes
eventwhencalled=yes
music=planetfone
timeout=30
announce-frequency=0
maxlen=5
strategy=rrmemory
context=fila_helpdesk
leavewhenempty=no
joinempty=yes
retry=2
ringinuse=no
weight=0
monitor-format=al
wrapuptime=5
shared_lastcall=yes

Any suggestion is appreciated.

Alonso.
-- 
_
-- 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] Removing mailbox and password prompt for voicemail

2016-08-01 Thread Nabeel
>
> From their own phone or from any phone?
>

>From their own phone. If calling from any other phone, the only difference
- for entering the same mailbox - is to enter the mailbox number
immediately after the 'mailbox' prompt,



> It's not for accessing another person's mailbox.  It's for accessing
> your own when you are away from home/office.


For my setup, the user only needs to access their mailbox from their
registered device, not from any other phone. This is why I am trying to
remove the 'mailbox' prompt altogether, because it is more efficient for
users to skip that step if possible.

Nabeel
-- 
_
-- 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] Removing mailbox and password prompt for voicemail

2016-08-01 Thread Dave Platt

> I am using ODBC realtime storage with Asterisk. Currently, with no password
> set, a user can dial the voicemail number to retrieve their own voicemail,
> without needing to enter a password (without hearing the password prompt).
> However, there is still a 'mailbox' prompt played, and if a different
> mailbox number is entered after this prompt, then a password can be entered
> (if set) which intrudes into the other person's mailbox. I want to remove
> this 'mailbox' prompt so that users won't have this opportunity to access
> another person's mailbox.

So... I think you've been given all of the necessary elements to a
solution which will allow you to do this, while still maintaining
adequate voicemail security.

(1) Set up an inbound voicemail mailbox (you've already done this).

(2) Set up a strong, non-guessable password on the mailbox.  This
will allow you to access the mailbox remotely, if you wish
(by using the "* during the mailbox's greeting" feature)
without allowing random callers to break into the mailbox.

(3) Set up a custom dialplan context for those phones that you
wish to give "password-less" access to the mailbox.

(4) In this context, add an extension which, when dialed, runs
the VoiceMailMain() application, specifying the correct
mailbox identifier for those phones, and including the "s"
option (which will bypass the password prompt).

(5) In sip.conf, place each of these phones into this custom
dialplan context.

(6) If desired, record a different voicemail greeting message
in place of the "Camedian mail", convert to the correct
format, and place into your voice-prompts directory.

(7) Do a "dialplan reload" and "sip reload".

Voila.  You're done.  From any of these phones you'll be able
to dial the extension you added in step (4), and go right to the
voicemail "You have NNN new messages" greeting and the menu.  No
password required.

You'll also be able to access your voicemail remotely (and safely)
by dialing one of these extensions, waiting for the "Please leave
a message" greeting, and hitting "*", and then entering the
password.



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