mncc: mncc_create_remote_leg: use mncc_write instead of write direct to the fd
Change-Id: I870c16d7ee5e5424304f3c1c9fb78af418ae2577
This commit is contained in:
parent
0f27b1bd39
commit
1bd26902d2
|
@ -922,11 +922,10 @@ int mncc_create_remote_leg(struct mncc_connection *conn, struct call *call)
|
||||||
* - Screening, redirect?
|
* - Screening, redirect?
|
||||||
* - Synth. the bearer caps based on codecs?
|
* - Synth. the bearer caps based on codecs?
|
||||||
*/
|
*/
|
||||||
rc = write(conn->fd.fd, &mncc, sizeof(mncc));
|
rc = mncc_write(conn, &mncc);
|
||||||
if (rc != sizeof(mncc)) {
|
if (rc != sizeof(mncc)) {
|
||||||
LOGP(DMNCC, LOGL_ERROR, "Failed to send message leg(%u)\n",
|
LOGP(DMNCC, LOGL_ERROR, "Failed to send message leg(%u)\n",
|
||||||
leg->callref);
|
leg->callref);
|
||||||
close_connection(conn);
|
|
||||||
talloc_free(leg);
|
talloc_free(leg);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue