DUNDI with multi ethernet cards

kloklo
Joined: Tue 19 of Jan, 2010

DUNDI with multi ethernet cards

Posted:Tue 19 of Jan, 2010 (09:44 UTC)
Hello

I explain you my problem. Ihave a topology as

http://nsa10.casimages.com/img/2010/01/15/100115033742995265.jpg

I put asterisk and dundi on each PC (each PC had only one ethernet cards).No probleme here with Communication with dundi (and IAX2)

Next, i try to change a little my topology and try this topology :

http://nsa11.casimages.com/img/2010/01/15/100115034201877407.jpg

Here, each PC is as a router (with OSPF,...). In each 'router', i put asterisk and DUNDI. Each PC use 3-4 ethernets ports. Ansd now DUNDI don't work. When i pass a call with only one asterisk, no probleme all works but when i pass a call with two asterisk and dundi between asterisk, i have a problem.

I take this scenario :
n°10000 -SIP-> asterisk1 BUG!!
In my extension.conf, i do a dundi request whose don't given answer but it's must be a answer normaly.I don't understand why.

In the other platform, all works good with the same scripts, the same extensions.conf, dundi.conf et iax.conf.

n°10000 --SIP--> asterisk 1--DUNDI with IAX--> asterisk2 --DUNDI with IAX--> asterisk3 --SIP-->n°10001


my config(s file:
asterisk.conf

[directories](!) ; remove the (!) to enable this
astetcdir => /etc/asterisk
astmoddir => /usr/lib/asterisk/modules
astvarlibdir => /var/lib/asterisk
astdbdir => /var/lib/asterisk
astkeydir => /var/lib/asterisk
astdatadir => /var/lib/asterisk
astagidir => /var/lib/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /var/run
astlogdir => /var/log/asterisk

[options]
verbose = 9999
debug = 99999
systemname => 192.10.10.1 ; <---- IP d'une carte réseaux sur un des astérisk (chaque que sur chaque routeur le 1er a une adresse :192.10.10.1 lui du milieu 192.10.20.1 et le dernier 192.10.0.1

[compat]
pbx_realtime=1.6
res_agi=1.6
app_set=1.6




dundi.conf




[general]

bindaddr = 0.0.0.0
port = 4520
tos = ef

entityid = 00:22:19:19:9A:FF  ;<-- adresse MAC autant pour les deux extremes je sais laquel mettre mais pour le PC du milieu aucune idée???

cachetime = 60
ttl = 5
autokill = yes
;secretpath=dundi
storehistory = yes

[mappings]
localphones => dundi-pub,0,IAX2,trunk:${SECRET}@10.10.10.21/${NUMBER},nopartial


[00:1B:21:3A:9E:C8]
model => symmetric
host => 10.10.10.20
inkey => KEY
outkey => KEY
include => localphones
permit => localphones
qualify => yes



iax.conf




[general]
;allow=all
disallow=all
allow=g729
qualify=yes
transfer=no

[trunk]
type=friend
dbsecret=dundi/secret
context=trunk



sip.conf


[general]
context=users
bindport=5060
bindaddr=0.0.0.0
disallow=all
;allow=g726
allow=ulaw
allow=alaw
allow=gsm
language=fr
qualify=yes
; RTP OPTIONS
canreinvite=yes
directrtpsetup=yes
; REALTIME OPTIONS
rtcachefriends=yes
displaysystemname=yes
rtsavesysname=yes
rtautoclear=yes 
rtupdate=yes
ignoreregexpire=yes
; Regcontext pour DUNDI
regcontext=localphones



Help me please !!! ^^