mko, thank you so much for your quick reply. I think I understand, somewhat…
In my extensions.conf I have args for each extensions cell phone declared like this (by the way we have a 3 digit extensions):
CELL224=1234445555 ; EXT: 224 CELL NUMBER
My current [voicemail] config is like this:
[voicemail]
;exten dialed voicemail using *7 from phone
exten => *7,1,NoOp(${CALLERID(num)})
exten => *7,2,Voicemailmain(${CALLERID(num)}@default)
;exten dialed the voicemail directory using *6 from phone
exten => *6,1,Voicemailmain(default)
;go to voicemail for exten
exten => _0XXX,1,Ringing() ; ring extension
exten => _0XXX,2,Wait(4) ; wait four seconds
exten => _0XXX,3,Voicemail(${EXTEN:1}@default,u) ; go to voicemail for extension
Trying to understand what you wrote out, would the following work?
[voicemail]
;exten dialed voicemail using *7 from phone
exten => *7,1,NoOp(${CALLERID(num)})
exten => *7,2,Voicemailmain(${CALLERID(num)}@default)
;exten dialed the voicemail directory using *6 from phone
exten => *6,1,Voicemailmain(default)
;go to voicemail for exten
exten => _0XXX,1,Ringing() ; ring extension
exten => _0XXX,2,Wait(4) ; wait four seconds
exten => _0XXX,3,Voicemail(${EXTEN:1}@default,u) ; go to voicemail for extension
;Caller pressed 1
exten => 1,1,NoOp(${CELL${EXTEN}})
exten => n,Dial(DAHDI/g2/${CELL${EXTEN}},20)
exten => n,Hangup()
;Caller pressed 2
exten => 2,1,Voicemail(${EXTEN}@default,u)
exten => n,Hangup()
I changed the 0 to dial cell to 1 to dial cell and instead of 1 to dial voicemail it is now set to 2. I currently have the option for dialing 0 to go back operator configured in the voicemail.conf. Seems like this wouldn’t work, it seems as if the system already picked up to voicemail.
Would the voicemail greeting play for that extension and then a caller can press 1 to call the extensions cell?
Also what would happen if the caller doesn’t press any key will it default the caller to be able to leave a voicemail?
I would like for each extension that has a phone to a have a greeting like this “Hello you have reached EXT 224. Press 1 to be forwarded to my cell. Press 2 or wait for the beep to leave a message.”
Oh yeah one more question, for exten => _0XXX I used ${EXTEN:1} to strip off the first 0 do I need to do that thru out? Like so:
exten => 1,1,NoOp(${CELL${EXTEN:1}})
Sorry again I am really new to asterisk and I will not be at the office until Saturday this week to test and I am trying to get all my ducks in a row.
Here is a pastebin of my current extensions.conf which might be helpful with some of details left out on purpose such as phone number ect: http://pastebin.com/7jhsf2Uw
I am so lost lol!
Again any help would be greatly appreciated!