<div dir="ltr">Hi,<div><br></div><div>Many thanks for your replies. Turns out we were calling t_newtran() elsewhere in the config before handling the register, and I guess the callback was being attached to the wrong transaction. Now it's removed, all is working fine :)</div>
<div><br></div><div>Best,</div><div><br></div><div>Charles</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 9 September 2013 19:09, Carsten Bock <span dir="ltr"><<a href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
you find a working example actually in the examples/pcscf/ Folder of Kamailio.<br>
Since we don't have a full compatible usrloc-API for IMS (yet), i used<br>
nat_traversal as replacement for nathelper; as it's not relying on the<br>
usrloc-database.<br>
<br>
In the config we have:<br>
# ----- nat_traversal params -----<br>
# If another keepalive is wanted, this is the place<br>
modparam("nat_traversal", "keepalive_interval", 10)<br>
# If another method than NOTIFY is wanted:<br>
modparam("nat_traversal", "keepalive_method", "OPTIONS")<br>
# From?<br>
modparam("nat_traversal", "keepalive_from", "sip:keepalive@HOSTNAME")<br>
# Where we store information about keep-alives:<br>
modparam("nat_traversal", "keepalive_state_file",<br>
"/var/run/kamailio/keepalive_state")<br>
<br>
With these parameters, we just call "nat_keepalive();" before<br>
forwarding the request to the IMS-Core.  This works for us... (with<br>
latest 4.0 or trunk versions, i haven't tried it before).<br>
<br>
Kind regards,<br>
Carsten<br>
<br>
2013/9/9 Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>>:<br>
<div><div class="h5">> Hello,<br>
><br>
> not using this module, however, after you start, can you see a dedicated<br>
> timer module 'NT' if you do kamctl ps?<br>
><br>
> Cheers,<br>
> Daniel<br>
><br>
><br>
> On Fri, Sep 6, 2013 at 11:00 AM, Charles Chance<br>
> <<a href="mailto:charles.chance@sipcentric.com">charles.chance@sipcentric.com</a>> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> Currently evaluating the nat_traversal module in some tests, and trying to<br>
>> configure keepalives for registers. We currently use nathelper, but due to<br>
>> the distributed nature of our setup, nat_traversal seems more appropriate<br>
>> for the keepalive functionality (nathelper is sending keepalives from every<br>
>> node).<br>
>><br>
>> I am calling nat_keepalive() before save(), but no keepalives are being<br>
>> sent. The documentation suggests that is all there is to it, but maybe I'm<br>
>> missing something. There are no errors in the log that I can see.<br>
>><br>
>> Any ideas?<br>
>><br>
>> Many thanks,<br>
>><br>
>> Charles<br>
>><br>
>><br>
>> <a href="http://www.sipcentric.com" target="_blank">www.sipcentric.com</a><br>
>><br>
>> Follow us on twitter @sipcentric<br>
>><br>
>> Sipcentric Ltd. Company registered in England & Wales no. 7365592.<br>
>> Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South,<br>
>> Birmingham B7 4EJ.<br>
>> _______________________________________________<br>
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Daniel-Constantin Mierla<br>
>   <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
<br>
<br>
<br>
--<br>
</div></div>Carsten Bock<br>
CEO (Geschäftsführer)<br>
<br>
ng-voice GmbH<br>
Schomburgstr. 80<br>
D-22767 Hamburg / Germany<br>
<br>
<a href="http://www.ng-voice.com" target="_blank">http://www.ng-voice.com</a><br>
mailto:<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a><br>
<br>
Office +49 40 34927219<br>
Fax +49 40 34927220<br>
<br>
Sitz der Gesellschaft: Hamburg<br>
Registergericht: Amtsgericht Hamburg, HRB 120189<br>
Geschäftsführer: Carsten Bock<br>
Ust-ID: DE279344284<br>
<br>
Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br>
<a href="http://www.ng-voice.com/imprint/" target="_blank">http://www.ng-voice.com/imprint/</a><br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br><br>
</div></div>

<br>
<font face="Helvetica, Arial, sans-serif"><font size="2"><span style="font-size:10pt"><a href="http://www.sipcentric.com/" title="blocked::http://www.sipcentric.com/" target="_blank">www.sipcentric.com</a><br>
            <br>
            Follow us on twitter <a href="http://twitter.com/sipcentric" title="blocked::http://twitter.com/sipcentric" target="_blank">@sipcentric</a><br>
            <br>
            <font color="gray">Sipcentric Ltd.
                Company registered in England & Wales no. 7365592.</font> <font color="gray">Registered
                office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.</font></span></font></font>