Bug in IAX2?

Hello!

I’m running an Asterisk with an Cisco 5300 as POTS gateway. It works well.

Now I’m installing “sub” Asterisk servers at several other locations. They’re dialing out via the central Asterisk connected to the 5300. They’re communicating with IAX2. At the beginning, that worked well, too.

After adding a couple of “sub” Asterisk servers, the central Asterisk obviously confuses the accounts. One is connecting as “franfinance” (I proved it several times), but the central asterisk complains about

Feb 28 00:35:29 NOTICE[24595]: chan_iax2.c:7187 socket_read: Host 81.223.9.58 failed to authenticate as fleischmann

But it does not try to authenticate as “fleischmann” - it tries to authenticate as “franfinance”!

After removing two accounts from iax.conf, it started to work again. Re-adding those accounts confused the Asterisk again. After shuffling around the accounts in iax.conf I recognized, that Asterisk always talks about the last account in iax.conf that the client tries to gerister as.

What could be wrong in my iax.conf?

[code][general]
delayreject=yes
allow=all
disallow=lpc10
jitterbuffer=no
forcejitterbuffer=no
tos=lowdelay
autokill=yes

[mdo]
type=friend
host=dynamic
auth=md5
user=mdo
secret=<<>>
qualify=yes
context=default
accountcode=88500

[itonia]
type=friend
host=dynamic
auth=md5
user=itonia
secret=<<>>
qualify=yes
context=default
accountcode=8877

[franfinance]
type=friend
host=dynamic
auth=md5
user=franfinance
secret=<<>>
qualify=yes
context=default
accountcode=8894

[franfinanceb]
type=friend
host=dynamic
auth=md5
user=franfinanceb
secret=<<>>
qualify=yes
context=default
accountcode=8894

[fleischmann]
type=friend
host=dynamic
auth=md5
user=fleischmann
secret=<<>>
qualify=yes
context=default
accountocde=8850[/code]

Any help or hint welcome! :smiley:

regards,
Thomas

Oh yes, I forgot:

I use Asterisk 1.2.4 and tried two downgrades with both 1.2.3 and 1.2.2 - no change! Same confusion with the accounts. :frowning:

Thomas