[Dundi] Trouble obtaining call URL using DUNDILOOKUP
Shekhar Sherikar
shekhar at enterux.com
Fri Sep 15 05:15:47 MST 2006
This is the content of my Asterisk configuration files.
I'm trying to obtain a dundi lookup and print it to Asterisk CLI using
Verbose().
The trouble is that I can't get any number (although I've advertised).
DUNDILOOKUP() function seems to return a blank string.
1.
*****************************
2.
PEER 63
3.
*****************************
4.
----------------
5.
dundi.conf
6.
----------------
7.
[general]
8.
department=VoIP
9.
organization=enterux63
10.
locality=Mumbai
11.
stateprov=MH
12.
country=IN
13.
email=foo at enterux.com
14.
phone=+91020202020
15.
16.
;Specify bind address and port number. Default is 4520
17.
bindaddr=0.0.0.0
18.
port=4520
19.
entityid=00:08:A1:70:58:E1
20.
cachetime=3600
21.
ttl=32
22.
autokill=yes
23.
secretpath=dundi
24.
storehistory=yes
25.
26.
[mappings]
27.
mapping1 =>
dundi_adv,0,IAX2,dundi:${SECRET}@90.0.0.63/${NUMBER},nounsolicited,nocomunsolicit,nopartial
28.
29.
; **** PEER DEFINITIONS START ****
30.
[00:16:76:49:76:BE]
31.
model = symmetric
32.
host = enterux61
33.
inkey = enterux61
34.
outkey = enterux63
35.
include = mapping1
36.
permit = mapping1
37.
qualify = yes
38.
dynamic=yes
39.
40.
----------------
41.
extensions.conf
42.
----------------
43.
[globals]
44.
45.
[dundi_adv]
46.
exten => 6300,1,NoOp
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+noop>()
47.
48.
[internal]
49.
exten => 631,1,Dial
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+dial>(SIP/631)
50.
51.
exten => 6300,1,Answer
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+answer>()
52.
exten => 6300,n,Dial
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+dial>(SIP/631)
53.
54.
exten => _69XX,1,Answer
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+answer>()
55.
exten => _69XX,n,Verbose
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+verbose>(${EXTEN})
56.
exten => _69XX,n,Set(foo=${DUNDILOOKUP
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+dundilookup>(${EXTEN}),mapping1,b})
57.
exten => _69XX,n,Verbose
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+verbose>(${foo})
58.
exten => _69XX,n,Hangup
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+hangup>()
59.
60.
----------------
61.
iax.conf
62.
----------------
63.
[general]
64.
65.
bandwidth=low
66.
tos=lowdelay
67.
allow=ulaw
68.
jitterbuffer=no
69.
forcejitterbuffer=no
70.
tos=lowdelay
71.
autokill=yes
72.
73.
; Dundi user
74.
[dundi]
75.
type=user
76.
dbsecret=dundi/secret
77.
context=internal
78.
disallow=all
79.
allow=ulaw
80.
allow=gsm
81.
82.
*****************************
83.
PEER 61
84.
*****************************
85.
----------------
86.
dundi.conf
87.
----------------
88.
[general]
89.
department=VoIP
90.
organization=enterux61
91.
locality=Mumbai
92.
stateprov=MH
93.
country=IN
94.
email=bar at enterux.com
95.
phone=+9130303030
96.
97.
;Specify bind address and port number. Default is 4520
98.
bindaddr=0.0.0.0
99.
port=4520
100.
entityid=00:16:76:49:76:BE
101.
cachetime=3600
102.
ttl=32
103.
autokill=yes
104.
secretpath=dundi
105.
storehistory=yes
106.
107.
[mappings]
108.
mapping1 =>
dundi_adv,0,IAX2,dundi:${SECRET}@90.0.0.61/${NUMBER},nounsolicited,nocomunsolicit,nopartial
109.
110.
; **** PEER DEFINITIONS START ****
111.
[00:08:A1:70:58:E1]
112.
model = symmetric
113.
host = enterux63
114.
inkey = enterux63
115.
outkey = enterux61
116.
include = mapping1
117.
permit = mapping1
118.
qualify = yes
119.
dynamic=yes
120.
121.
----------------
122.
extensions.conf
123.
----------------
124.
[globals]
125.
126.
[dundi_adv]
127.
exten => 6100,1,NoOp
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+noop>()
128.
129.
[internal]
130.
exten => 611,1,Dial
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+dial>(SIP/611)
131.
132.
exten => 6100,1,Answer
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+answer>()
133.
exten => 6100,n,Dial
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+dial>(SIP/611)
134.
135.
exten => _63XX,1,Answer
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+answer>()
136.
exten => _63XX,n,Verbose
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+verbose>(${EXTEN})
137.
exten => _63XX,n,Set(foo=${DUNDILOOKUP
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+dundilookup>(${EXTEN}),mapping1,b})
138.
exten => _63XX,n,Verbose
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+verbose>(${foo})
139.
exten => _63XX,n,Hangup
<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+hangup>()
140.
141.
----------------
142.
iax.conf
143.
----------------
144.
[general]
145.
146.
bandwidth=low
147.
tos=lowdelay
148.
allow=ulaw
149.
jitterbuffer=no
150.
forcejitterbuffer=no
151.
tos=lowdelay
152.
autokill=yes
153.
154.
; Dundi user
155.
[dundi]
156.
type=user
157.
dbsecret=dundi/secret
158.
context=internal
159.
disallow=all
160.
allow=ulaw
161.
allow=gsm
Also available at http://pastebin.ca/171439
Thanks for viewing this.
Regards
------------------------------
Shekhar
------------------------------
More information about the Dundi
mailing list