seconds = 1; // use as flag later to invoked timed wait
}
- if( ep != NULL ) {
+ if( ep == NULL ) {
mbuf = mtosend_msg( ctx, mbuf, 0 ); // use internal function so as not to strip call-id; should be nil on success!
} else {
mbuf = send_msg( ctx, mbuf, ep->nn_sock, -1 );