bonjour,

je vous presente mon problème:

je dispose de deux serveur debian lenny où deux serveur asterisk 1.6.2.13, même configuration materiel pour les deux.

configuration des fichiers sur le premier serveur:
<<<<<<>>>>>>>>
-sip.conf

[general]
context=local
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
language=fr


[100]
secret=azerty
callerid="Damien" <100>
context=local
mailbox=123
type=friend
host=dynamic
nat=yes
canreinvite=yes

[101]
secret=azerty
callerid="David" <101>
context=local
mailbox=123
type=friend
host=dynamic
nat=yes
canreinvite=yes

-extensions.conf

[local]
exten => 100, 1, Dial(SIP/100, 10)
exten => 100, 2, VoiceMail(100)
exten => 1000,1,VoiceMailMain(100)

exten => 101, 1, Dial(SIP/101, 10)
exten => 101, 2, VoiceMail(101)
exten => 1001,1,VoiceMailMain(101)

exten => 888,1,VoiceMailMain()

;Gestion du trunk IAX vers Orleans
exten => _2XX, 1, Dial(IAX2/orleans:azerty@10.10.227.7/${EXTEN})


-IAX.conf:

[general]
language = fr
qualify = yes
disallow = all
allow = ulaw; gsm; ilbc
bindport = 4569
bindaddr = 0.0.0.0
trunk = yes
context = local

[orleans]
username = orleans
type = friend
secret = azerty
context = 10.10.227.7
host = 10.10.227.7


configuration des fichiers sur le deuxieme serveur:

-extensions.conf
[local]

exten => 200, 1,Dial(SIP/200,10)
exten => 200, 2,VoiceMail(200)

exten => 201, 1,Dial(SIP/201,10)
exten => 201, 2,VoiceMail(201)

exten => 9998, 1,VoiceMailMain(200)
exten => 9999, 1,VoiceMailMain(201)

exten => _1XX, 1, Dial(IAX2/paris:azerty@10.10.227.6/${EXTEN})


-sip.conf

[general]
context=local
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
language=fr

[200]
secret=azerty
callerid="Damien" <200>
context=local
mailbox=200
type=friend
host=dynamic
nat=yes
canreinvite=yes


[201]
secret=azerty
callerid="Hind" <201>
context=local
mailbox=201
type=friend
host=dynamic
nat=yes
canreinvite=yes


-Iax.conf

[general]
qualify = yes
disallow = all
allow = all; gsm; ilbc
port = 4569
trunk = yes
context = local


[paris]
username = paris
type = friend
secret = azerty
host = 10.10.227.6
<<<<>>>>>>>>>>

Donc mon problème c'est l'interconnection des deux serveurs asterisk. Lorsque j'effectue un appel vers le deuxième serveur j'ai ce message :

== Using SIP RTP CoS mark 5
-- Executing [200@local:1] Dial("SIP/100-00000003", "IAX2/orleans:azerty@10.10.227.7/200") in new stack
-- Called orleans:azerty@10.10.227.7/200
[Dec 6 16:20:55] WARNING[4256]: chan_iax2.c:10287 socket_process: Call rejected by 10.10.227.7: No authority found
-- Hungup 'IAX2/orleans-2435'
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'SIP/100-00000003' status is 'CHANUNAVAIL'


alors que sur le deuxième serveur j'ai ce message :
NOTICE[8861]: chan_iax2.c:8055 socket_process: Host 10.10.227.6 failed to authenticate as orleans

j'espère avoir été assez clair...

merci de vos reponse

damien