[reSIProcate] dum.addTransport not thread safe

Hong Yu hyu at metreos.com
Thu Feb 23 15:09:33 CST 2006


DialogUsageManager::addTransport calls SipStack::addTransport directly.
If DUM and SipStack run in two separate threads, there is possibility
that SipStack starts selecting on newly added transport before the
transport is ready (i.e. before bind returns). 

What's the best way to have addTransport executed within SipStack's
thread? I'm thinking about posting an ApplicationMessage to SipStack's
Fifo queue. But I haven't been able to figure out how to use
ApplicationMessage yet. Any insight on this is appreciated.


Hong





More information about the resiprocate-devel mailing list