< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
Hi Scott, Hope you are doing good. Thanks for your previous suggestion. I’m facing another issue while enhancing my application. I have tried to integrate StackThread class in my application by referring stack/test/testStack hxx and cxx files with some minor configuration changes in transport ports. I have taken two SipStack pointers each for receiving, sending and assigned 2271 as receiving port and 2272 as sending port. When i make a call, I'm receiving the message to application and able to process successfully. But when i'm trying to send new request from application, i'm getting this below error ERR | 20170712-134943.117 | | RESIP | 140053664692192 | DataParameter.cxx:91 | Accessing defaulted DataParameter: 'tag' B2BServer: DataParameter.cxx:93: virtual std::ostream& resip::DataParameter::encode(std::ostream&) const: Assertion `!mValue.empty()' failed. When i debugged this i got to know this error is for headerEnum 11, which is of Contact header. Though it is of NameAddr type, tag is not mandatory parameter for Contact right? I'm providing complete output in the attached file ‘Stack_Error2.txt’ . Can you suggest some clue to resolve my issue if i'm doing anything wrong. Can we use same SipStack pointer with only one transport to send and receive sip messages which are out of transaction? Also I have few queries in StackThread class. As per your previous comment, process() should be in loop, i couldn't find explicit while or for loop in the file. Does these statements runs in loop? receiver->process(fdset); sender->process(fdset); Could you explain how its working? Thanks & Regards, LavanyaKumar S +91 9603323366 From: slgodin@xxxxxxxxx [mailto:slgodin@xxxxxxxxx] On Behalf Of Scott Godin You need to process in a loop. Check out stack/test/testStack and other programs in the test directory. You can use StackThread class to help. There is also info on the wiki for this: http://www.resiprocate.org/DUM_Threading Just ignore the DUM parts of the wiki page. Good luck, Scott On Wed, Jun 28, 2017 at 3:57 AM, LavanyaKumar <lavanyakumar.s@xxxxxxxxxxx> wrote:
|
STACK | 20170712-134943.117 | | RESIP:TRANSACTION | 140053664692192 | TransactionState.cxx:168 | No matching transaction for SipReq: INVITE 1.1.5695103.en-fe@10.10.30.111:5060 tid=3109c40dea274075 cseq=1 INVITE contact=SonetelPBX@49.57.50.46:30029 / 1 from(tu) STACK | 20170712-134943.117 | | RESIP:TRANSACTION | 140053664692192 | TransactionState.cxx:68 | Creating new TransactionState: tid=3109c40dea274075 [ ClientInvite/Calling reliable target=[ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target domain=unspecified mFlowKey=0 ]] STACK | 20170712-134943.117 | | RESIP:TRANSACTION | 140053664692192 | TransactionState.cxx:1149 | TransactionState::processClientInvite: SipReq: INVITE 1.1.5695103.en-fe@10.10.30.111:5060 tid=3109c40dea274075 cseq=1 INVITE contact=SonetelPBX@49.57.50.46:30029 / 1 from(tu) tid=3109c40dea274075 [ ClientInvite/Calling reliable target=[ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target domain=unspecified mFlowKey=0 ]] DEBUG | 20170712-134943.117 | | RESIP:TRANSACTION | 140053664692192 | TimerQueue.cxx:50 | Adding timer: Timer B tid=3109c40dea274075 ms=32000 STACK | 20170712-134943.117 | | RESIP:TRANSACTION | 140053664692192 | TransactionState.cxx:2511 | sendToWire with no dns result: tid=3109c40dea274075 [ ClientInvite/Calling reliable target=[ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target domain=unspecified mFlowKey=0 ]] DEBUG | 20170712-134943.117 | | RESIP:TRANSPORT | 140053664692192 | TransportSelector.cxx:463 | Looking up dns entries (from route) for sip:10.10.30.113:30029 DEBUG | 20170712-134943.117 | | RESIP:DNS | 140053664692192 | DnsResult.cxx:249 | DnsResult::lookup sip:10.10.30.113:30029 DEBUG | 20170712-134943.117 | | RESIP:DNS | 140053664692192 | DnsResult.cxx:471 | Numeric result so return immediately: [ V4 10.10.30.113:30029 UDP target domain=10.10.30.113 mFlowKey=0 ] STACK | 20170712-134943.117 | | RESIP:TRANSACTION | 140053664692192 | TransactionState.cxx:723 | Found matching transaction for Client DnsResultMessage: tid=3109c40dea274075 -> tid=3109c40dea274075 [ ClientInvite/Calling reliable target=[ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target domain=unspecified mFlowKey=0 ]] STACK | 20170712-134943.117 | | RESIP:TRANSACTION | 140053664692192 | TransactionState.cxx:1149 | TransactionState::processClientInvite: Client DnsResultMessage: tid=3109c40dea274075 tid=3109c40dea274075 [ ClientInvite/Calling reliable target=[ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target domain=unspecified mFlowKey=0 ]] STACK | 20170712-134943.117 | | RESIP:TRANSACTION | 140053664692192 | TransactionState.cxx:2350 | tid=3109c40dea274075 [ ClientInvite/Calling reliable target=[ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target domain=unspecified mFlowKey=0 ]] got DNS result: 10.10.30.113 --> [[ V4 10.10.30.113:30029 UDP target domain=10.10.30.113 mFlowKey=0 ]] STACK | 20170712-134943.117 | | RESIP:DNS | 140053664692192 | DnsResult.cxx:228 | Returning next dns entry: [ V4 10.10.30.113:30029 UDP target domain=10.10.30.113 mFlowKey=0 ] STACK | 20170712-134943.117 | | RESIP:TRANSACTION | 140053664692192 | TransactionState.cxx:2395 | Unreliable transport: tid=3109c40dea274075 [ ClientInvite/Calling unreliable target=[ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target domain=unspecified mFlowKey=0 ]] DEBUG | 20170712-134943.117 | | RESIP:TRANSACTION | 140053664692192 | TimerQueue.cxx:50 | Adding timer: Timer A tid=3109c40dea274075 ms=500 DEBUG | 20170712-134943.117 | | RESIP:TRANSPORT | 140053664692192 | TransportSelector.cxx:1376 | findTransportBySource([ V4 192.168.2.106:2272 UDP target domain=unspecified mFlowKey=0 ]) DEBUG | 20170712-134943.117 | | RESIP:TRANSPORT | 140053664692192 | TransportSelector.cxx:1390 | should port be ignored: 0 DEBUG | 20170712-134943.117 | | RESIP:TRANSPORT | 140053664692192 | TransportSelector.cxx:1419 | findTransport (any interface) => Transport: [ V4 0.0.0.0:2272 UDP target domain=unspecified mFlowKey=54 ] ERR | 20170712-134943.117 | | RESIP | 140053664692192 | DataParameter.cxx:91 | Accessing defaulted DataParameter: 'tag' B2BServer: DataParameter.cxx:93: virtual std::ostream& resip::DataParameter::encode(std::ostream&) const: Assertion `!mValue.empty()' failed. Aborted (core dumped)