[SR-Users] Saving and extracting contact header
Daniel-Constantin Mierla
miconda at gmail.com
Mon Aug 1 12:10:49 CEST 2016
Depending on the position you add, it can be Contact URI parameter or
Contact header parameter -- maybe you can give an example and then I can
see if it is uri or header parameter.
Cheers,
Daniel
On 01/08/16 07:46, Nahum Nir wrote:
>
> I added costume field to the contact header
>
>
> On 1 Aug 2016 8:36 a.m., "Daniel-Constantin Mierla" <miconda at gmail.com
> <mailto:miconda at gmail.com>> wrote:
>
> Hello,
>
> is it header parameter or uri parameter in Contact?
>
> Cheers,
> Daniel
>
>
> On 01/08/16 07:33, Nahum Nir wrote:
>>
>> Hi Daniel,
>>
>> I added the device token, or ID to the contact header so the
>> script will be able to the the push.
>>
>> Thanks,
>> Nahum
>>
>>
>> On 1 Aug 2016 8:28 a.m., "Daniel-Constantin Mierla"
>> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>>
>> Hello,
>>
>>
>> On 25/07/16 12:21, Nahum Nir wrote:
>> > Hello,
>> >
>> > I am quite a newbe in Kamailio scripts and further to my
>> effort to
>> > implement push notification, I am adding to the contact
>> header device ID.
>> >
>> > I have two problems:
>> > 1. When the register of the callee expires Kamailio frees
>> the record
>> > so the information on the calle is not available.
>> > 2. Even when the callee is registered I do not how to
>> access the
>> > contact field. Tried reg_fetch_contacts(...,"callee") and
>> there is a
>> > lot of info but not the contact header.
>> >
>> >
>> what do you mean by contact header device ID?
>>
>> The address in Contact header of REGISTER is in addr attribute.
>>
>> Cheers,
>> Daniel
>>
>> --
>> Daniel-Constantin Mierla
>> http://www.asipto.com - http://www.kamailio.org
>> http://twitter.com/#!/miconda
>> <http://twitter.com/#%21/miconda> -
>> http://www.linkedin.com/in/miconda
>>
>
> --
> Daniel-Constantin Mierla
> http://www.asipto.com - http://www.kamailio.org
> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
>
--
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160801/77877db4/attachment.html>
More information about the sr-users
mailing list