[Kamailio-Users] enum module in openser

Daniel-Constantin Mierla miconda at gmail.com
Fri Aug 1 22:52:34 CEST 2008


Hello,

On 08/01/08 15:00, Ali Soltani wrote:
> 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?        
do you get error messages in syslog? Adding + as prefix seems to be 
wrong the way you do it. It is very simple by using the prefix function:

prefix("+");

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com





More information about the Users mailing list