Voice Mailbox configuration

Hello,

I am facing an issue with Asterisk 1 when trying to setup voicemail.
Below you may find my extension.conf , sip. conf and voicemail.conf configuration.
when i am tryng to dial a sip extension, after 10 seconds i receive the following server message :

– Executing [6001@from-internal:1] Dial(“SIP/demo2-00000009”, “SIP/demo1,10”) in new stack
== Using SIP RTP CoS mark 5
– Called SIP/demo1
– SIP/demo1-0000000a is ringing
– Nobody picked up in 10000 ms
– Executing [6001@from-internal:2] VoiceMail(“SIP/demo2-00000009”, “6001@from-internal,u”) in new stack
== Using SIP RTP CoS mark 5
== Spawn extension (from-internal, 6001, 2) exited non-zero on 'SIP/demo2-00000009

However I am unable to leave a voicemail.Moreover, if i cal the extension for each machine i am unable to login with the credentials from voicemail.conf in comedian mail .Can you please help me ?

sip.conf:
[general]
transport=udp

friends_internal
type=peer
host=dynamic
context=from-internal
dtmfmode = inband
disallow=all
allow=gsm
allow=alaw

demo1
secret=parola1
mailbox =demo1@default
demo2
secret=parola1
mailbox =demo2@default

demo3
secret=parola1
mailbox =demo3@default
demo4
secret=parola1
mailbox =demo4@default

voicemail.conf

[from-internal]
6001=>1234,demo1 Mailbox,my-email@gmail.com
6002=>1234,demo2 Mailbox,my-email@gmail.com
6003=>1234,demo3 Mailbox,my-email@gmail.com
6004=>1234,demo4 Mailbox,my-email@gmail.com

extensions.conf:

[from-internal]
exten=>6001,1,Dial(SIP/demo1,10)
exten=>6001,n,VoiceMail(6001@from-internal,u)

exten=>6002,1,Dial(SIP/demo2,10)
exten=>6002,n,VoiceMail(6002@from-internal,u)

exten=>6003,1,Dial(SIP/demo3,10)
exten=>6004,n,VoiceMail(6003@from-internal,u)

exten=>6004,1,Dial(SIP/demo4,10)
exten=>6004,n,VoiceMail(6004@from-internal,u)

exten => 3001,1,Answer()
exten => 3001,2,VoiceMailMain(@from-internal)
exten => 3001,n,HangUp()
exten => 3002,1,Answer()
exten => 3002,2,VoiceMailMain(demo2@from-internal)
exten => 3002,n,HangUp()
exten => 3003,1,Answer()
exten => 3003,2,VoiceMailMain(demo3@from-internal)
exten => 3003,n,HangUp()
exten => 3004,1,Answer()
exten => 3004,2,VoiceMailMain(demo4@from-internal)
exten => 3004,n,HangUp()

Also , how can i login in comedian mail ? do i it asks me for mailbox and password , i inut 6001 and 1234 and it always says login incorrect .Should it be *6001 or 6001# or something similar ?

execute a ‘voicemail show users’ on the console, let’s verify that voicemail is reading your configuration.

Hello,

Below you may find the output of the command you have suggested me:

asterisk-vm*CLI> voicemail show users
Context Mbox User Zone NewMsg
other 6001 demo1 Mailbox 0
other 6002 demo2 Mailbox 0
other 6003 demo3 Mailbox 0
other 6004 demo4 Mailbox 0
4 voicemail users configured.

i am aware the context is “other” and not default, but that is due to the fact that i have altered the configuration several times to correct this issue.The sip.conf and extensions.conf file were also updated

The context you are trying to access voicemail for in your extensions.conf is ‘from-internal’ while your voicemail users are under the ‘demo’ context in voicemail.conf

additionally the mailboxes you are specifying in extensions.conf do not exist in voicemail.conf

Have you done a ‘reload app_voicemail.so’ from the console to load the configuration you have above from your voicemail.conf ?

Hello,

From what i understood the context was incorrect , so i changed the configuration ( only for the first 2 users in order to test if it works ) but i am still having trouble accessing the voicemail
I am attaching the modifictions :

extensions.conf:
[friends_internal]
exten=>6001,1,Dial(SIP/demo1,10)
exten=>6001,n,VoiceMail(demo1@friends_internal)

exten=>6002,1,Dial(SIP/demo2,10)
exten=>6002,n,VoiceMail(6002@friends_internal)

exten=>6003,1,Dial(SIP/demo3,10)
exten=>6004,n,VoiceMail(6003@friends-internal,u)

exten=>6004,1,Dial(SIP/demo4,10)
exten=>6004,n,VoiceMail(6004@friends-internal,u)

exten => 3001,1,Answer(500)
exten => 3001,2,VoiceMailMain(@friends_internal)
exten => 3001,n,HangUp()
exten => 3002,1,Answer()
exten => 3002,2,VoiceMailMain(demo2@friends_internal)
exten => 3002,n,HangUp()
exten => 3003,1,Answer()
exten => 3003,2,VoiceMailMain(6003@friends-internal)
exten => 3003,n,HangUp()
exten => 3004,1,Answer()
exten => 3004,2,VoiceMailMain(demo4@friends-internal)
exten => 3004,n,HangUp()

sip.conf:
[general]
transport=udp

friends_internal
type=peer
host=dynamic
context=friends_internal
dtmfmode = rfc2833
disallow=all
allow=alaw
allow=gsm

demo1
secret=parola1
mailbox =demo1@friends_internal
demo2
secret=parola1
mailbox =6002@friends_internal

demo3
secret=parola1
mailbox =6003@other
demo4
secret=parola1
mailbox =demo4@default

voicemail.conf:
[friends_internal]
6001=>1234,demo1 Mailbox,my_email@gmail.com
6002=>1234, demo2 Mailbox,my_email@gmail.com
6003=>1234,demo3 Mailbox,my_email@gmail.com
6004=>1234, demo4 Mailbox,my_email@gmail.com

The configuration does not help without the console output when you test.

If you have changed your dialplan or voicemail configuration I’d recommend doing a reload before your test.

Please set verbose to 3 and make a test call.

Hello johnkiniston,

I reload voicemail,sip and dialplan everytime i make a new modification.
Below you may find an extract of a phone call from demo1 to demo 2

-- Executing [6002@friends_internal:1] Dial("SIP/demo1-00000000", "SIP/demo2,5") in new stack

-- Called SIP/demo2



-- SIP/demo2-00000001 is ringing

-- Nobody picked up in 5000 ms
-- Executing [6002@friends_internal:2] VoiceMail("SIP/demo1-00000000", "6002@friends_internal") in new stack

== Spawn extension (friends_internal, 6002, 2) exited non-zero on ‘SIP/demo1-00000000’