Re: [asterisk-users] Voicemail asking for login

2017-04-20 Thread James Cloos
> "DC" == D'Arcy Cain  writes:

DC> I did debug 10 and saved the console output into files which I
DC> compared side by side.  No material difference.

In that case I'd add more debug statements to apps/app_voicemail.c (in
vm_exec()), including a log at the start of what is in *data and args.

Looking at it, it only plays vm-whichbox when ast_strlen_zero(data),
which implies that the args to Voicemail are not making it through.

-JimC
-- 
James Cloos  OpenPGP: 0x997A9F17ED7DAEA6

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Voicemail asking for login

2017-04-20 Thread D'Arcy Cain

On 2017-04-20 04:07 PM, James Cloos wrote:

I enable full log and run 'core set debug 9' before doing a pair of
tests.

(The full log is easier to grep than the console output.)

Then compare a working vs stocktrans2 side by side.


I did debug 10 and saved the console output into files which I compared 
side by side.  No material difference.


--
D'Arcy J.M. Cain
Vybe Networks Inc.
http://www.VybeNetworks.com/
IM:da...@vex.net VoIP: sip:da...@vybenetworks.com

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Voicemail asking for login

2017-04-20 Thread James Cloos
I enable full log and run 'core set debug 9' before doing a pair of
tests.

(The full log is easier to grep than the console output.)

Then compare a working vs stocktrans2 side by side.

-JimC
-- 
James Cloos  OpenPGP: 0x997A9F17ED7DAEA6

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Voicemail asking for login

2017-04-20 Thread D'Arcy Cain

On 2017-04-20 12:52 PM, J Montoya wrote:

On Thursday 20 Apr 2017, D'Arcy Cain wrote:

On 2017-04-20 12:23 PM, D'Arcy Cain wrote:

Here is the full dialplan for stocktrans2.


I reduced this to the following and I still have the error.

exten => stocktrans2,1,Verbose(0,Entering extension stocktrans2)
 same => n(VoiceMail),Set(CDR(userfield)=VoiceMail)
 same => n,Verbose(0,${CALLERID(all)} going into voice mail for
stocktrans2)
 same => n,VoiceMail(stocktrans2@VoiceMail,u)
 same => n,Hangup()


O.K., so -- assuming that extension "darcy" behaves properly if you simplify
it similarly -- nothing before there can be causing the problem.


Actually, it also failed too when I reduced it.  Turns out that that's 
why I needed to set "_ACCOUNT".  Here is the actual reduced version for 
stocktrans2.  It still fails but substituting "darcy" for "stocktrans2 
works OK.


exten => stocktrans2,1,Verbose(0,Entering extension stocktrans2)
same => n(VoiceMail),Set(CDR(userfield)=VoiceMail)
same => n,Verbose(0,${CALLERID(all)} going into voice mail for 
stocktrans2)

same => n,Set(_ACCOUNT=stocktrans2)
same => n,VoiceMail(stocktrans2@VoiceMail,u)
same => n,Hangup()


What is in your [VoiceMail] context?  Are "stocktrans2" and "darcy" separate
extensions, or is there a catch-all?  What is in the "a" extension  (which
gets called when the * key is pressed) ?


Nothing in [VoiceMail] context except the mailboxes but this precedes 
the context:


[general]
attach=yes
maxsilence=10
maxlogins=3
serveremail=n...@vex.net
format=wav49
fromstring=Vybe Networks Voice Mail
nextaftercmd=yes
forcename=yes
pollmailboxes=yes
pollfreq=5

emailbody=Dear ${VM_NAME}:\n\n\tjust wanted to let you know you were 
just left a ${VM_DUR} long message (number ${VM_MSGNUM})\nin mailbox 
${VM_MAILBOX} from ${VM_CALLERID}, on ${VM_DATE}, so you might\nwant to 
check it when you get a chance.  Thanks!\n\n\t\t\t\t-- Vybe Networks\n


They are separate extensions.  I do not do catch-alls if I can help it. 
Since I generate the configs it is no big deal to expand everything in 
each extension.


