I've tested saving and restoring sessions in db. My scenario:
1. A calls B via B2B.
2. B answers.
3. I restart opensips.
4. I check b2b sessions (opensipsctl fifo b2b_list), they're restored ok.
5. B hangs up.
In BYE there are no "display name" in To: hdr.
Without restart To: in BYE after B2B:
To: "11234567890" <sip:11234567890@example.domain.com>;tag=468cecec7a7a2c9123491b573ae2ec24
With restart To: in BYE after B2B:
To: <sip:11234567890@example.domain.com>;tag=468cecec7a7a2c9123491b573ae2ec24
Hi Nick - you mean in the BYE from b2b to A, right ?
Yes, it is. In this case it's BYE from B to A.
But if A hangs up, it may be BYE from A to B.
It doesn't mean.
If BYE goes after opensips restart, it loses "display name".
Hi Nick,
Indeed the display names were not restored from database. This small commit fixes the bug - http://opensips.svn.sourceforge.net/viewvc/opensips?view=revision&revision=9110.
Regards,
Anca