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 

<key>UIBackgroundModes</key> settings in the info.plist file for the app?

http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html

This should enable the app to be woken up when necessary by iOS, may avoid you having to code around it.

Neill...;o)
Aeonvista Ltd
Opening Up New Ideas


On 24 July 2012 04:55, Duong Manh Truong <ngoahotanglongbk@gmail.com> wrote:
Hi list, 

My team are developing a SIP client for mobile running iOS , 

then having to deal with the "back ground mode" problem while this soft is installed on mobiles

One of the solutions is using APNS. (Apple Push Notification Service)

I wanna to use Kamailio as SIP Redirect / Proxy for my current SIP server 

The model is like that:

User A <---------> Kamailio  <---------> SIP server <--------> User B

IF UserA call UserB, UserB is not available now (not registered yet), normally, SIP server will reply Kamailio with "404 Not found"

In that case, i want to set up Kamailio do the communication with APNS and waiting  for UserB "Wake up" then RESEND the Invite message ......
(instead of forwarding this 404 message to UserA)

I am getting stuck at how Kamailio can control "404 Not found" message which it receives from SIP server .

I do searching around several days but still can not get any clearer points. 

Please help me with some instruction/ configuration of Kamailio for this case ! 

Thank you very much. 





_______________________________________________
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