cnum.info

cnum.info - Meta-ENUM and LCR

CNUM.INFO - Meta ENUM and LCR


cnum.info is a domain used for ENUM-stylish-queries to provide realtime least-cost-routing information based on Call-by-Call rates for the german market merged with regular ENUM.

This might only be interesting to people living in Germany. - Heimatseite in deutsch

How it works


cnum.info's nameserver provides regular ENUM compliant NAPTR records. Be aware that the basic domain before the number to call has the following format:

.<areacode>.cnum.info

You need to replace <areacode> with the one your PSTN lines will be connected to. For i.e. Berlin its "030", see example below. If you are not interested in Call-by-Call rates or just aiming for ENUM resolution, use "XXX" as <areacode>.

<areacode> can also be replaced with your username (if you have registered) so the cnum.info-server can take care of flatrates, preselection or VoIP-provider relations you might have subscribed to.



~$ dig 0.5.5.5.9.6.2.0.2.9.4.030.cnum.info NAPTR

;; ANSWER SECTION:
0.5.5.5.9.6.2.0.2.9.4.030.cnum.info. 3300 IN NAPTR 78 3 "u" "E2U+tel" "!^\\+49(.*)$!tel:01900240\\1!" .
0.5.5.5.9.6.2.0.2.9.4.030.cnum.info. 3300 IN NAPTR 78 4 "u" "E2U+tel" "!^\\+49(.*)$!tel:010700\\1!" .
0.5.5.5.9.6.2.0.2.9.4.030.cnum.info. 3300 IN NAPTR 78 5 "u" "E2U+tel" "!^\\+49(.*)$!tel:010800\\1!" .
0.5.5.5.9.6.2.0.2.9.4.030.cnum.info. 3300 IN NAPTR 80 6 "u" "E2U+tel" "!^\\+49(.*)$!tel:010710\\1!" .
0.5.5.5.9.6.2.0.2.9.4.030.cnum.info. 3300 IN NAPTR 99 7 "u" "E2U+tel" "!^\\+49(.*)$!tel:010900\\1!" .
0.5.5.5.9.6.2.0.2.9.4.030.cnum.info. 3300 IN NAPTR 1 1 "u" "E2U+sip" "!^.*$!sip:info@portunity.de!" .
0.5.5.5.9.6.2.0.2.9.4.030.cnum.info. 3300 IN NAPTR 78 2 "u" "E2U+tel" "!^\\+49(.*)$!tel:010770\\1!" .



"Order" of each NAPTR record contains the price per Minute in 1/100 cent. The TTL values are adjusted to expire at the end of each hour where normally Call-by-Call rates change.

Too technical? Here is a "human friendly" lookup tool (:wink:)

=> The result above also shows: Call-by-Call is STILL much cheaper than any VoIP-Provider, or who of them is offering 0.78 ct/min to call german landlines without subscription?

Sources


  • Call-by-Call rates for the german market are provided by Verivox in realtime.
  • ENUM entries are coming from e164.arpa, e164.org and Sipgate's ENUM server. (More input here is welcome)

Integration with Asterisk


The AGI script used below is provided here. You will need to have Perl, Asterisk::AGI and Net::DNS installed.
Put the script into your agi-bin directory and make sure its executable. Edit the beginning of the script to fulfill the <areacode> requirements as mentioned above!

This AGI script will resolve the number passed, put the result in ${ENUM} and increase the priority accordingly:

  • +101 on FAILURE or NO RESULT
  • +51 if ${ENUM} contains number to dial via external Zap interface in format: "010130401234567"
  • +1 if ${ENUM} contains an IP route including the technology in format: "SIP/cool@man.de"

You can recall the script until it returns FAILURE to get the next ENUM in order.


[dialout]

; CNUM processing - assuming Zap/g1 is external line

;
exten => _.,1,Noop;
exten => _.,2,AGI(CnumLookup.agi,${EXTEN})
exten => _.,3,Noop

exten => _.,4,Dial(${ENUM},60); Dial IP route
exten => _.,5,Hangup

exten => _.,53,Dial(Zap/g1/${ENUM},60); PSTN line success
exten => _.,54,Hangup

exten => _.,103,Dial(Zap/g1/${EXTEN},60); Lookup failure, or END - dial normal
exten => _.,104,Hangup

exten => _.,105,Goto(2); Retry lookup

exten => _.,154,Goto(2); Retry lookup

exten => _.,204,Congestion



See also



Dirk Tostmann

cnum.info - Meta-ENUM and LCR

CNUM.INFO - Meta ENUM and LCR


cnum.info is a domain used for ENUM-stylish-queries to provide realtime least-cost-routing information based on Call-by-Call rates for the german market merged with regular ENUM.

This might only be interesting to people living in Germany. - Heimatseite in deutsch

How it works


cnum.info's nameserver provides regular ENUM compliant NAPTR records. Be aware that the basic domain before the number to call has the following format:

.<areacode>.cnum.info

You need to replace <areacode> with the one your PSTN lines will be connected to. For i.e. Berlin its "030", see example below. If you are not interested in Call-by-Call rates or just aiming for ENUM resolution, use "XXX" as <areacode>.

<areacode> can also be replaced with your username (if you have registered) so the cnum.info-server can take care of flatrates, preselection or VoIP-provider relations you might have subscribed to.



~$ dig 0.5.5.5.9.6.2.0.2.9.4.030.cnum.info NAPTR

;; ANSWER SECTION:
0.5.5.5.9.6.2.0.2.9.4.030.cnum.info. 3300 IN NAPTR 78 3 "u" "E2U+tel" "!^\\+49(.*)$!tel:01900240\\1!" .
0.5.5.5.9.6.2.0.2.9.4.030.cnum.info. 3300 IN NAPTR 78 4 "u" "E2U+tel" "!^\\+49(.*)$!tel:010700\\1!" .
0.5.5.5.9.6.2.0.2.9.4.030.cnum.info. 3300 IN NAPTR 78 5 "u" "E2U+tel" "!^\\+49(.*)$!tel:010800\\1!" .
0.5.5.5.9.6.2.0.2.9.4.030.cnum.info. 3300 IN NAPTR 80 6 "u" "E2U+tel" "!^\\+49(.*)$!tel:010710\\1!" .
0.5.5.5.9.6.2.0.2.9.4.030.cnum.info. 3300 IN NAPTR 99 7 "u" "E2U+tel" "!^\\+49(.*)$!tel:010900\\1!" .
0.5.5.5.9.6.2.0.2.9.4.030.cnum.info. 3300 IN NAPTR 1 1 "u" "E2U+sip" "!^.*$!sip:info@portunity.de!" .
0.5.5.5.9.6.2.0.2.9.4.030.cnum.info. 3300 IN NAPTR 78 2 "u" "E2U+tel" "!^\\+49(.*)$!tel:010770\\1!" .



"Order" of each NAPTR record contains the price per Minute in 1/100 cent. The TTL values are adjusted to expire at the end of each hour where normally Call-by-Call rates change.

Too technical? Here is a "human friendly" lookup tool (:wink:)

=> The result above also shows: Call-by-Call is STILL much cheaper than any VoIP-Provider, or who of them is offering 0.78 ct/min to call german landlines without subscription?

Sources


  • Call-by-Call rates for the german market are provided by Verivox in realtime.
  • ENUM entries are coming from e164.arpa, e164.org and Sipgate's ENUM server. (More input here is welcome)

Integration with Asterisk


The AGI script used below is provided here. You will need to have Perl, Asterisk::AGI and Net::DNS installed.
Put the script into your agi-bin directory and make sure its executable. Edit the beginning of the script to fulfill the <areacode> requirements as mentioned above!

This AGI script will resolve the number passed, put the result in ${ENUM} and increase the priority accordingly:

  • +101 on FAILURE or NO RESULT
  • +51 if ${ENUM} contains number to dial via external Zap interface in format: "010130401234567"
  • +1 if ${ENUM} contains an IP route including the technology in format: "SIP/cool@man.de"

You can recall the script until it returns FAILURE to get the next ENUM in order.


[dialout]

; CNUM processing - assuming Zap/g1 is external line

;
exten => _.,1,Noop;
exten => _.,2,AGI(CnumLookup.agi,${EXTEN})
exten => _.,3,Noop

exten => _.,4,Dial(${ENUM},60); Dial IP route
exten => _.,5,Hangup

exten => _.,53,Dial(Zap/g1/${ENUM},60); PSTN line success
exten => _.,54,Hangup

exten => _.,103,Dial(Zap/g1/${EXTEN},60); Lookup failure, or END - dial normal
exten => _.,104,Hangup

exten => _.,105,Goto(2); Retry lookup

exten => _.,154,Goto(2); Retry lookup

exten => _.,204,Congestion



See also



Dirk Tostmann

Created by: tostmann, Last modification: Sat 04 of Jun, 2005 (15:52 UTC) by JustRumours
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+