[SIPForum-discussion] problem in receiving the 200 ok response for INVITE request

SIP SIP yansb43 at gmail.com
Sat Oct 10 19:30:06 UTC 2009


Amit,

For DNAT you need to create one policy which'll state that whatever request
comes to the interface will be forwarded to the server.
This is the standard.
To implement this you need to depend upon your design etc.

On Fri, Oct 9, 2009 at 10:39 AM, Amit Bansal <amitbansal3 at gmail.com> wrote:

> Could you please help me...actually I am new to SIP.
> thanks
> -amit
>
>
> On Fri, Oct 9, 2009 at 12:54 AM, SIP SIP <yansb43 at gmail.com> wrote:
>
>> You can apply DNAT to the same interface.........
>>
>>
>> On Wed, Oct 7, 2009 at 8:44 PM, Amit Bansal <amitbansal3 at gmail.com>wrote:
>>
>>> Is their any way to fix this issue or find out the exact problem??
>>>
>>>
>>> On Tue, Oct 6, 2009 at 11:07 PM, SIP SIP <yansb43 at gmail.com> wrote:
>>>
>>>> Well it may happen due to the following reason-------
>>>>
>>>> 1. When the INVITE reaches to the server, the source IP is NATTED.When
>>>> the UAS replies with 200 OK it is replying with the NATTED IP.But there
>>>> maynt be DNAT applied to the interface.So the 200 OK isnt reaching to the
>>>> UAC.
>>>>
>>>> 2. The UAS by some means may nt be replying with the NATTED IP.So the
>>>> interface isnt able to process it further.
>>>>
>>>> Usually incase of some firewall the pinholes created respond to 200OK
>>>> only and not to 180 etc.
>>>>
>>>>
>>>>
>>>>   On Tue, Oct 6, 2009 at 5:30 PM, Amit Bansal <amitbansal3 at gmail.com>wrote:
>>>>
>>>>>  I am creating a simple proxy server using the SIP servlet.
>>>>>  @Override
>>>>>     protected void doInvite(SipServletRequest request) throws
>>>>> ServletException, IOException
>>>>>     {
>>>>>        if(request.isInitial())
>>>>>             {
>>>>>                 logger.info("sending request to user using the
>>>>> proxy");
>>>>>                 Proxy proxy = request.getProxy();
>>>>>                 proxy.setRecordRoute(true);
>>>>>                 proxy.setSupervised(true);
>>>>>                 proxy.proxyTo(request.getRequestURI());
>>>>>             }
>>>>>    }
>>>>>
>>>>>    @Override
>>>>>      protected void doResponse(SipServletResponse response) throws
>>>>> ServletException, IOException
>>>>>     {
>>>>>        super.doResponse(response);
>>>>>     }
>>>>>
>>>>>
>>>>> When I am trying to call using the x-lite softphone which is behind the
>>>>> NAT to other softphone ( X-Lite ) then INVITE request is sent successfully
>>>>> and also SIP 180 response is received by the softphone.
>>>>>
>>>>> but 200 ok is not received by the caller softphone (also their is no
>>>>> log of receiving the 200 ok response on server). Due to this after some time
>>>>> request timeout occur and call is disconnected.
>>>>>
>>>>> both softphone are in different network and behind the NAT. If both
>>>>> softphone is in same network then application works fine.
>>>>>
>>>>> I have also tried using the stun server(stun.ekiga.net) but problem is
>>>>> not solved.
>>>>>
>>>>> Please help me to remove this problem.
>>>>>
>>>>> --
>>>>> Thanks
>>>>> amit
>>>>>
>>>>> _______________________________________________
>>>>> This is the SIP Forum discussion mailing list
>>>>> TO UNSUBSCRIBE, or edit your delivery options, please visit
>>>>> http://sipforum.org/mailman/listinfo/discussion
>>>>> Post to the list at discussion at sipforum.org
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Thanks
>>> amit
>>>
>>
>>
>
>
> --
> Thanks
> amit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sipforum.org/pipermail/discussion/attachments/20091011/9a151b88/attachment-0002.html>


More information about the discussion mailing list