Ring group and voicemail

I’ve configured the next in an asterisk PBX. The softphones rings for 30 second and then I get in the voicemail box where you leave the messages and then the PBX send that .wav file to the email. That works perfectly but the problem is that it work when 100 call 101 or 101 call 100. If 100 call 102 then it must call 101 and if 101 don’t get the call it must get in a voicemail and send a message to 101 and 102 and send that message to both email. What I’m doing wrong?

The next is the extensions.conf

[general] 
static=yes 
writeprotect=no 
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[globals] 

[users] 

exten => 100,1,Dial(SIP/julian,30)
exten => 100,2,VoiceMail(100@default)

exten => 101,1,Dial(SIP/usuario1,30)
exten => 101,2,VoiceMail(101@default)

exten => 102,1,Dial(SIP/usuario2,30)
exten => 102,2,Dial(SIP/usuario1,30)
exten => 102,3,Dial(102@default) 


exten => 2222,1,Answer() ; 2222 is the number which you must call to get in the voice mail

exten => 2222,n,VoiceMailMain(@default)

the next is voicemail.conf

[general]
format = wav 
attach = yes 
maxmsg = 1000 
envelope = yes 
maxsilence = 10 
silencethreshold = 128 
maxlogins = 3 
mailcmd=/usr/sbin/ssmtp -t 
fromstring=Buzon de Voz - PBX 

[default] 
100 => 123456, Julian Oviedo,email1 ;I don't write the true email for obius reason
101 => 123456, usuario1,email2
102 => 123456, usuario2,email3

and sip.conf

[general] 
context=default 
bindport=5060 
bindaddr=0.0.0.0 
srvlookup=yes 
disallow=all 
allow=ulaw 
allow=alaw
allow=gsm
allow=h263 
allow=h263p
allow=h264
language=en
videosupport=yes

[julian] 
type=friend 
host=dynamic 
secret=123456 
context=users
qualify=yes
nat=force_rport
dtmfmode=rfc2833
voicemail=100@default 

[usuario1]
type=friend
host=dynamic 
secret=123456 
context=users
qualify=yes
nat=force_rport
dtmfmode=rfc2833
voicemail=101@default

[usuario2]
type=friend
host=dynamic 
secret=123456 
context=users
qualify=yes
nat=force_rport
dtmfmode=rfc2833
voicemail=102@default

thanks and best regards.

I’m having a hard time understanding what it is you wish to do.

I believe you are asking how to send voicemails to multiple people.

The Voicemail application can accept multiple boxes as an argument.

Calling it as:

Voicemail(101@default&102@default)

Would leave a voicemail in both boxes at the same time.

1 Like

thaks for the reply.

But what I want to do is someone call 101 and if it don’t answer it get in the 101 voicemail.

Someone call 102 anf if it don’t answer then the ring goes to 101 and if it don’t answer then it get in the 101 voicemail.

exten => 101,1,Dial(SIP/usuario1,30)
 same => n,VoiceMail(101@default)
 same => n,Hangup()

exten => 102,1,Dial(SIP/usuario2,30)
 same => n,Goto(101,1)
2 Likes