[Spce-user] SPCE and NAT

Skyler skchopperguy at gmail.com
Wed Feb 20 16:26:15 EST 2013


Hi,

 If this is still an issue; I found a while back that the NOTIFY hole you
are trying to keep open by using the $NOTIFY keepalive setting on the
device, does not stay open unless SPCE replies with 200 OK. Here's a 2.6
hack for your
/etc/ngcp-config/templates/etc/kamailio/proxy/impresence.cfg.customtt.tt2

This will accept NOTIFY from already authenticated/registered devices and
reply OK to keep that hole open. Else, exit/ignore.


route[ROUTE_IMP_REQUEST]
{
        if(is_method("NOTIFY"))
        {
                if($hdr(Event) =~ "keep-alive" &&
registered("location","$fu"))
                {
                        xlog("L_INFO", "NAT Keep-Alive Detected, Replying -
[% logreq -%]\n");
                        sl_send_reply("200", "OK");
                        exit;
                }
                else if(cmp_istr($cT, "application/simple-message-summary")
&&
                        $avp(s:ip) == "[% networking.iaddress %]")
                {
                        route(ROUTE_IMP_NOTIFY_MWI);
                        exit;
                }
        exit;
        }
#!ifndef ENABLE_PRESENCE
        route(ROUTE_COM_REJECT_UNSUPPORTED);
#!else
        # checking if a request is a retransmission, if so it will exit


Skyler

On Wed, Feb 13, 2013 at 6:01 AM, Daniel Grotti <dgrotti at sipwise.com> wrote:

> Hi Dave,
>
> Some SIP client(like Cisco SPA devices for example) support the "NAT
> Keep Alive" feature.
> You can try to enable it.
>
> Daniel
>
>
>
>
> On 02/13/2013 02:55 PM, Dave Massey wrote:
> > Hey all.
> >
> > Is there any requirement for the client/ATA to have specific NAT
> settings enabled if the ATA is behind a NAT consumer router?
> > SPCE is on a public IP.
> >
> > I have one case where the ATA loses connection/will not register to SPCE
> after some time (24 hours?) and requires resetting all the equipment/router
> and it will re-establish connection.
> > I havent enabled any specific NAT things in any ATAs and its only a
> problem with this one customer, perhaps their D-link router?
> > Other cases even with the ATAs behind double NAT and everything is fine.
> > Re-Registration time is 60 seconds, I figure thats lots to keep holes
> open in NAT routers.
> >
> > Any thing that might have to be checked?
> > I know this probably not specific to SPCE.
> >
> > Thanks!
> >
> > Dave
> > _______________________________________________
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130220/721c45e3/attachment-0001.html>


More information about the Spce-user mailing list