Are you doing this because your SIP client is sleeping on the device? If so did you set the properties for the application to change the background mode for VoIP apps, the 







<p class="p1"><span class="s1">&lt;key&gt;</span>UIBackgroundModes<span class="s1">&lt;/key&gt; settings in the info.plist file for the app?</span></p><p class="p1"><span class="s1"><a href="http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html">http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html</a></span></p>

<p class="p1"><span class="s1">This should enable the app to be woken up when necessary by iOS, may avoid you having to code around it.</span></p>Neill...;o)<br>Aeonvista Ltd<br>Opening Up New Ideas<br>
<br><br><div class="gmail_quote">On 24 July 2012 04:55, Duong Manh Truong <span dir="ltr">&lt;<a href="mailto:ngoahotanglongbk@gmail.com" target="_blank">ngoahotanglongbk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi list, <div><br></div><div>My team are developing a SIP client for mobile running iOS , </div><div><br></div><div>then having to deal with the &quot;back ground mode&quot; problem while this soft is installed on mobiles</div>


<div><br></div><div>One of the solutions is using APNS. (Apple Push Notification Service)</div><div><br></div><div>I wanna to use Kamailio as SIP Redirect / Proxy for my current SIP server </div><div><br></div><div>The model is like that:</div>


<div><br></div><div>User A &lt;---------&gt; Kamailio  &lt;---------&gt; SIP server &lt;--------&gt; User B</div><div><br></div><div>IF UserA call UserB, UserB is not available now (not registered yet), normally, SIP server will reply Kamailio with &quot;404 Not found&quot;</div>


<div><br></div><div>In that case, i want to set up Kamailio do the communication with APNS and waiting  for UserB &quot;Wake up&quot; then RESEND the Invite message ......</div><div>(instead of forwarding this 404 message to UserA)</div>


<div><br></div><div>I am getting stuck at how Kamailio can control &quot;404 Not found&quot; message which it receives from SIP server .</div><div><br></div><div>I do searching around several days but still can not get any clearer points. </div>


<div><br></div><div>Please help me with some instruction/ configuration of Kamailio for this case ! </div><div><br></div><div>Thank you very much. </div><div><br></div><div><br></div><div><br></div><div><br></div>
<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></blockquote></div><br>