Hi,
Is it possible to update any SIP Header (i.e. User-Agent) value before it saving to “location” database? If yes, please help me with sample config.
For example: User-Agent value always save as "arif" in location database.
Thanks in advance, ARIF
arif.zaman schrieb:
Hi,
Is it possible to update any SIP Header (i.e. User-Agent) value before it saving to “location” database? If yes, please help me with sample config.
No. save() uses the values of the received SIP message, thus, changes to the header before save() are not visible to save.
What for do you need this? MAybe you can use the flags instead.
regards klaus
For example: User-Agent value always save as "arif" in location database.
Thanks in advance, ARIF
Klaus Darilion-2 wrote:
What for do you need this? MAybe you can use the flags instead.
For some security reason i do like to implement this feature. Could you please send me details how flag will help in this scenario?
Thanks, ARIF
http://www.kamailio.org/dokuwiki/doku.php/utils:flags
Flags will be saved during save() and restored during lookup()
regards klaus
arif.zaman schrieb:
Klaus Darilion-2 wrote:
What for do you need this? MAybe you can use the flags instead.
For some security reason i do like to implement this feature. Could you please send me details how flag will help in this scenario?
Thanks, ARIF
Klaus Darilion schrieb:
http://www.kamailio.org/dokuwiki/doku.php/utils:flags
Flags will be saved during save() and restored during lookup()
Correction: only branch flags (also called bflags or contact flags) are saved/restored
regards klaus
regards klaus
arif.zaman schrieb:
Klaus Darilion-2 wrote:
What for do you need this? MAybe you can use the flags instead.
For some security reason i do like to implement this feature. Could you please send me details how flag will help in this scenario?
Thanks, ARIF
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
Klaus Darilion-2 wrote:
Klaus Darilion schrieb:
http://www.kamailio.org/dokuwiki/doku.php/utils:flags
Flags will be saved during save() and restored during lookup()
Correction: only branch flags (also called bflags or contact flags) are saved/restored
I'm not sure about bflags. Is it possible to change user-agent value before saving it to database using branch flags?
Thanks, ARIF
arif.zaman schrieb:
Klaus Darilion-2 wrote:
Klaus Darilion schrieb:
http://www.kamailio.org/dokuwiki/doku.php/utils:flags
Flags will be saved during save() and restored during lookup()
Correction: only branch flags (also called bflags or contact flags) are saved/restored
I'm not sure about bflags. Is it possible to change user-agent value before saving it to database using branch flags?
No. As I said it is not possible.
klaus
Klaus Darilion-2 wrote:
No. As I said it is not possible.
Thanks Klaus for your clarification! ARIF