Valued Colleagues,
Can anyone tell me what is scope of the "flags" used in ser.cfg?
When I do a "setflag(3)", is it valid throughout a :
- Transaction?
- Dialogue?
- Call?
I do a "setflag(3)" when I receive an INVITE and expect the flag 3 to
be set when I receive the associated BYE. However, when I do an
"isflagset(3)" when I receive the BYE, the flag is not set?!
Can someone tell me why?!
Thanks
ramin
Flags are valid within a transaction only.
There are also global flags (always valid) (module gflags).
If you want to store data between different transactions (within a dialog) you can store it as parameter within the record-route header. openser has some nice functions to handle this (http://openser.org/docs/modules/0.10.x/rr) but I think you can do it also with ser, but not that comfortable.
Note: Do not put confidential into Record-Route headers. Everybody can read them and manipulate them
regards klaus
Ramin Nikaeen wrote:
Valued Colleagues,
Can anyone tell me what is scope of the “flags” used in ser.cfg?
When I do a “setflag(3)”, is it valid throughout a :
Transaction?
Dialogue?
Call?
I do a “setflag(3)” when I receive an INVITE and expect the flag 3 to
be set when I receive the associated BYE. However, when I do an
“isflagset(3)” when I receive the BYE, the flag is not set?!
Can someone tell me why?!
Thanks
ramin
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
The scope of the flags is per SIP message.
Daniel
On 10/24/05 19:02, Ramin Nikaeen wrote:
Valued Colleagues,
Can anyone tell me what is scope of the “flags” used in ser.cfg?
When I do a “setflag(3)”, is it valid throughout a :
Transaction?
Dialogue?
Call?
I do a “setflag(3)” when I receive an INVITE and expect the flag 3 to
be set when I receive the associated BYE. However, when I do an
“isflagset(3)” when I receive the BYE, the flag is not set?!
Can someone tell me why?!
Thanks
ramin
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers