Bonjour j'utilise asterisk depuis peu j'ai configuré mon fichier pjsip.conf et extensions.conf ainsi que le fichier voicemail.conf
Mon problème actuel est que les appels sortants ne fonctionne pas et les boites vocales non plus.
Quel est le problème dans ma configuration. J'ai besoin d'une solution s'il vous plait
pjsip.conf
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
[transport-tls]
type=transport
protocol=tls
bind=0.0.0.0:5061
cert_file=/etc/asterisk/asterisk.cert
priv_key_file=/etc/asterisk/asterisk.key
method=sslv23
[register]
type=registration
transport=transport-udp
outbound_auth=authentification
server_uri=sip:siptrunk.ovh.net:5060
client_uri=sip:0033XXXXXX@siptrunk.ovh.net
retry_interval=60
forbidden_retry_interval=600
expiration=1800
line=yes
endpoint=register
[authentification]
type=auth
auth_type=userpass
username=0033XXXXXXXXXXXXXX
password=XXXXXXXXXXXXXXXXXXXXX
realm=siptrunk.ovh.net
[register]
type=endpoint
transport=transport-udp
context=from-external
disallow=all
allow=ulaw
language=fr
outbound_auth=register
aors=register
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
ice_support=yes
[register]
type=aor
contact=sip:siptrunk.ovh.net:5060
[register]
type=identity
endpoint=register
match=siptrunk.ovh.net
[XXXXXXXXXXXXXXXXXX]
type=endpoint
transport=transport-tls
context=from-internal
disallow=all
allow=ulaw
language=fr
auth=user01
aors=user01
media_encryption=sdes
rewrite_contact = yes
rtp_symmetric = yes
force_rport = yes
aggregate_mwi=yes
mwi_from_user=user01
device_state_busy_at=1
allow_subscribe=yes
sub_min_expiry=30
[XXXXXXXXXXXXXXXXXX]
type=auth
auth_type=userpass
username=XXXXXXXXXXXXXXXXX
password=XXXXXXXXXXXXXXXXXX
[XXXXXXXXXXXXXXXXXXXXX]
type=aor
max_contacts=2
[user01]
type=endpoint
transport=transport-tls
context=from-internal
disallow=all
allow=ulaw
language=fr
auth=user02
aors=user02
media_encryption=sdes
rewrite_contact = yes
rtp_symmetric = yes
force_rport = yes
aggregate_mwi=yes
mwi_from_user=user02
device_state_busy_at=1
allow_subscribe=yes
sub_min_expiry=30
[XXXXXXXXXXXXXX]
type=auth
auth_type=userpass
username=XXXXXXXXXXXXXXX
password=XXXXXXXXXXXXXXXXX
[XXXXXXXXXXXXXX]
type=aor
max_contacts=2
[XXXXXXXXXXXXXXX]
type=endpoint
transport=transport-tls
context=from-internal
disallow=all
allow=ulaw
language=fr
auth=user03
aors=user03
media_encryption=sdes
rewrite_contact = yes
rtp_symmetric = yes
force_rport = yes
aggregate_mwi=yes
mwi_from_user=user03
device_state_busy_at=1
allow_subscribe=yes
sub_min_expiry=30
[XXXXXXXXXXXXX]
type=auth
auth_type=userpass
username=XXXXXXXXXXXXXXXX
password=XXXXXXXXXXXXXXX
[XXXXXXXXXXXXX]
type=aor
max_contacts=2
[XXXXXXXXXXXX]
type=endpoint
transport=transport-tls
context=from-internal
disallow=all
allow=ulaw
language=fr
auth=user04
aors=user04
media_encryption=sdes
rewrite_contact = yes
rtp_symmetric = yes
force_rport = yes
aggregate_mwi=yes
mwi_from_user=user04
device_state_busy_at=1
allow_subscribe=yes
sub_min_expiry=30
[XXXXXXXXXXXXX]
type=auth
auth_type=userpass
username=XXXXXXXXXXXXX
password=XXXXXXXXXXXX
[XXXXXXXXXX]
type=aor
max_contacts=2
extensions.conf
[from-internal]
include =>from-external
;exten=>1001,1,Dial(PJSIP/user01,10)
exten=>1001,2,VoiceMail(1001@boite-vocale)
exten=>1001,3,hangup
;exten=>1002,1,Dial(PJSIP/user02,10)
exten=>1002,2,VoiceMail(1002@boite-vocale)
exten=>1002,3,hangup
;exten=>1003,1,Dial(PJSIP/user03,10)
exten=>1003,2,VoiceMail(1003@boite-vocale)
exten=>1003,3,hangup
exten=>1004,1,Dial(PJSIP/user04,10)
exten=>1004,2,VoiceMail(1004@boite-vocale)
exten=>1004,3,hangup
exten=>1005,1 answer
same => n,Set(CHANNEL(tonezone)=fr)
same => n,Set(CHANNEL(language)=fr)
same=>1005,1,VoiceMailMain(@boite-vocale)
exten 1000,1,Confbridge(conference-video)
exten => 10,1,Goto(agent-login,s,1)
exten => 20,1,Goto(agent-logout,s,1)
[agent-login]
exten => s,1,Answer()
exten => s,n,AddQueueMember(support)
exten => s,n,Playback(agent-loginok)
exten => s,n,Hangup()
[agent-logout]
exten => s,1,Answer()
exten => s,n,RemoveQueueMember(support)
exten => s,n,Playback(agent-loggedoff)
exten => s,n,Hangup()
[from-external]
exten => s,1,Ringing(1)
exten => s,2,Answer
exten => s,3,Playback(demo-congrats)
exten => s,4,GotoIfTime(17:30-9:00 12:30-13:30|mon-fri|*|*?goodbye)
exten => s,5,GotoIfTime(sat-sun|*|*?goodbye)
exten => s,4,Goto(hotline,s,1)
exten => s,n(goodbye),playBack(demo-thanks)
exten => s,7,Hangup
[hotline]
exten => s,1,Answer()
same => n,MixMonitor(/var/spool/asterisk/monitor/${UNIQUEID}.wav,b)
same => n,Set(CDR(recordingpath)=/var/spool/asterisk/monitor/${UNIQUEID}.wav)
exten => s,n,Queue(support,tTwW)
exten => s,n,Hangup
voicemail.conf
[boite-vocale]
; Numéro de messagerie => mot de passe d’accès à la messagerie, nom d'utilisateur
1001 => 1234, user01
1002 => 1234, user02
1003 => 1234, user03
1004 => 1234, user04