Re: [SR-Users] Saving and extracting contact header

2016-08-01 Thread Daniel-Constantin Mierla
That's a header parameter and it is not saved in the location record. You can eventually save it as location attribute via xavp. Alternatively, you can move it to the URI, inside the <...> and then it will be in the addr field after reg_fetch_contacts(). Another option is to use htable to store

Re: [SR-Users] Saving and extracting contact header

2016-08-01 Thread Nahum Nir
Thanks Daniel, REGISTER... Contact: ;; Device-ID=123456789 Cheers, Nir On Mon, Aug 1, 2016 at 1:10 PM, Daniel-Constantin Mierla wrote: > Depending on the position you add, it can be Contact URI parameter or > Contact header parameter -- maybe you can give an

Re: [SR-Users] Saving and extracting contact header

2016-08-01 Thread Daniel-Constantin Mierla
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

Re: [SR-Users] Saving and extracting contact header

2016-07-31 Thread Nahum Nir
I added costume field to the contact header On 1 Aug 2016 8:36 a.m., "Daniel-Constantin Mierla" 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

Re: [SR-Users] Saving and extracting contact header

2016-07-31 Thread Daniel-Constantin Mierla
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.,

Re: [SR-Users] Saving and extracting contact header

2016-07-31 Thread Nahum Nir
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" wrote: > Hello, > > > On 25/07/16 12:21, Nahum Nir wrote: > > Hello, > > > > I am quite a newbe in

Re: [SR-Users] Saving and extracting contact header

2016-07-31 Thread Daniel-Constantin Mierla
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 >

[SR-Users] Saving and extracting contact header

2016-07-25 Thread Nahum Nir
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