<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px"
bgColor=#ffffff leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT size=2>Hi,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I am using Enum Module in opencer. Here is the piece of the
code I am using in openser.cfg:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>route<BR>{<BR>
##############################################################<BR>
if (method=="INVITE")<BR> {<BR> xlog
("This is the ReqUri as it arrives to openser:
$ru"); # before adding +</FONT></DIV>
<DIV><FONT size=2> subst_uri
('/^sip:([0-9]+)/sip:+\1/');<BR> xlog ("This is
the ReqUri as it arrives to openser: $ru");
# after adding +<BR>
enum_query("labenum.e164.arpa.com","10.0.0.1");<BR>
xlog("This is the return code from the enum query: $rc"); #
returns -1<BR> xlog("This is your new
ReqUri:
$ru");
# no URI change</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>.....</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> }</FONT></DIV>
<DIV><FONT size=2>}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>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. </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>here is the format of enum entry in the dns
server:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2># dig 0.0.0.1.4.8.4.3.1.8.labenum.e164.arpa.com @10.0.0.1
+short<BR>100 10 "U" "E2U+sip" "!^.*$!sip:+18134841000@bts.voice.net!" .</DIV>
<DIV><BR>Any suggestion?
</DIV>
<DIV> </DIV>
<DIV>Thanks,<BR></DIV></FONT></BODY></HTML>