set the span when sending a start request and sigmod is available
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@903 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
c70f0e226c
commit
bd00467c76
|
@ -326,6 +326,9 @@ static ZIO_CHANNEL_REQUEST_FUNCTION(sangoma_boost_channel_request)
|
|||
|
||||
event.calling_number_screening_ind = caller_data->screen;
|
||||
event.calling_number_presentation = caller_data->pres;
|
||||
if (sangoma_boost_data->sigmod) {
|
||||
event.span = span->channels[1]->physical_span_id;
|
||||
}
|
||||
|
||||
OUTBOUND_REQUESTS[r].status = BST_WAITING;
|
||||
OUTBOUND_REQUESTS[r].span = span;
|
||||
|
|
|
@ -368,9 +368,11 @@ sangomabc_event_t *__sangomabc_connection_readp(sangomabc_connection_t *mcon, in
|
|||
|
||||
if (mcon->sigmod) {
|
||||
e = zap_queue_dequeue(mcon->boost_queue);
|
||||
bytes = e->size;
|
||||
memcpy(&mcon->event, e->boostmsg, bytes);
|
||||
zap_safe_free(e);
|
||||
if (e) {
|
||||
bytes = e->size;
|
||||
memcpy(&mcon->event, e->boostmsg, bytes);
|
||||
zap_safe_free(e);
|
||||
}
|
||||
} else {
|
||||
bytes = recvfrom(mcon->socket, &mcon->event, sizeof(mcon->event), MSG_DONTWAIT, (struct sockaddr *) &mcon->local_addr, &fromlen);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue