Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Ring group and asterisk

Status
Not open for further replies.

julian403

Full Member level 5
Joined
Feb 28, 2014
Messages
254
Helped
1
Reputation
2
Reaction score
1
Trophy points
18
Location
Argentina
Activity points
2,105
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
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top