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