Bonjour à tous,
Je reviens vers vous car j'ai un problème similaire au votre. Je me suis installé chez moi un PBX Asterisk 1.4.21.2 sur une DEBIAN.
je possède 2 PC sur lesquels sont installés 2 softphone X-Lite et 1 serveur sur lequel est installé Asterisk.
J'arrive à joindre les 2 softphones dans les 2 sens.
Problème :
1/ je n'arrive pas à obtenir un son quelconque quand je bascule volontairement sur messagerie en interne.
2/ je n'arrive pas à obtenir un son quand j'interroge la messagerie.
3/ je n'arrive pas à recevoir les messages vocaux dans les boites mails.(je pense que c lié au 2 premiers points). Pour info j'utilise postfix
sip.conf
[general]
srvlookup=yes
port=5060
dtfmode=rfc2833
notifyringing = yes
disallow=all
allow=gsm
allow=alaw
allow=ulaw
type=friend
qualify=yes
nat=yes
host=dynamic
canreinvite=no
context=moncontexte
[222]
type=friend
username=222
secret=222
host=dynamic
mailbox=222@voicemail
[400]
type=friend
username=400
secret=400
host=dynamic
mailbox=400@voicemail
extensions.conf
[general]
[globals]
standard=SIP/400
mamas=SIP/222
[appels_entrants]
exten => s, 1, Dial(${standard})
[voicemail]
exten => 777, 1, Answer
exten => 777, 2, VoiceMailMain(400@voicemail)
exten => 777, 3, Hangup
exten => 888, 1, Answer
exten => 888, 2, VoiceMailMain(222@voicemail)
exten => 888, 3, Hangup
[moncontexte]
include =>appels_sortants
include =>voicemail
exten => 400, 1, Dial(${standard},10)
exten => 400, 2, Voicemail(400@voicemail)
exten => 400, 3, Hangup
exten => 222, 1, Dial(${mamas},10)
exten => 222, 2, Voicemail(222@voicemail)
exten => 222, 3, Hangup
voicemail.conf
[general]
format=wav49|gsm|wav
servermail=MessageVocal@societe.com
fromstring=messagerie asterisk
pagerfromstring= Asterisk robot
emailsubject=asterisk: ${VM_MSGNUM} messages dans votre boite vocale ${VM_MAILBOX}
emailbody=Cher ${VM_NAME}:\n\n\tvous avez un message de ${VM_DUR} de long (number ${VM_MSGNUM})\ndans votre boite vocale ${VM_MAILBOX} de ${VM_CALLERID}, le ${VM_DATE}, ainsi vous pouvez\nallez consulter votre boite quand vous le souhaitez. Merci!\n\n\t\t\t\t--Boite vocale asterisk
maxmessage=100
minmessage=1
maxsilence=5
sendvoicemail=yes
tz=european ; Timezone from zonemessages below. Irrelevant if envelope=no.
attach=yes ; Attach the voicemail to the notification email *NOT* the pager email
saycid=yes ; Say the caller id information before the message. If not described,
review=yes ; Allow sender to review/rerecord their message before saving it [OFF by default
operator=no ; Allow sender to hit 0 before/after/during leaving a voicemail to
envelope=yes ; Turn on/off envelope playback before message playback. [ON by default]
delete=no ; After notification, the voicemail is deleted from the server. [per-mailbox only]
[zonemessages]
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
[voicemail]
400 => 400,standard,client1@societe.com
222 => 222,mamas,client1@societe.com
main.cf(fichier de conf de postfix)
smtpd_banner = $myhostname ESMTP $mail_name
myhostname = autocom.societe.com
myorigin = $myhostname
mydomain = societe.com
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.1
transport_maps = hash:/etc/postfix/transport
home_mailbox = Maildir/
mail_spool_directory = /var/spool/mail/
mail_name = courriel
inet_interfaces = all
Voilà tout
Please sortez moi de cette galère :-)
@+