[Asterisk-Users] Creating new voicemail accounts
WipeOut
wipe_out at onetel.com
Sat Oct 18 14:57:17 MST 2003
Brian Capouch wrote:
> I have googled this one to death, and can't find anything.
>
> I added a number of new users to my asterisk (current CVS) system. I
> am using the "Voicemail2" family.
>
> I added entries in extensions.conf and voicemail.conf for my new
> users, and I have tested leaving and retrieving new voicemails for
> them. All of this works fine.
>
> But if one of the new users tries to "Administer personal greetings"
> (or whatever exactly the menu choice is called) once they get to the
> point of recording, asterisk bombs them off the call without writing
> anything.
>
> Here's the CLI interaction:
>
> -- Playing 'vm-messages'
> -- Playing 'vm-opts'
> -- Playing 'vm-options'
> -- Playing 'vm-rec-unv'
> -- Playing 'beep'
> -- x=0, open writing: voicemail/default/5120/unavail format: gsm,
> (nil)
> == Spawn extension (home, 8, 1) exited non-zero on
> 'IAX2[bc at 206.230.187.8:4569]/2'
>
> Actual voicemail messages seem to be being saved in all the various
> (gsm, wav) formats, so the recording subsystem must have all its
> components.
>
> I'm sure I must be overlooking something obvious. Can anyone provide
> a pointer?
>
> Thx.
>
> B.
>
If you are using VM2 and using something other than the [default]
context then you will not create the correct directory structures when
you run the addmailbox script to create the mailboxes..
I have attached a copy of my addmailbox2 script which takes into account
the context when creating the voice mailbox directory structure..
Hope it helps you promlem..
Later..
-------------- next part --------------
#!/bin/sh
VMHOME=/var/spool/asterisk/voicemail
SNDHOME=/var/lib/asterisk/sounds
echo -n "Enter Voicemail Context: "
read context
echo -n "Enter Mailbox Number: "
read mailbox
if [ ! -e "${VMHOME}/${context}" ]
then
mkdir -p ${VMHOME}/${context}
fi
mkdir -p ${VMHOME}/${context}/${mailbox}
mkdir -p ${VMHOME}/${context}/${mailbox}/INBOX
cat ${SNDHOME}/vm-theperson.gsm > ${VMHOME}/${context}/${mailbox}/unavail.gsm
cat ${SNDHOME}/vm-theperson.gsm > ${VMHOME}/${context}/${mailbox}/busy.gsm
cat ${SNDHOME}/vm-extension.gsm > ${VMHOME}/${context}/${mailbox}/greet.gsm
nums=`echo $mailbox | sed 's/./ \0/g'`
for x in $nums; do
cat ${SNDHOME}/digits/${x}.gsm >> ${VMHOME}/${context}/${mailbox}/unavail.gsm
cat ${SNDHOME}/digits/${x}.gsm >> ${VMHOME}/${context}/${mailbox}/busy.gsm
cat ${SNDHOME}/digits/${x}.gsm >> ${VMHOME}/${context}/${mailbox}/greet.gsm
done
cat ${SNDHOME}/vm-isunavail.gsm >> ${VMHOME}/${context}/${mailbox}/unavail.gsm
cat ${SNDHOME}/vm-isonphone.gsm >> ${VMHOME}/${context}/${mailbox}/busy.gsm
More information about the asterisk-users
mailing list