Daniel-Constantin Mierla writes:
sip_trace() stores the message at the moment of execution, if the avp is not set at that moment, it is not found, thus not used.
There is a flag that can be set and the message is stored at the moment of delivery.
the flags seems to mostly affect only outgoing messages, but i do see also some received replies in the database. in this test i only set the flag at the start of the script and don't call sip_trace() at all.
-- juha