I have two PBX boxes PBX-A and PBX-B
PBX-A configuration as follows:
dundi.conf:
department=My Department
organization=My Company, Inc.
locality=MY City
stateprov=ST
country=US
email=my@email.com
phone=+12565551212
bindaddr=0.0.0.0
port=4520
entityid=00:B0:D0:CC:5C:E7
cachetime=5
ttl=2
autokill=yes
[mappings]
priv => dundiextens,0,SIP,priv:${SECRET}@192.168.1.108/${NUMBER},nopartial
[00:B0:D0:CC:5C:E8] ;PBX-B 192.168.1.106
model = symmetric
host = 192.168.1.106
inkey = dundi
outkey = dundi
include = priv
permit = priv
qualify = yes
order = primary
SIP.conf
[priv] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; dundi user
type=friend
dbsecret=dundi/secret
context=incomingdundi
[10001] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Softphone user
type=friend
extensions.conf:
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[lookupdundi]
switch => DUNDi/priv
[dundiextens]
exten => 10001,1,NoOp
exten => 10002,1,NoOp
exten => 10003,1,NoOp
[incomingdundi]
exten => 10001,1,Goto(internal,10001,1)
exten => 10002,1,Goto(internal,10002,1)
exten => 10003,1,Goto(internal,10003,1)
exten => _2XXXX,1,Goto(lookupdundi,${EXTEN},1)
[internal]
exten => 10001,1,Dial(SIP/10001,30,tr)
exten => 10001,n,Hangup
exten => 10002,1,Dial(SIP/10002,30,tr)
exten => 10002,n,Hangup
exten => 10003,1,Dial(SIP/10003,30,tr)
exten => 10003,n,Hangup
exten => _2XXXX,1,Goto(lookupdundi,${EXTEN},1)
PBX-A configuration as follows:
dundi.conf:
department=My Department
organization=My Company, Inc.
locality=My City
stateprov=ST
country=US
email=My@email.com
phone=+12565551212
bindaddr=0.0.0.0
port=4520
entityid=00:B0:D0:CC:5C:E8
cachetime=5
ttl=2
autokill=yes
[mappings]
priv => dundiextens,0,SIP,priv:${SECRET}@192.168.1.106/${NUMBER},nopartial
[00:B0:D0:CC:5C:E7] ;PBX -1 192.168.1.108
model = symmetric
host = 192.168.1.108
inkey = dundi
outkey = dundi
include = priv
permit = priv
qualify = yes
order = primary
sip.conf:
[priv] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Dundi User
type=friend
dbsecret=dundi/secret
context=incomingdundi
[20001] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Softphone user
type=friend
extensions.conf:
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[lookupdundi]
switch => DUNDi/priv
[dundiextens]
exten => 20001,1,NoOp
exten => 20002,1,NoOp
exten => 20003,1,NoOp
[incomingdundi]
include => lookupdundi
exten => 20001,1,Goto(internal,20001,1)
exten => 20002,1,Goto(internal,20002,1)
exten => 20003,1,Goto(internal,20003,1)
[internal]
include => lookupdundi
exten => 20001,1,Dial(SIP/20001,30,tr)
exten => 20001,n,Hangup
exten => 20002,1,Dial(SIP/20002,30,tr)
exten => 20002,n,Hangup
exten => 20003,1,Dial(SIP/20003,30,tr)
exten => 20003,n,Hangup
10001 is registerd in PBX-A and 20001 is registerd in PBX-B.
And I havae dundi.pub and dundi.key files under /var/lib/asterisk/keys in both PBXs
When i make call
(i)From 10001 to 20001:
-
Executing [20001@incomingdundi:1] Goto(“SIP/10001-097406f8”, “lookupdundi|20001|1”) in new stack
– Goto (lookupdundi,20001,1)
[Oct 9 19:15:33] WARNING[31196]: chan_sip.c:2925 create_addr: No such host: 192.168.1.106/20001
Really destroying SIP dialog ‘6fcf169d51bd114b000c49a315170a96@192.168.1.108’ Method: INVITE
[Oct 9 19:15:33] WARNING[31196]: app_dial.c:1183 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)
== Everyone is busy/congested at this time (1:0/0/1)
== Auto fallthrough, channel ‘SIP/10001-097406f8’ status is 'CHANUNAVAIL’
Really destroying SIP dialog ‘OWJlNjgyMTliNWIyZGU3YTQ0ODYwNjM5YTg5ZmZlM2I.’ Method: INVITE
(ii)From 20002 to 10001:
Using SIP RTP CoS mark 5
== Using SIP RTP CoS mark 5
[Oct 9 17:15:37] WARNING[31819]: chan_sip.c:4089 create_addr: No such host: 192.168.1.108/10001
[Oct 9 17:15:37] WARNING[31819]: app_dial.c:1444 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)
== Everyone is busy/congested at this time (1:0/0/1)
– Auto fallthrough, channel ‘SIP/20001-08d6a328’ status is ‘CHANUNAVAIL’
I unable to make calll … What I am missing? Pls help me???