[OpenSIPS-Users] Is NAPTR query always necessary?
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Thu Jul 16 18:50:37 CEST 2009
Hi Eason,
What is the RURI of the request looping on your server?
Regards,
Bogdan
hsuan wrote:
> Hi Bogdan,
>
> I use multi-domain support, but if I comment the multi-domain setting in
> opensips.cfg the looping still happen. Would I add something in my
> opensips.cfg to avoid the looping?
>
> Thanks,
> Eason
>
>
>
> Bogdan-Andrei Iancu wrote:
>
>> Hi Eason ,
>>
>> the looping happens because your OpenSIPS does not recognize the domain
>> from RURI as local domain (to be processed locally) and simply fwds it
>> based on DNS.
>>
>> In your script, do you use multi-domain support? Is it based on the
>> default opensips cfg ?
>>
>> Regards,
>> Bogdan
>>
>> hsuan wrote:
>>
>>> Hi Bogdan,
>>>
>>> Thanks for your feedback.
>>>
>>> Yes, I can find the sip request to itself on LO interface.
>>>
>>> But I don't know what setting in opensips server will cause SIP looping.
>>> Could you spell out more precisely? Why the sip looping only happens in
>>> the
>>> domain is not numeric? Do you mean it's not the DNS issue? I am a little
>>> confused.
>>>
>>> Best regards,
>>> Eason
>>>
>>>
>>>
>>> Bogdan-Andrei Iancu wrote:
>>>
>>>
>>>> Hi Eason,
>>>>
>>>> according to RFC3263 ( SIP: Locating SIP Servers), if the explicit
>>>> protocol and port is contain by the destination SIP URI, the proxy must
>>>> try to do NAPTR and SRV lookups to discover what protocol and port to
>>>> use...
>>>> If these records are missing, the default value ( UDP + 5060) are
>>>> assumed.
>>>>
>>>> these DNS lookups are done each time a requests is routed out (if not
>>>> using IPs).
>>>>
>>>> What happens in your case is a SIP looping on the proxy (sending the
>>>> request to itself). You can check this with tcpdump/ngrep/wireshark ,
>>>> watching the traffic on LO interface.
>>>>
>>>> Regards,
>>>> Bogdan
>>>>
>>>>
>>>> hsuan wrote:
>>>>
>>>>
>>>>> Hi all,
>>>>>
>>>>> I am newbie on opensips, I wonder if the NAPTR is necessary in some
>>>>> case?
>>>>> When my sip domain is set to FQDN, the opensips server will send NAPTR
>>>>> query
>>>>> to DNS server. But there is no NAPTR supported DNS in my environment,
>>>>> although the opensips server will get the ip and port eventaully.
>>>>> Why the opensips server will send NAPTR query again and again even
>>>>> though
>>>>> it
>>>>> already get the ip and port from DNS? When the opensips server get into
>>>>> the
>>>>> NAPTR loop, the user will get 483 too many hops finally and will not
>>>>> able
>>>>> to
>>>>> register to opensips server. Once if the sip domain is set to ip
>>>>> address,
>>>>> the user will register successfully. Is there any way to disable the
>>>>> NAPTR
>>>>> query in opensips server? Please advice.
>>>>>
>>>>> Best regards,
>>>>> Eason
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> _______________________________________________
>>>> 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