[Spce-user] NGCP Behind NAT

Andrew Pogrebennyk apogrebennyk at sipwise.com
Wed Jul 24 05:51:15 EDT 2013


Hi Paul,

you can use our advertised_ip option. Please set it with ngcp-network
command like:
ngcp-network --set-interface=eth0 --advertised-ip=x.y.z.w

As far as I understood, you are going to advertise public IP and setup
port forwarding on your router. You will probably need to forward the
ports for rtp proxy, check the handbook for port range it is using or
options rtpproxy.minport, rtpproxy.maxport in
/etc/ngcp-config/config.yml or
/etc/ngcp-config/templates/etc/default/ngcp-mediaproxy-ng-daemon.tt2

Regards,
Andrew

On 24/07/2013 17:28, Paul wrote:
> Thanks for your comments Jon.
> 
> I am renaming this thread since it deals with a secondary issue.
> 
> I wasn't sure what was going on my calls were being dropped after 30-32
> seconds. After hours of frustration, I decided to throw a FreeSWITCH box
> in front of my other machines and see if the problem persisted, so that I
> would at least know what needs fixing. FS did the same behaviour so I knew
> for sure it was the NAT that was causing it. I figured out how to fix it
> in FS, I just had to specify my ext ip for both sip and rtp external
> profiles, and internal for the regular sip profile. That fixed this
> problem.
> 
> So now coming back to NGCP, is that possible to do as well?
> 
> My network layout is:
> 
> SIP Trunk <--Internet--> <--My Router--><-NAT->
> ext_IP_NGCP_in_IP(10.0.0.40) <--FS1/2/3/4 (on 10.0.0.0/24 subnet)
> 
> Thanks!
> 
> On Wed, July 24, 2013 1:19 am, Jon Bonilla wrote:
>> El Mon, 22 Jul 2013 23:54:40 -0007
>> Paul <pasha at prosperity4ever.com> escribió:
>>
>>
>>> Hi Andrew,
>>>
>>>
>>> Thanks so much for this last message, that was key to my whole problem.
>>>  I messed up network.yml so I reinstalled sipwise CE and only applied
>>> the machine's IP as domain, created trunk from FS and everything is fine,
>>> I can route calls incoming and outgoing now just fine.
>>>
>>
>> For the record: In /etc/ngcp-config you should have something like
>> config.yml.factory_default
>>
>> You don't need to reinstall the scpe to restore that file.
>>
>>
>> Check the backup chapter in the Handbook too.
>>
>>
>>
>>>
>>> I am wondering if you can help me with one more issue that has been
>>> causing me to nearly pull my hair out. My calls (both incoming and
>>> outgoing) are being dropped after 30-31 seconds every single time.
>>>
>>
>> You should create a thread for each single issue. This would help people
>> to search and find solutions in the future.
>>
>>
>> Is NGCP behind NAT? What's your network scenario at this point? What's
>> the network capture? You could use ngrep-sip for this (man ngrep-sip).
>>
>>
>>
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
>> http://lists.sipwise.com/listinfo/spce-user
>>
>>
> 
> 
> 
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user
> 





More information about the Spce-user mailing list