login | register
Fri 04 of Jul, 2008 [01:29 UTC]

voip-info.org

Search with Google
Search this site with Google. Results may not include recent changes.
 
Google Ads
Shoutbox
  • Samuel, Thu 03 of Jul, 2008 [13:41 UTC]: ok thank you
  • Mats Karlsson, Thu 03 of Jul, 2008 [13:37 UTC]: Nice Samuel, will look forward to rad it.
  • bwl_fernstudent, Thu 03 of Jul, 2008 [09:08 UTC]: Your blog shows some usefull code
  • Samuel, Thu 03 of Jul, 2008 [08:04 UTC]: I'll translate it, for sure
  • Mats Karlsson, Wed 02 of Jul, 2008 [20:46 UTC]: LOL, in french! Translate it to English and I will read it.
  • Samuel, Wed 02 of Jul, 2008 [08:07 UTC]: Hello, i wrote a blog about Asterisk, speaking about installation,programming and more http://sambranche.blogspot.com/
  • Nick Barnes, Tue 01 of Jul, 2008 [17:46 UTC]: Steve - Asterisk doesn't 'fit into linux' - it's an application which runs on top of Linux.
  • Steve, Mon 30 of Jun, 2008 [18:07 UTC]: anyone know where I can find a block diagram of how asterisk fits into linux. my f'ing bosses want me to draw something up.. ugh.
  • akbar, Fri 27 of Jun, 2008 [10:37 UTC]: marley_boyz@yahoo.com how to configure call forward, call back, call pick up using TDM and asterisk 1.2.13... please help me.. thx...
  • Matthew Williams, Tue 24 of Jun, 2008 [22:37 UTC]: We are looking for Tier II VoIP Support Technicians in St Louis. Send resumes to mwilliams AT voxitas DOT com.
Server Stats
  • Execution time: 0.39s
  • Memory usage: 2.18MB
  • Database queries: 29
  • GZIP: Disabled
  • Server load: 0.79

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

Created by tostmann, Last modification by JustRumours on Sat 04 of Jun, 2005 [15:52 UTC]

Please update this page with new information, just login and click on the "Edit" or "Add Comment" button above. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

Sponsored by:

Terms of Service Privacy Policy
© 2003-2008 VOIP-Info.org LLC

Powered by bitweaver