[Freeswitch-users] enum to inum

mazilo Nabble at slickdeals.endjunk.com
Thu Jan 13 19:22:34 MSK 2011


If I called an iNUM number, the eNUM dialplan picked up and it dumped the
following on fs_cli:

2011-01-12 14:14:33.973951 [DEBUG] mod_enum.c:576 ENUM Lookup on
883510074743246
2011-01-12 14:14:34.081638 [DEBUG] mod_enum.c:204 Unable to lookup NAPTR
record for 6.4.2.3.4.7.4.7.0.0.1.5.3.8.8.e164.org: valid domain but no data
of requested type
If I do a dig naptr 6.4.2.3.4.7.4.7.0.0.1.5.3.8.8.e164.org on my FS hosted
on a Seagate DockStar, this is what I will get:
; <<>> DiG 9.7.2-P3 <<>> naptr 6.4.2.3.4.7.4.7.0.0.1.5.3.8.8.e164.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23298
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;6.4.2.3.4.7.4.7.0.0.1.5.3.8.8.e164.org.        IN NAPTR

;; AUTHORITY SECTION:
6.4.2.3.4.7.4.7.0.0.1.5.3.8.8.e164.org. 166 IN SOA na.e164.biz.
support.e164.org. 2011011318 86400 1800 3600000 300

;; Query time: 16 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Thu Jan 13 11:03:40 2011
;; MSG SIZE  rcvd: 111
If I do a  dig naptr 6.4.2.3.4.7.4.7.0.0.1.5.3.8.8.e164.arpa on my FS hosted
on a Seagate DockStar, this is what I will get:
; <<>> DiG 9.7.2-P3 <<>> naptr 6.4.2.3.4.7.4.7.0.0.1.5.3.8.8.e164.arpa
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30195
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;6.4.2.3.4.7.4.7.0.0.1.5.3.8.8.e164.arpa. IN NAPTR

;; ANSWER SECTION:
6.4.2.3.4.7.4.7.0.0.1.5.3.8.8.e164.arpa. 86400 IN NAPTR 10 100 "u" "E2U+sip"
"!^(.*)$!sip:\\1 at 81.201.82.25!" .

;; Query time: 277 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Thu Jan 13 11:05:29 2011
;; MSG SIZE  rcvd: 113
So, I replaced the e164.org with e164.arpa on the
conf/autoload_configs/enum.conf.xml as shown below, and then eNUM is able to
find the iNUM number to call without a problem.<configuration
name="enum.conf" description="ENUM Module">
  <settings>
    
    
    
    
  </settings>

  <routes>
    <route service="E2U+SIP" regex="sip:(.*)"
replace="sofia/${use_profile}/$1"/>
    <!--<route service="E2U+XMPP" regex="XMPP:(.*)"
replace="dingaling/$${xmpp_server_profile}/$1"/
  </routes>
</configuration>
In this case, why not update the conf/autoload_configs/enum.conf.xml file on
git repository to reflect e164.arpa?

-----
don't and stop are the ONLY two 4-letter words considered offensive to men,
but not when used together.
-- 
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/enum-to-inum-tp5918795p5918795.html
Sent from the freeswitch-users mailing list archive at Nabble.com.



More information about the FreeSWITCH-users mailing list