Citation Envoyé par ffossard Voir le message
C'est certainement parce que cette ligne est dans le contexte [BLF]:
Code:
exten => 1004,1,Konference(MyVisio,x,max_users=3)
Dans le sip.conf, les téléphones ont autre chose que "context=BLF" je suppose ?

Regardez ce que vous dit la CLI d'Asterisk quand vous tentez un appel vers 1004
Bonjour,

j'ai regardé ce que me donne la CLI d'Asterisk quand je lance un appel vers 1004. Malheuresement je ne trouve pas la solution.Voici ce que me donne la CLI lors de la tentative de connexion.
Code:
[Jan 27 15:00:16] WARNING[3249]: acl.c:698 ast_ouraddrfor: Cannot connect
[Jan 27 15:00:16] WARNING[3249]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0xcfc6230 (len 925) to 0.0.3.236:5060 returned -1: Invalid argument
[Jan 27 15:00:16] WARNING[2919]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0xcfc6230 (len 925) to 0.0.3.236:5060 returned -1: Invalid argument
[Jan 27 15:00:17] WARNING[2919]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0xcfc6230 (len 925) to 0.0.3.236:5060 returned -1: Invalid argument
[Jan 27 15:00:19] WARNING[2919]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0xcfc6230 (len 925) to 0.0.3.236:5060 returned -1: Invalid argument
[Jan 27 15:00:23] WARNING[2919]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0xcfc6230 (len 925) to 0.0.3.236:5060 returned -1: Invalid argument
[Jan 27 15:00:31] WARNING[2919]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0xcfc6230 (len 925) to 0.0.3.236:5060 returned -1: Invalid argument
[Jan 27 15:00:40] WARNING[3250]: acl.c:698 ast_ouraddrfor: Cannot connect
[Jan 27 15:00:40] WARNING[3250]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0xd031b18 (len 981) to 0.0.3.236:5060 returned -1: Invalid argument
[Jan 27 15:00:40] WARNING[2919]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0xd031b18 (len 981) to 0.0.3.236:5060 returned -1: Invalid argument
[Jan 27 15:00:41] WARNING[2919]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0xd031b18 (len 981) to 0.0.3.236:5060 returned -1: Invalid argument
[Jan 27 15:00:43] WARNING[2919]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0xd031b18 (len 981) to 0.0.3.236:5060 returned -1: Invalid argument
[Jan 27 15:00:47] WARNING[2919]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0xcfc6230 (len 925) to 0.0.3.236:5060 returned -1: Invalid argument
[Jan 27 15:00:47] WARNING[2919]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0xd031b18 (len 981) to 0.0.3.236:5060 returned -1: Invalid argument
[Jan 27 15:00:48] WARNING[2919]: chan_sip.c:3386 retrans_pkt: Retransmission timeout reached on transmission 3bde63f4173a78af2966d51a65d3a51b@193.52.236.218:5060 for seqno 102 (Critical Request) -- See doc/sip-retransmit.txt.
Packet timed out after 32001ms with no response
[Jan 27 15:00:48] WARNING[2919]: chan_sip.c:3415 retrans_pkt: Hanging up call 3bde63f4173a78af2966d51a65d3a51b@193.52.236.218:5060 - no reply to our critical packet (see doc/sip-retransmit.txt).
[Jan 27 15:00:55] WARNING[2919]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0xd031b18 (len 981) to 0.0.3.236:5060 returned -1: Invalid argument
[Jan 27 15:01:11] WARNING[2919]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0xd031b18 (len 981) to 0.0.3.236:5060 returned -1: Invalid argument
[Jan 27 15:01:12] WARNING[2919]: chan_sip.c:3386 retrans_pkt: Retransmission timeout reached on transmission 3e1101a96180ee296f6a3ea93fb96f5b@193.52.236.218:5060 for seqno 102 (Critical Request) -- See doc/sip-retransmit.txt.
Packet timed out after 32003ms with no response

Pourtant j'ai bien configuré les fichier de configuration d'Asterisk. Pour le sip.conf je l'ai configuré comme ceux-ci:

Code PHP:
;************ FICHIER SIP.CONF *************


;*** 
PARAMETRES GENERAUX DE CONFIGURATION ***


[
general]
t38pt_udptl yes
language
=fr
call
-limit=50
srvlookup
=yes
disallow
=all
allow
=ulaw
allow
=alaw
allow
=gsm
allow
=h261
allow
=h263
allow
=h264
allow
=mpeg4
context
=Interne
dtmfmode
=rfc2833
qualify
=yes
directmedia
=no
notifyringing
=yes
notifyhold
=yes
subscribecontext
=BLF
videosupport
=yes

;************ PARAMETRES DES COMPTES SIP *************



[
1001]
callerid=SoftPhone <1001>
type=friend
context
=Interne
host
=dynamic
secret
=1234
dtmfmode
=rfc2833
qualify
=yes
disallow
=all
allow
=gsm
allow
=ulaw
allow
=alaw
allow
=h261
allow
=h263
allow
=h264
allow
=mpeg4
nat
=no
subscribecontext
=BLF


[1002]
callerid=HardPhone <1002>
type=friend
context
=Interne
host
=dynamic
secret
=1234
dtmfmode
=rfc2833
qualify
=yes
disallow
=all
allow
=gsm
allow
=ulaw
allow
=alaw
allow
=h261
allow
=h263
allow
=h264
allow
=mpeg4
nat
=no
subscribecontext
=BLF

[1003]
callerid=HardPhoneA <1003>
type=friend
context
=Interne
host
=dynamic
secret
=1234
dtmfmode
=rfc2833
qualify
=yes
disallow
=all
allow
=gsm
allow
=ulaw
allow
=alaw
allow
=h261
allow
=h263
allow
=h264
allow
=mpeg4
nat
=no
subscribecontext
=BLF 
Si ça peut aider aussi voici le fichier extensions.conf
Code PHP:
[general]

[
globals]

[
BLF]
;
Contexte gérant les leds sur les téléphones

exten 
=> 1001,hint,SIP/1001
exten 
=> 1002,hint,SIP/1002
exten 
=> 1003,hint,SIP/1003
exten 
=> 1004,n,Konference(MyVisio,x,max_users=3)

[
Interne]
;
Contexte Contenant les téléphone Internes
include => AppelSortant
include => BLF
include => test

exten 
_XXXX,1,Dial(SIP/${EXTEN},50)
exten _XXXX,n,Hangup()

[
AppelEntrant]
;
Contexte pour les appels entrants

[AppelSortant]
;
Contexte pour les appels sortants


[test]
;
Contexte Fourre-tout pour les tests....... A purger de temps en temps ;)
exten => **33,1,Answer()
exten => **33,n,Wait(1)
exten => **33,n,Echo()
exten => **33,n,Hangup()


exten => **34,1,Answer()
exten => **34,n,Wait(1)
exten => **34,n,Playback(hello-world)
exten => **34,n,Hangup() 
Donc comme vous pouvez le voir l'erreur n'est pas évidente à trouver. Pour configurer les fichier j'ai repris le tutoriel de ce forum.

J'espère que vous pourriez m'aider! En tout cas merci.