; voice mail
  exten => a,1,Verbose(${ACCOUNT} entering mailbox)
same => n,Set(CDR(userfield)=${ACCOUNT})
same => n,VoicemailMain(${ACCOUNT}@VoiceMail)
same => n,Hangup

The VoiceMail extension, as are all the extensions, is in the 
[LocalSets] context.


--
D'Arcy J.M. Cain
Vybe Networks Inc.
http://www.VybeNetworks.com/
IM:da...@vex.net VoIP: sip:da...@vybenetworks.com

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Voicemail asking for login

2017-04-20 Thread J Montoya
On Thursday 20 Apr 2017, D'Arcy Cain wrote:
> On 2017-04-20 12:23 PM, D'Arcy Cain wrote:
> > Here is the full dialplan for stocktrans2.
> 
> I reduced this to the following and I still have the error.
> 
> exten => stocktrans2,1,Verbose(0,Entering extension stocktrans2)
>  same => n(VoiceMail),Set(CDR(userfield)=VoiceMail)
>  same => n,Verbose(0,${CALLERID(all)} going into voice mail for
> stocktrans2)
>  same => n,VoiceMail(stocktrans2@VoiceMail,u)
>  same => n,Hangup()

O.K., so -- assuming that extension "darcy" behaves properly if you simplify 
it similarly -- nothing before there can be causing the problem.

What is in your [VoiceMail] context?  Are "stocktrans2" and "darcy" separate 
extensions, or is there a catch-all?  What is in the "a" extension  (which 
gets called when the * key is pressed) ?

-- 
JM

Note:  Originating address only accepts e-mail from list!  If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Voicemail asking for login

2017-04-20 Thread D'Arcy Cain

On 2017-04-20 12:23 PM, D'Arcy Cain wrote:


Here is the full dialplan for stocktrans2.


I reduced this to the following and I still have the error.

exten => stocktrans2,1,Verbose(0,Entering extension stocktrans2)
same => n(VoiceMail),Set(CDR(userfield)=VoiceMail)
same => n,Verbose(0,${CALLERID(all)} going into voice mail for 
stocktrans2)

same => n,VoiceMail(stocktrans2@VoiceMail,u)
same => n,Hangup()

--
D'Arcy J.M. Cain
Vybe Networks Inc.
http://www.VybeNetworks.com/
IM:da...@vex.net VoIP: sip:da...@vybenetworks.com

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Voicemail asking for login

2017-04-20 Thread D'Arcy Cain

On 2017-04-20 05:14 AM, J Montoya or A J Stiles wrote:

This is just screaming "configuration mismatch" -- or, possibly, "latent bug
whereby things parsed in separate places should be treated the same, but are
actually getting treated differently".


I really don't want to be the "my system isn't working so there must be 
a bug in Asterisk" guy but I am certainly starting to suspect it.



I think we are going to need to see your dialplan logic, and maybe your
voicemail.conf, in order to work out what is different between this one user
and all the others.  You might even need to use `hd` to examine the files, just
in case there is a stray non-printing character spoiling things.


Non-printing characters show up in vi so I would have seen that by now.

Every extension is build by a script that takes information from the 
database and does substitutions which is what makes this so baffling. 
Every extension is built exactly the same way.  Here are two voicemail 
entries, the failing one and mine that works.  The only sanitation I did 
was for the password.


stocktrans2 => ,Angelica Douglas,stocktra...@vex.net
darcy => ,Vybe Networks - D'Arcy,da...@vex.net

Here is the full dialplan for stocktrans2.

exten => stocktrans2,1,Verbose(0,Entering extension stocktrans2)
same => n,Goto(DialCell)
same => n,GotoIf($["x" = "x"]?DialAlt)

