[SR-Users] iOS push notification using Kamailio

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 2 10:42:31 CET 2012


Hello,

On 3/2/12 2:28 AM, Krishna Kurapati wrote:
> Hi,
>
> I have been looking at the usrloc module's source code to see how the 
> uuid that is sent in +sip.instance parameter
> in the Contact header. Apparently, the module ensures that only one 
> contact per uuid exists. However the uuid
> is not stored in the database.
>
> The reason I need the uuid in the database is to access it when the 
> iOS device is offline inorder to send a push notification.
> I am using pjsip which supports sending the uuid of the device ( w/ 
> rfc 5626 support) in the REGISTER message.
>
> Has anyone implemented push notification using this or other methods 
> using Kamailio?
the modules_s/usrloc keeps the sip instance in db, support k version is 
planned for next major release (either merge with s version and a new 
one combining most of the features, while keeping existing ones for safety).

However, if I got it right, it does not help storing the uuid in 
location table, because you want it for the case when the device is 
offline -- that means there is no location record for it. What you need 
is a separate table mapping uuid to the user, and you can build that 
using htable or sqlops.

You can receive the +sip.instance parameter from contact with 
transformations:

$(hdr(Contact){tobody.params}{param.value, +sip.instance})

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120302/3f919d4e/attachment.htm>


More information about the sr-users mailing list