Re: [SR-Users] Kamailio with APNS

2012-08-07 Thread Duong Manh Truong
As your first solution with UAC module: "As a plan B we instead opted for sending via uac module the invite to an oversip instance (it's open-source since a week or two), which triggers an HTTP request towards APNS, and on kamailio check with inv-timers every few seconds whether the client came on

Re: [SR-Users] Kamailio with APNS

2012-07-29 Thread Duong Manh Truong
Thank Klaus, I've try with t_suspend() and t_continue() as your guide, *#Failure route to react with negative messages failure_route[1] { if (t_check_status("5[0-9][2-9]")) { if(t_suspend()) { xlog("proceesing suspended in trasaction [$T(id_index):$T(id_label)]\n");

Re: [SR-Users] Kamailio with APNS

2012-07-24 Thread Klaus Darilion
On 24.07.2012 16:32, Andreas Granig wrote: Hi, On 07/24/2012 03:53 PM, Klaus Darilion wrote: In the failure route check if the reply code is 404 and if yes, trigger the APNS logic and then put the call e.g. on a stack and resume e.g. every second and ofrward to the "SIP server" again to see i

Re: [SR-Users] Kamailio with APNS

2012-07-24 Thread Andreas Granig
Hi, On 07/24/2012 03:53 PM, Klaus Darilion wrote: > In the failure route check if the reply code is 404 and if yes, trigger > the APNS logic and then put the call e.g. on a stack and resume e.g. > every second and ofrward to the "SIP server" again to see if the client > is registered meanwhile. >

Re: [SR-Users] Kamailio with APNS

2012-07-24 Thread Klaus Darilion
Hi! You have to use a failure route (http://kamailio.org/docs/modules/3.3.x/modules/tm.html#t_on_failure). In the failure route check if the reply code is 404 and if yes, trigger the APNS logic and then put the call e.g. on a stack and resume e.g. every second and ofrward to the "SIP server"

Re: [SR-Users] Kamailio with APNS

2012-07-24 Thread Neill Wilkinson
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 UIBackgroundModes settings in the info.plist file for the app? http://developer.apple.com/library/ios/#documentation/general/

Re: [SR-Users] Kamailio with APNS

2012-07-24 Thread Nguyen Thanh Tien
I think you can find the 404 message at the onreply_route[]. I tried and found the 200 OK here. ___ 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/l

[SR-Users] Kamailio with APNS

2012-07-23 Thread Duong Manh Truong
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 curr