Hi All,
I am trying to establish a call between two users [EMAIL PROTECTED] and
[EMAIL PROTECTED] 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:[EMAIL PROTECTED]" .
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 [EMAIL PROTECTED]:1] Set("SIP/ua2-08bbef98", "foo=") in new stack
-- Executing [EMAIL PROTECTED]:2] NoOp("SIP/ua2-08bbef98", "Enum
lookup => ") in new stack
-- Executing [EMAIL PROTECTED]: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
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users