login | register
Sat 17 of May, 2008 [05:13 UTC]

voip-info.org

Search with Google
Search this site with Google. Results may not include recent changes.
 
Google Ads
Shoutbox
  • Juan Ortega, Thu 15 of May, 2008 [10:33 UTC]: Hi everybody, I'm Juan, an ITCom student, and I need to know what basic elements I need to create a VoIP network. Can anybody helpme, please?,Thank you very much
  • gineta, Wed 14 of May, 2008 [03:58 UTC]: any here not fine the configuration of firewall juniper -screem for VOIP asterisk????
  • Anoop Prabhakaran, Tue 13 of May, 2008 [12:16 UTC]: I am developing Asterisk IVR, Whenever i make a internation call to the IVR system, the DTMF is not getting detected properly, this happens only for the first time, second call onwards system works fine. why this is happening
  • joe, Mon 12 of May, 2008 [04:27 UTC]: Is there an opensource browser based softphone, or a system like Busta where everything is not manages through their website?
  • Nick Barnes, Fri 09 of May, 2008 [11:36 UTC]: Christopher - yesterday I tried an Asterisk install on a CentOS 5.1 box with stock GUI and it all worked fine. Sorry I can't help.
  • aero, Fri 09 of May, 2008 [08:20 UTC]: can someone help me out on this, i tried to play some sound files on my asterisk box and this is the error message i got. WARNING[4429]: format_wav.c:169 check_header: Unexpected freqency 22050 May 8 11:17:39 WARNING[4433]: codec_gsm.c:194 gsmtolin_fra
  • Christopher Faust, Thu 08 of May, 2008 [14:15 UTC]: I beleive that I may have to change something in the xserver configuration. Please advise
  • Christopher Faust, Thu 08 of May, 2008 [14:14 UTC]: Everything was perfect. In the bios I have increased the memory allocated Still receive input not supported on my display.
  • Christopher Faust, Thu 08 of May, 2008 [14:13 UTC]: This would not be my main box. I am doing some testing to see if I can install zaptel and asterisk 1.4 on a full centos 5.1 box with development software Its bizzare, because before I went through the asterisk and zaptel installation everything was perfe
  • Nick Barnes, Thu 08 of May, 2008 [13:44 UTC]: Christopher - I can't see any way in which an Asterisk installation would muck your GUI, but remember that it is advised not to use a GUI on an Asterisk box anyway.
Server Stats
  • Execution time: 0.40s
  • Memory usage: 2.18MB
  • Database queries: 33
  • GZIP: Disabled
  • Server load: 0.39

SER module enum

Enum module implements enum_query function that makes an enum query based on the user part of the current request URI. The function assumes that the user part consists of an international phone number of the form +decimal-digits, where the number of digits is at least 2 and at most 15. Out of this number enum_query forms a domain name, where the digits are in reverse order and separated by dots followed by domain suffix that by default is "e164.arpa.".

For example, if the user part is +35831234567, the domain name will be "7.6.5.4.3.2.1.3.8.5.3.e164.arpa.".

After forming the name, enum_queryenum_query queries from DNS its NAPTR records. From the possible response the current version of enum_query chooses the FIRST record, whose flags field has string value "u" and whose services field has string value "e2u+[service:]sip" (case is ignored in both cases).

"service" is given to enum_query as a parameter. If its value is "", then "e2u+sip" is looked for. If no such record is found, enum_query returns -1.
  
If such a record is found, enum_query checks if its regexp field is of the form !pattern!replacement!. If yes, enum_query replaces the current Request-URI with replacement, which it assumes to contain a SIP or SIPS type URI, and returns value 1.

If the regexp field is not of the form !pattern!replacement!, enum_query returns -1.
             
In addition to enum_query, enum module implements is_from_user_e164 function that checks if the user part of from URI is an E164 number.

Example

# is this an ENUM destination (leading +?)
if (method=="INVITE" && uri=~"sip:\+[0-9]+ at iptel\.org") {
       if (!enum_query("voice")) # if parameter empty, it defaults to "e2u+sip"
           enum_query(""); # E2U+sip
   };

See also


Please note

Stock SER module enum only handles one Enum DNS tree. If you implement your own ENUM-like DNS tree, the SER Module will not be able to handle the ENUM tree e164.arpa in parallell. There are patches that were incorporated into the unstable version of the CVS for SER to support alternate suffixes:

From: Juha Heinanen <jh@tutpro.com>
Subject: Serusers added domain_suffix parameter to enum_query

some folks have asked domain_suffix as a parameter to enum_query. i
just committed some changes for that purpose.

the syntax now is (from README):

1.4.1. enum_query(), enum_query("suffix"), enum_query("suffix", "service")

  Replaces the current Request-URI with the result of a successful enum
  query on the user part of the current Request-URI, which is assumed
  to be of the form +up-to-15-decimal-digits. An NAPTR record whose
  flags field has string value "u" and whose services field has string
  value "e2u+service:sip" or "e2u+sip" (if "service" parameter is not
  given) is looked for. Returns -1 if enum_query fails and 1 otherwise.

  If "suffix" parameter is not given, value of domain_suffix module
  paremeter is used.

  Example 1-2. enum_query usage
...
enum_query("e164.foo.com.");
...


Back to SIP Express Router
Created by oej, Last modification by jtodd on Sat 17 of Jan, 2004 [20:53 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