[asterisk-users] ENUM and Asterisk 1.6

Erik Wartusch erik.wartusch at gmail.com
Mon Nov 16 07:24:16 CST 2009


Hi all,

I have a problem with 1.6.1.7-rc1 and ENUM (with an own PowerDNS server
and NAPTR record). Maybe somebody has more experience with this or can
give me some input. 

The dialplan:

exten => 292,1,Set(DIAL_NUMBER=43660123456)
exten => 292,2,Set(sip=
${ENUMLOOKUP(+${DIAL_NUMBER},sip,,1,ns3.e164.xxx.com)})  ;x'ed out the
domain name starting from here
exten => 292,3,NoOp(${sip})
exten => 292,4,Hangup()

The output if I dial 292:

Connected to Asterisk 1.6.1.7-rc1 currently running on srv21 (pid =
6061)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [292 at sip:1] Set("SIP/273-98117048",
"DIAL_NUMBER=43660123456") in new stack
  == ast_get_enum(num='+43660123456', tech='sip',
suffix='ns3.e164.xxx.com', options='', record=1
  == ENUM options(): pos=1, options='0'
  == ast_get_enum() profiling: FAIL,
6.5.4.3.2.1.0.6.6.3.4.ns3.e164.xxx.com, 2 ms
    -- Executing [292 at sip:2] Set("SIP/273-98117048", "sip=") in new
stack
    -- Executing [292 at sip:3] NoOp("SIP/273-98117048", "") in new stack
    -- Executing [292 at sip:4] Hangup("SIP/273-98117048", "") in new stack
  == Spawn extension (sip, 292, 4) exited non-zero on 'SIP/273-98117048'
    -- Executing [h at sip:1] Hangup("SIP/273-98117048", "") in new stack
  == Spawn extension (sip, h, 1) exited non-zero on 'SIP/273-98117048'
srv21*CLI> 

The NAPTR record:

6.5.4.3.2.1.0.6.6.3.4.e164.xxx.com  100 10 "u" "E2U+sip" "!^.*$!
sip:273 at 10.0.43.105!" .

The output of a dig command using the ns3.e164.xxx.com (so DNS seems to
be fine):
dig @ns3.e164.xxx.com  6.5.4.3.2.1.0.6.6.3.4.e164.xxx.com ANY

; <<>> DiG 9.5.1-P3 <<>> @ns3.e164.xxx.com
6.5.4.3.2.1.0.6.6.3.4.e164.xxx.com ANY
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11934
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;6.5.4.3.2.1.0.6.6.3.4.e164.xxx.com. IN ANY

;; ANSWER SECTION:
6.5.4.3.2.1.0.6.6.3.4.e164.xxx.com. 600 IN NAPTR 100 10 "u" "E2U+sip" "!
^.*$!sip:273 at 10.0.43.105!" .

;; Query time: 19 msec
;; SERVER: 10.0.50.107#53(10.0.50.107)
;; WHEN: Mon Nov 16 14:14:05 2009
;; MSG SIZE  rcvd: 111

enum.conf:
[general]
;
; The search list for domains may be customized.  Domains are searched
; in the order they are listed here.
;
search => ns3.e164.xxx.com
search => e164.arpa

Regards,

Erik






More information about the asterisk-users mailing list