486 |
486 |
if (conn->calling_addr.presence)
|
487 |
487 |
xua_msg_add_sccp_addr(xua, SUA_IEI_SRC_ADDR, &conn->calling_addr);
|
488 |
488 |
/* optional: hop count; importance; priority; credit */
|
489 |
|
if (prim && msgb_l2(prim->oph.msg))
|
|
489 |
if (prim && msgb_l2(prim->oph.msg) && msgb_l2len(prim->oph.msg))
|
490 |
490 |
xua_msg_add_data(xua, SUA_IEI_DATA, msgb_l2len(prim->oph.msg),
|
491 |
491 |
msgb_l2(prim->oph.msg));
|
492 |
492 |
break;
|
... | ... | |
506 |
506 |
* parameter */
|
507 |
507 |
if (conn->calling_addr.presence)
|
508 |
508 |
xua_msg_add_sccp_addr(xua, SUA_IEI_DEST_ADDR, &conn->calling_addr);
|
509 |
|
if (prim && msgb_l2(prim->oph.msg))
|
|
509 |
if (prim && msgb_l2(prim->oph.msg) && msgb_l2len(prim->oph.msg))
|
510 |
510 |
xua_msg_add_data(xua, SUA_IEI_DATA, msgb_l2len(prim->oph.msg),
|
511 |
511 |
msgb_l2(prim->oph.msg));
|
512 |
512 |
break;
|
... | ... | |
519 |
519 |
xua_msg_add_u32(xua, SUA_IEI_SRC_REF, conn->conn_id);
|
520 |
520 |
xua_msg_add_u32(xua, SUA_IEI_CAUSE, SUA_CAUSE_T_RELEASE | prim->u.disconnect.cause);
|
521 |
521 |
/* optional: importance */
|
522 |
|
if (msgb_l2(prim->oph.msg))
|
|
522 |
if (prim && msgb_l2(prim->oph.msg) && msgb_l2len(prim->oph.msg))
|
523 |
523 |
xua_msg_add_data(xua, SUA_IEI_DATA, msgb_l2len(prim->oph.msg),
|
524 |
524 |
msgb_l2(prim->oph.msg));
|
525 |
525 |
break;
|
... | ... | |
563 |
563 |
xua_msg_add_sccp_addr(xua, SUA_IEI_DEST_ADDR, &conn->calling_addr);
|
564 |
564 |
/* optional: importance */
|
565 |
565 |
/* optional: data */
|
566 |
|
if (prim && msgb_l2(prim->oph.msg))
|
|
566 |
if (prim && msgb_l2(prim->oph.msg) && msgb_l2len(prim->oph.msg))
|
567 |
567 |
xua_msg_add_data(xua, SUA_IEI_DATA, msgb_l2len(prim->oph.msg),
|
568 |
568 |
msgb_l2(prim->oph.msg));
|
569 |
569 |
break;
|