[reSIProcate] Issue with getRandomHex()
Hi,
I ran into an issue with DUM generating same transaction id several times when my b2bua is handling multiple simultaneous calls.
I'm using DialogUsageManager::makeInviteSession() which generates a proper branch parameter for the outgoing call but when it's time to send them down to the stack the branch parameter is set again by DialogUsageManager::send() (line 1036 or so), but same value gets reused for all calls. As a result, only the first call gets out of my gateway, all other subsequent calls are considered bad and eventually get dropped by TransactionState.
Here is the line that I'm finding in log files.
2014-04-30T15:12:27.854-04:00 Warning - B2BUA TU sent us a duplicate INVITE: fix this!
My knowledge of srandom and random is rather limited but I trust after giving it a seed, then it should always hand off unique values?
Any Ideas what I'm doing wrong?
Best Regards,
-Yannick Guay