[Kamailio-Users] enum module in openser

Ali Soltani mail at alirsm.com
Fri Aug 1 14:00:20 CEST 2008


Hi,

I am using Enum Module in opencer. Here is the piece of the code I am using in openser.cfg:

route
{
   ##############################################################
   if (method=="INVITE")
   {
      xlog ("This is the ReqUri as it arrives to openser: $ru");       # before adding +
      subst_uri ('/^sip:([0-9]+)/sip:+\1/');
      xlog ("This is the ReqUri as it arrives to openser: $ru");       # after adding +
      enum_query("labenum.e164.arpa.com","10.0.0.1");
      xlog("This is the return code from the enum query:  $rc");   # returns -1
      xlog("This is your new ReqUri:  $ru");                                # no URI change

.....

   }
}

Even though the response from Enum query is being sent to openser, enum_query returns -1. enum_query also does not change the current URI. 

here is the format of enum entry in the dns server:

# dig 0.0.0.1.4.8.4.3.1.8.labenum.e164.arpa.com @10.0.0.1 +short
100 10 "U" "E2U+sip" "!^.*$!sip:+18134841000 at bts.voice.net!" .

Any suggestion?          

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20080801/357e8b0a/attachment.htm>


More information about the sr-users mailing list