[OpenSIPS-Users] howto get NAPTR lookup

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Nov 20 13:08:13 CET 2008


Hi Urmi,

looking at the logs you sent, there is first an ENUM lookup (which has 
nothing to do with the xyz.com domain) and then a forward (via 
dispatcher) to the xyz.com domain.

I'm not sure I understand your question here.....

Regards,
Bogdan

dilip.m at renovau.com wrote:
> Hello Bogdan,
>
> Thanks 4 ur quick reply.
>
> Many of our calls are done through this ENUM url (i.exyz.com). That  
> means, if its not hv DNS entries, than how its possible.
>
> Any thing left in our openser.cfg file. Can u please tell me, the  
> solution of this ??
>
> Thanks & Regards,
> Urmi
>
>
>
> Quoting Bogdan-Andrei Iancu <bogdan at voice-system.ro>:
>
>   
>> Hi Urmi,
>>
>> I see here 2 queries:
>>
>> 1) an enum one - and the number you are looking has no enum record
>>
>> 2) a DNS lookup (NAPTR, SRV, A) for xyz.com domain - and it looks there
>> are no entries in DNS for it.
>>
>> Regards,
>> Bogdan
>>
>> dilip.m at renovau.com wrote:
>>     
>>> Hello,
>>>
>>> I want to use ENUM with openser + CDRTool.  xyz is my ENUM url.
>>> When I m firing the call, I m getting the following error on openser ::
>>>
>>> ---------------------------------------------------------------------------------------------
>>>  2(31823) get_record: lookup(0.0.5.2.7.3.3.3.0.3.1.e164.arpa., 35) failed
>>>  2(31823) enum_query(): No NAPTR record found for    
>>> 0.0.5.2.7.3.3.3.0.3.1.e164.arpa..
>>>  2(31823) get_record: lookup(0.0.5.2.7.3.3.3.0.3.1.e164.arpa., 35) failed
>>>  2(31823) enum_query(): No NAPTR record found for    
>>> 0.0.5.2.7.3.3.3.0.3.1.e164.arpa..
>>>  2(31823) DISPATCHER:ds_select_dst: set index [1->0]
>>>  2(31823) DISPATCHER:ds_select_dst: alg hash [450732010]
>>>  2(31823) DISPATCHER:ds_select_dst: selected [0-1/0/0] <sip:xyz.com>
>>>  2(31823) DEBUG: mk_proxy: doing DNS lookup...
>>>  2(31823) DEBUG:sip_resolvehost2: no port, no proto -> do NAPTR lookup!
>>>  2(31823) get_record: lookup(xyz.com, 35) failed
>>>  2(31823) DEBUG:sip_resolvehost2: no valid NAPTR record found for    
>>> xyz.com, trying direct SRV lookup...
>>>  2(31823) get_record: lookup(_sip._udp.xyz.com, 33) failed
>>>  2(31823) DEBUG:sip_resolvehost2: no valid SRV record found for    
>>> _sip._udp.xyz.com, trying A record lookup...
>>>  2(31823) ERROR: mk_proxy: could not resolve hostname: "xyz.com"
>>> ---------------------------------------------------------------------------------------------
>>>
>>>  openser.cfg file :::
>>>
>>> loadmodule "enum.so"
>>>
>>> modparam("enum", "domain_suffix", "e164.arpa.")         #urmi
>>>
>>> modparam("acc", "radius_extra", "
>>>                                        Called-Station-Id=$tu;
>>>                                        Calling-Station-Id=$fu;
>>>                                        Canonical-URI=$tu;
>>>                                         User-Name=$au;
>>>                                         Sip-User-Realm=$ar;
>>>                                       Source-IP=$si;
>>>                                         Source-Port=$sp;
>>>                                       From-Header=$hdr(from);
>>>                                         User-Agent=$hdr(user-agent);
>>>                                         Contact=$hdr(contact);
>>>                                         ENUM-TLD=$avp(s:enum_tld);
>>>                                         Event=$hdr(event)")
>>>
>>>
>>> route
>>> {
>>>
>>>         if (uri=~"^sip:1[1-9][0-9]*"){
>>>         #       strip(2);
>>>                 prefix("+");
>>>         };
>>>
>>>         if (uri=~"sip:\+[0-9]+")
>>>         {
>>>                 xdbg("\n\n---- urmi second if ENUM uri----\n\n");
>>>
>>>                 if ( !enum_query("e164.arpa.") )
>>>                 {
>>> #                enum_query("nrenum.net.");
>>>                  enum_query("e164.arpa.");
>>>                 };
>>>         };
>>>
>>> }
>>> -----------------------------------------------------------------------------------------------------------------
>>> Can you please hepl me out in this.
>>>
>>>
>>> Thanks in advance.
>>> Urmi
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>       
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the Users mailing list