[Serusers] ENUM

sip sip at arcdiv.com
Mon Feb 20 16:23:26 CET 2006


On Mon, 20 Feb 2006 12:11:54 -0300, Anderson Alves Albuquerque wrote
>  
>  Does someone has a example with ENUM in SER? 
>  I need to use SER with ENUM, but I think that the manaul in IPTEL is very sample and it is not complete.

Sure, we use ENUM all the time for a lot of things. 

The basic block I have is: 

# Handle enum lookups
                if ((uri=~"^sip:\+[0-9]*@*") || (uri =~ "^sip:\*164*@*"))
                {
                        #log(1, "************ENUM BLOCK*************");
                        if(uri =~ "^sip:\*164*@*")
                        {
                                # Can't be in this format. Has to start with a +
                                strip(4);
                                prefix("+");
                        };
                        if(!enum_query("e164.arpa.") && !enum_query("e164.org.")  && !enum_query("e164.info.") && !enum_query("enum.org."))
                        {
                                log(1, "Invalid enum? Route to PSTN");
                        };

                        log(1, "Valid ENUM number received");
                        # If we received a query reponse to any of those (in order)
                        route(1);
                        break;
                };

All that basically does is take a number that starts with a + or a number that someone dials beginning with *164 (our method of allowing ENUM access for people not on phones that can dial a + symbol, and runs it through ENUM checks of 4 services. 

You could take every number, route it through there, and if it doesn't match an ENUM number, route it through other checks... thereby ensuring that ANY ENUM number is first treated as ENUM and then, failing that, treated as a regular call, but dependent on the speed of DNS and the ENUM servers in question, and where it lies in the chain, that could slow call processing down quite a bit, so we don't do it by default. 

N.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060220/766e8d61/attachment.htm>


More information about the sr-users mailing list