same => n(DialAll),Verbose(0,${CALLERID(all)} Calling ${EXTEN} and ALL)
same => n,Dial(SIP/stocktrans2/thinktel//907084,30)
same => n,Goto(VoiceMail)

same => n(DialAlt),Verbose(0, ${CALLERID(all)} Calling ${EXTEN} and 
SoftPhone)

same => n,Dial(SIP/stocktrans2/907084,30)
same => n,Goto(VoiceMail)

same => n(DialCell),GotoIf($["x" = "x"]?DialDesk)
same => n,GotoIf($["${CALLERID(ani)}" = ""]?DialDesk)
same => n,Verbose(0,${CALLERID(all)} Calling "${EXTEN}" and cell "")
same => n,Dial(SIP/stocktrans2/thinktel/,30)
same => n,Goto(VoiceMail)

same => n(DialDesk),Verbose(0,${CALLERID(all)} Calling ${EXTEN})
same => n,Dial(SIP/stocktrans2,30)

same => n(VoiceMail),Set(CDR(userfield)=VoiceMail)
same => n,Verbose(0,${CALLERID(all)} going into voice mail for 
stocktrans2)

same => n,Set(_ACCOUNT=stocktrans2)
same => n,VoiceMail(stocktrans2@VoiceMail,u)
same => n,Hangup()

Here is mine.

exten => darcy,1,Verbose(0,Entering extension darcy)
same => n,GotoIf($["${DEVICE_STATE(SIP/901001)}" = 
"UNAVAILABLE"]?DialCell)

same => n,GotoIf($["x4168035991" = "x"]?DialAlt)

same => n(DialAll),Verbose(0,${CALLERID(all)} Calling ${EXTEN} and ALL)
same => n,Dial(SIP/darcy/thinktel/4168035991/901001,30)
same => n,Goto(VoiceMail)

same => n(DialAlt),Verbose(0, ${CALLERID(all)} Calling ${EXTEN} and 
SoftPhone)

same => n,Dial(SIP/darcy/901001,30)
same => n,Goto(VoiceMail)

same => n(DialCell),GotoIf($["x4168035991" = "x"]?DialDesk)
same => n,GotoIf($["${CALLERID(ani)}" = "4168035991"]?DialDesk)
same => n,Verbose(0,${CALLERID(all)} Calling "${EXTEN}" and cell 
"4168035991")

same => n,Dial(SIP/darcy/thinktel/4168035991,30)
same => n,Goto(VoiceMail)

same => n(DialDesk),Verbose(0,${CALLERID(all)} Calling ${EXTEN})
same => n,Dial(SIP/darcy,30)

same => n(VoiceMail),Set(CDR(userfield)=VoiceMail)
same => n,Verbose(0,${CALLERID(all)} going into voice mail for darcy)
same => n,Set(_ACCOUNT=darcy)
same => n,VoiceMail(darcy@VoiceMail,u)
same => n,Hangup()

There are some minor differences based on whether they have set up an 
alternate phone but either way it gets to the line that set the CDR 
userfield.  They both ultimately hit one or the other of these lines.


same => n,VoiceMail(stocktrans2@VoiceMail,u)
same => n,VoiceMail(darcy@VoiceMail,u)

The only "Set" command that might change the environment is the setting 
of "_ACCOUNT" which they both do.  Not sure why I even do that.  Perhaps 
I was planning some other feature that I never finished.  Or does 
VoiceMail() use it?


Someone (in private email for some reason so I won't give his name) 
suggested DumpChan() but I can't seem to make that work, even if I load 
app_dumpchan.


--
D'Arcy J.M. Cain
Vybe Networks Inc.
http://www.VybeNetworks.com/
IM:da...@vex.net VoIP: sip:da...@vybenetworks.com

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Voicemail asking for login

2017-04-20 Thread J Montoya or A J Stiles
On Wednesday 19 Apr 2017, D'Arcy Cain wrote:
> Yes and  [using something like "1571"]  works just fine for us.  The problem
> is that we are trying
> to deal with the situation where someone calls themselves from another
> phone (internal or external) to pick up their messages.  In every other
> case it asks for their password (which is always numeric) and goes into
> the VM.  This one extension asks for a mailbox.

This is just screaming "configuration mismatch" -- or, possibly, "latent bug 
whereby things parsed in separate places should be treated the same, but are 
actually getting treated differently".

I think we are going to need to see your dialplan logic, and maybe your 
voicemail.conf, in order to work out what is different between this one user 
and all the others.  You might even need to use `hd` to examine the files, just 
in case there is a stray non-printing character spoiling things.

-- 
JM or AJS

Note:  Originating address only accepts e-mail from list!  If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Voicemail asking for login

2017-04-19 Thread D'Arcy Cain

On 2017-04-19 11:57 AM, J Montoya or A J Stiles wrote:

I fished this out of an old extensions.conf from a defunct project.  It might
be relevant to your use case:

exten => 1571,1,NoOp(Call to 1571: voicemail retrieval)
exten => 1571,n,AGI(lookup_caller_id.agi,${CALLERID(num)})
exten => 1571,n,NoOp(CLID is ${clid})
exten => 1571,n,VoiceMailMain(${clid},s)


I do something similar using *98.


The upshot of this was, if you dialled 1571 from your own phone, then you got
put straight through to your own voicemail, without logging in.


Yes and that works just fine for us.  The problem is that we are trying 
to deal with the situation where someone calls themselves from another 
phone (internal or external) to pick up their messages.  In every other 
case it asks for their password (which is always numeric) and goes into 
the VM.  This one extension asks for a mailbox.


--
D'Arcy J.M. Cain
Vybe Networks Inc.
http://www.VybeNetworks.com/
IM:da...@vex.net VoIP: sip:da...@vybenetworks.com

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Voicemail asking for login

2017-04-19 Thread J Montoya or A J Stiles
On Wednesday 19 Apr 2017, D'Arcy Cain wrote:
> On 2017-04-19 02:39 AM, Pete Mundy wrote:
> > Hmm... Above my pay grade I'm afraid! Looking at your 'voicemail
> > 
>  > show users' I can't see why the vm_authenticate function is
>  > failing to read the username :(
> 
> I can answer that one.  It's because we can't enter 'stocktrans2' from a
> telephone so we just hang up.  The question is, why does it ask for the
> mailbox in the first place>

I fished this out of an old extensions.conf from a defunct project.  It might 
be relevant to your use case:

exten => 1571,1,NoOp(Call to 1571: voicemail retrieval)
exten => 1571,n,AGI(lookup_caller_id.agi,${CALLERID(num)})
exten => 1571,n,NoOp(CLID is ${clid})
exten => 1571,n,VoiceMailMain(${clid},s)

The AGI script  `lookup_caller_id.agi`  sets the variable  ${clid}  to the 
caller's extension number, after which their mailbox is named  (although there 
is no reason not to set another variable, such as ${mbox} to hold the mailbox 
if you want).  In the call to voicemailmail() we specify this mailbox, and 
also use the  `s`  option to skip password checking  (it was safe in this 
situation to assume that nobody had physical access to a phone who definitely 
should not have had access to its user's voicemail messages).

The upshot of this was, if you dialled 1571 from your own phone, then you got 
put straight through to your own voicemail, without logging in.  

-- 
JM or AJS

Note:  Originating address only accepts e-mail from list!  If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Voicemail asking for login

2017-04-19 Thread D'Arcy Cain

On 2017-04-19 02:39 AM, Pete Mundy wrote:

Hmm... Above my pay grade I'm afraid! Looking at your 'voicemail

> show users' I can't see why the vm_authenticate function is
> failing to read the username :(

I can answer that one.  It's because we can't enter 'stocktrans2' from a 
telephone so we just hang up.  The question is, why does it ask for the 
mailbox in the first place>



If I were any good at coding in C, I'd probably look inside

> app_voicemail.c around line number 10671 and see if I could
> determine how it reads the username and maybe throw some hacky
? debug output in there to try and determine at which point of
> that process it's failing. But I'm no good at coding in that
> language, so will have to defer to others to help.

I guess that's my next stop.  Luckily I have kept my C skills somewhat 
active as the chief maintainer for PyGreSQL.  :-)


--
D'Arcy J.M. Cain
Vybe Networks Inc.
http://www.VybeNetworks.com/
IM:da...@vex.net VoIP: sip:da...@vybenetworks.com

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Voicemail asking for login

2017-04-19 Thread Pete Mundy
> On 19/04/2017, at 4:25 pm, D'Arcy Cain  wrote:
> 
>> Does this mailbox exist?
> 
> Yes.

Hmm... Above my pay grade I'm afraid! Looking at your 'voicemail show users' I 
can't see why the vm_authenticate function is failing to read the username :(

If I were any good at coding in C, I'd probably look inside app_voicemail.c 
around line number 10671 and see if I could determine how it reads the username 
and maybe throw some hacky debug output in there to try and determine at which 
point of that process it's failing. But I'm no good at coding in that language, 
so will have to defer to others to help.

Good work on sending through the console clipping and relevant info. Sorry I 
couldn't resolve it for you.

Anyone else got any other ideas?

Pete




smime.p7s
Description: S/MIME cryptographic signature
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Voicemail asking for login

2017-04-18 Thread D'Arcy Cain

On 2017-04-18 08:17 PM, Pete Mundy wrote:

On 19/04/2017, at 7:58 am, D'Arcy Cain > wrote:


Everything looks the same as another one that works except for two
things.  The one that works doesn't have the "Probation passed" lines.
I am not sure if that is even part of this call.  The other is the
line with "Playing 'vm-login.gsm'" in it.  at that point the working
one has this:



Presumably also the line containing 'vm_authenticate: Couldn't read
username' also doesn't appear in the output on a working mailbox either?


Exactly.  Since it is not all digits it can't be entered.


I think that's the place to concentrate your efforts.

It shows shortly after the attempt by VoiceMailMain to enter mailbox
'stocktrans2' in context 'VoiceMail'. Does this mailbox exist?


Yes.


Can you show the equivalent line from a working mailbox (so we can see
if it also uses the context 'VoiceMail', or maybe something else
instead, like 'default'?).


"" <6477190146> going into voice mail for alex<<<
-- Executing [alex@LocalSets:19] Set("SIP/thinktel-0181", 
"_ACCOUNT=alex") in new stack<<<
-- Executing [alex@LocalSets:20] VoiceMail("SIP/thinktel-0181", 
"alex@VoiceMail,u") in new stack<<<
--  Playing 
'/var/spool/asterisk/voicemail/VoiceMail/alex/unavail.gsm' (language 
'en')<<<
[Apr 18 11:56:47] DTMF[-1][C-0004c485]: channel.c:4215 __ast_read: DTMF 
begin '*' received on SIP/thinktel-0181<<<
[Apr 18 11:56:47] DTMF[-1][C-0004c485]: channel.c:4219 __ast_read: DTMF 
begin ignored '*' on SIP/thinktel-0181<<<
[Apr 18 11:56:48] DTMF[-1][C-0004c485]: channel.c:4129 __ast_read: DTMF 
end '*' received on SIP/thinktel-0181, duration 280 ms<<<
[Apr 18 11:56:48] DTMF[-1][C-0004c485]: channel.c:4199 __ast_read: DTMF 
end passthrough '*' on SIP/thinktel-0181<<<
-- Executing [a@LocalSets:1] Verbose("SIP/thinktel-0181", "alex 
entering mailbox") in new stack<<<

alex entering mailbox<<<
-- Executing [a@LocalSets:2] Set("SIP/thinktel-0181", 
"CDR(userfield)=alex") in new stack<<<
-- Executing [a@LocalSets:3] VoiceMailMain("SIP/thinktel-0181", 
"alex@VoiceMail") in new stack<<<

--  Playing 'vm-password.gsm' (language 'en')<<<
[Apr 18 11:56:53] WARNING[-1][C-0004c485]: app_voicemail.c:10671 
vm_authenticate: Unable to read password<<<


I hung up before entering the password but it does work when the user 
does it.


--
D'Arcy J.M. Cain
Vybe Networks Inc.
http://www.VybeNetworks.com/
IM:da...@vex.net VoIP: sip:da...@vybenetworks.com

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Voicemail asking for login

2017-04-18 Thread D'Arcy Cain

On 2017-04-18 08:31 PM, Victor Villarreal wrote:

Maybe excecuting the following command at Asterisk console, will help you:

asterisk> voicemail show users

And you will get a list of all mailbox configured in your system. Search
for the user with problems.


VoiceMail  stocktrans2 Angelica Douglas 12

Definitely there.  In fact, I generate all the configs from a database 
with a script so I would be very surprised if one user was different 
from another.


--
D'Arcy J.M. Cain
Vybe Networks Inc.
http://www.VybeNetworks.com/
IM:da...@vex.net VoIP: sip:da...@vybenetworks.com

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Voicemail asking for login

2017-04-18 Thread Victor Villarreal
Hi Darcy,

What Pete think is correct.

Maybe excecuting the following command at Asterisk console, will help you:

asterisk> voicemail show users

And you will get a list of all mailbox configured in your system. Search
for the user with problems.

Finally, in the Asterisk wiki you can find more info:

https://wiki.asterisk.org/wiki/display/AST/Configuring+Voice+Mail+Boxes

Cheers

El 18 abr. 2017 21:18, "Pete Mundy"  escribió:

On 19/04/2017, at 7:58 am, D'Arcy Cain  wrote:



Everything looks the same as another one that works except for two things.
The one that works doesn't have the "Probation passed" lines. I am not sure
if that is even part of this call.  The other is the line with "Playing
'vm-login.gsm'" in it.  at that point the working one has this:




Presumably also the line containing 'vm_authenticate: Couldn't read
username' also doesn't appear in the output on a working mailbox either?

I think that's the place to concentrate your efforts.
It shows shortly after the attempt by VoiceMailMain to enter mailbox
'stocktrans2' in context 'VoiceMail'. Does this mailbox exist?

Can you show the equivalent line from a working mailbox (so we can see if
it also uses the context 'VoiceMail', or maybe something else instead, like
'default'?).

Pete


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.
org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Voicemail asking for login

2017-04-18 Thread Pete Mundy
> On 19/04/2017, at 7:58 am, D'Arcy Cain  wrote:
> 
> 
> Everything looks the same as another one that works except for two things.  
> The one that works doesn't have the "Probation passed" lines. I am not sure 
> if that is even part of this call.  The other is the line with "Playing 
> 'vm-login.gsm'" in it.  at that point the working one has this:
> 

Presumably also the line containing 'vm_authenticate: Couldn't read username' 
also doesn't appear in the output on a working mailbox either?

I think that's the place to concentrate your efforts.

It shows shortly after the attempt by VoiceMailMain to enter mailbox 
'stocktrans2' in context 'VoiceMail'. Does this mailbox exist?

Can you show the equivalent line from a working mailbox (so we can see if it 
also uses the context 'VoiceMail', or maybe something else instead, like 
'default'?).

Pete



smime.p7s
Description: S/MIME cryptographic signature
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Voicemail asking for login

2017-04-18 Thread D'Arcy Cain

On 2017-04-18 02:42 AM, Pete Mundy wrote:

Try this:

asterisk -r
core set verbose 10
[get user to trigger fault]
[examine console output, and post to list if still unclear]

If you don't solve it yourself, then we'll be able to help further once
we've seen the output.


I can't see much more than at my previous debug level but here it is 
anyway.  Due to line wrapping I added "<<<" to the end of each line in 
case it is not clear where the actual line endings are.


"Alex Chernyshev" <4164251212> going into voice mail for stocktrans2<<<
-- Executing [stocktrans2@LocalSets:19] Set("SIP/alex-0175", 
"_ACCOUNT=stocktrans2") in new stack<<<
-- Executing [stocktrans2@LocalSets:20] 
VoiceMail("SIP/alex-0175", "stocktrans2@VoiceMail,u") in new stack<<<
   > 0x7f7fea5dc000 -- Probation passed - setting RTP source 
address to 72.143.94.110:28503<<<
--  Playing 
'/var/spool/asterisk/voicemail/VoiceMail/stocktrans2/unavail.gsm' 
(language 'en')<<<
   > 0x7f7fea5dc000 -- Probation passed - setting RTP source 
address to 72.143.94.110:28503<<<
[Apr 18 11:45:38] DTMF[-1][C-0004c47b]: channel.c:4215 __ast_read: DTMF 
begin '*' received on SIP/alex-0175<<<
[Apr 18 11:45:38] DTMF[-1][C-0004c47b]: channel.c:4219 __ast_read: DTMF 
begin ignored '*' on SIP/alex-0175<<<
[Apr 18 11:45:38] DTMF[-1][C-0004c47b]: channel.c:4129 __ast_read: DTMF 
end '*' received on SIP/alex-0175, duration 160 ms<<<
[Apr 18 11:45:38] DTMF[-1][C-0004c47b]: channel.c:4199 __ast_read: DTMF 
end passthrough '*' on SIP/alex-0175<<<
-- Executing [a@LocalSets:1] Verbose("SIP/alex-0175", 
"stocktrans2 entering mailbox") in new stack<<<

stocktrans2 entering mailbox<<<
-- Executing [a@LocalSets:2] Set("SIP/alex-0175", 
"CDR(userfield)=stocktrans2") in new stack<<<
-- Executing [a@LocalSets:3] VoiceMailMain("SIP/alex-0175", 
"stocktrans2@VoiceMail") in new stack<<<

--  Playing 'vm-login.gsm' (language 'en')<<<
[Apr 18 11:45:49] WARNING[-1][C-0004c47b]: app_voicemail.c:10627 
vm_authenticate: Couldn't read username<<<


Everything looks the same as another one that works except for two 
things.  The one that works doesn't have the "Probation passed" lines. I 
am not sure if that is even part of this call.  The other is the line 
with "Playing 'vm-login.gsm'" in it.  at that point the working one has 
this:


--  Playing 'vm-password.gsm' (language 'en')

Not sure if that's useful information since it just describes the 
original issue - that it asks for a login instead of a password.



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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Voicemail asking for login

2017-04-18 Thread Israel Gottlieb
 Does he have the same voicemail context?From: p...@fiberphone.co.nzSent: April 18, 2017 9:43 AMTo: asterisk-users@lists.digium.comReply-to: asterisk-users@lists.digium.comSubject: Re: [asterisk-users] Voicemail asking for login  Hi D'ArcyOn 18/04/2017, at 5:17 am, D'Arcy Cain <da...@vybenetworks.com> wrote:One user (that we know of so far) has a different experience.  In that case they are asked for a mailbox number first.  I have tried searching for this issue but nothing seems to apply.  Most discussions are about "*97" vs. "*98".  Can anyone suggest another field of enquiry?Try this:	asterisk -r	core set verbose 10	[get user to trigger fault]	[examine console output, and post to list if still unclear]If you don't solve it yourself, then we'll be able to help further once we've seen the output.HTH,Pete-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Voicemail asking for login

2017-04-18 Thread Pete Mundy
Hi D'Arcy

> On 18/04/2017, at 5:17 am, D'Arcy Cain  wrote:
> 
> 
> One user (that we know of so far) has a different experience.  In that case 
> they are asked for a mailbox number first.  
> 
> I have tried searching for this issue but nothing seems to apply.  Most 
> discussions are about "*97" vs. "*98".  Can anyone suggest another field of 
> enquiry?


Try this:

asterisk -r
core set verbose 10
[get user to trigger fault]
[examine console output, and post to list if still unclear]

If you don't solve it yourself, then we'll be able to help further once we've 
seen the output.

HTH,

Pete




smime.p7s
Description: S/MIME cryptographic signature
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users