[asterisk-users] ENUMLOOKUP question.
Aadilkhan Maniyar
amaniyar at velankani.com
Mon Mar 31 07:06:40 CDT 2008
Hi All,
I am trying to establish a call between two users 12345 at domian1.com and
ua1 at domain2.com using ENUMLOOKUP. The following is my configuration.
In the DNS for domain1 I have the following entry.
5.4.3.2.1.domain1.com. IN NAPTR 100 10 "u" "sip+E2U"
"!^(.*)$!sip:12345 at 10.0.16.32!" .
My extensions.conf for the extension 12345 looks like this:
exten => 12345,1,Set(foo=${ENUMLOOKUP(+${EXTEN},,,,domain1.com)})
exten => 12345,n,NoOp(Enum lookup => ${foo})
exten => 12345,n,Dial(SIP/${foo})
exten => 12345,n,Hangup()
When I analyze the network trace I am able to see that Asterisk does a
NAPTR query and does get an answer for the query.
But on the console the following is displayed.
-- Executing [12345 at call:1] Set("SIP/ua2-08bbef98", "foo=") in new stack
-- Executing [12345 at call:2] NoOp("SIP/ua2-08bbef98", "Enum
lookup => ") in new stack
-- Executing [12345 at call:3] Dial("SIP/ua2-08bbef98", "SIP/")
in new stack
It seems that Asterisk is unable to parse the response it has received
from the NAPTR query.
In some cases, I get the following logs at the console.
[Mar 31 16:58:48] WARNING[18211]: enum.c:246 parse_naptr: NAPTR Regex
match failed.
[Mar 31 16:58:48] WARNING[18211]: enum.c:362 enum_callback: Failed to
parse naptr :(
[Mar 31 16:58:48] WARNING[18211]: dns.c:226 dns_parse_answer: Failed to
parse result
[Mar 31 16:58:48] WARNING[18211]: dns.c:267 ast_search_dns: DNS Parse
error for 5.4.3.2.1.domain1.com
Am I doing something wrong here. I would appreciate if someone could
help me out and point me in the right direction.
Thanks & Regards,
Aadil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080331/73a43230/attachment.htm
More information about the asterisk-users
mailing list