[prev in list] [next in list] [prev in thread] [next in thread]
List: openser-users
Subject: Re: [SR-Users] Making iPhone SIP client work with Kamailio
From: Krishna Kurapati <kkurapat () gmail ! com>
Date: 2011-09-30 15:38:19
Message-ID: CAOzCjAfRhDEo0ak_g8ULXxWTGHYe1_No6wzcdbewjcpDuyTrTw () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Thanks for the suggestion. I added following lines to the config
#!define FLB_NATB 6
#!define FLB_NATSIPPING 7
# ----- nathelper params -----
modparam("nathelper", "natping_interval", 30)
modparam("nathelper", "ping_nated_only", 1)
modparam("nathelper", "sipping_bflag", FLB_NATSIPPING)
modparam("nathelper", "sipping_method", "INFO")
modparam("nathelper", "sipping_from", "sip:pinger@10.1.0.6")
# params needed for NAT traversal in other modules
modparam("nathelper|registrar", "received_avp", "$avp(RECEIVED)")
modparam("usrloc", "nat_bflag", FLB_NATB)
However, I do not see INFO messages from server to client in ngrep
Am I missing something else to configure here?
Thanks
Krish Kura
On Fri, Sep 30, 2011 at 2:52 AM, Daniel-Constantin Mierla <miconda@gmail.com
> wrote:
> Hello,
>
>
> On 9/30/11 12:51 AM, Krishna Kurapati wrote:
>
> Hi,
> >
> > The iPhone client, when it goes into background, can only respond to
> > incoming messages.
> > That makes the Registration expire when there is no communication from the
> > server before
> > the expire time. I could make the Registration not expire at all. Not sure
> > it's the only option.
> >
> > Is there a way to send a Ping message from server periodically to the
> > iPhone SIP client. This
> > will wakeup the SIP client and resend REGISTER message.
> >
> > you can set the nat_bflag (see usrloc module) to mark the registration
> as being natted. Then use nathelper module mark it to send OPTIONS ping
> (sipping_bflag parameter).
>
> http://kamailio.org/docs/modules/stable/modules_k/usrloc.html
> http://kamailio.org/docs/modules/stable/modules_k/nathelper.html
>
> Cheers,
> Daniel
>
> --
> Daniel-Constantin Mierla -- http://www.asipto.com
> Kamailio Advanced Training, Oct 10-13, Berlin: \
> http://asipto.com/u/kathttp://linkedin.com/in/miconda -- http://twitter.com/miconda \
>
[Attachment #5 (text/html)]
<div>Thanks for the suggestion. I added following lines to the \
config</div><div><br></div><div>#!define FLB_NATB 6</div><div>#!define FLB_NATSIPPING \
7</div><div># ----- nathelper params \
-----</div><div><div>modparam("nathelper", "natping_interval", \
30)</div> <div>modparam("nathelper", "ping_nated_only", \
1)</div><div>modparam("nathelper", "sipping_bflag", \
FLB_NATSIPPING)</div><div>modparam("nathelper", "sipping_method", \
"INFO")</div> <div>modparam("nathelper", \
"sipping_from", "<a \
href="mailto:sip%3Apinger@10.1.0.6">sip:pinger@10.1.0.6</a>")</div><div><br></div><div># \
params needed for NAT traversal in other modules</div><div> \
modparam("nathelper|registrar", "received_avp", \
"$avp(RECEIVED)")</div><div>modparam("usrloc", \
"nat_bflag", FLB_NATB)</div></div><div><br></div><div>However, I do not see \
INFO messages from server to client in ngrep</div> <div>Am I missing something else \
to configure here?</div><div><br></div><div>Thanks</div><div>Krish \
Kura</div><div><br><div class="gmail_quote">On Fri, Sep 30, 2011 at 2:52 AM, \
Daniel-Constantin Mierla <span dir="ltr"><<a \
href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span> wrote:<br> \
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<div><div></div><div class="h5"><br>
<br>
On 9/30/11 12:51 AM, Krishna Kurapati wrote:
<blockquote type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt \
0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Hi, <div><br>
</div>
<div>The iPhone client, when it goes into background, can only
respond to incoming messages.</div>
<div>That makes the Registration expire when there is no
communication from the server before</div>
<div>the expire time. I could make the Registration not expire
at all. Not sure it's the only option.</div>
<div><br>
</div>
<div>Is there a way to send a Ping message from server
periodically to the iPhone SIP client. This</div>
<div>will wakeup the SIP client and resend REGISTER message.</div>
<div><br>
</div>
</blockquote>
</div>
</blockquote></div></div>
you can set the nat_bflag (see usrloc module) to mark the
registration as being natted. Then use nathelper module mark it to
send OPTIONS ping (sipping_bflag parameter).<br>
<br>
<a href="http://kamailio.org/docs/modules/stable/modules_k/usrloc.html" \
target="_blank">http://kamailio.org/docs/modules/stable/modules_k/usrloc.html</a><br> \
<a href="http://kamailio.org/docs/modules/stable/modules_k/nathelper.html" \
target="_blank">http://kamailio.org/docs/modules/stable/modules_k/nathelper.html</a><br>
<br>
Cheers,<br>
Daniel<br><font color="#888888">
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" \
target="_blank">http://www.asipto.com</a> Kamailio Advanced Training, Oct 10-13, \
Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a> \
<a href="http://linkedin.com/in/miconda" \
target="_blank">http://linkedin.com/in/miconda</a> -- <a \
href="http://twitter.com/miconda" \
target="_blank">http://twitter.com/miconda</a></pre> </font></div>
</blockquote></div><br></div>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic