diff options
author | Richard Mudgett <rmudgett@digium.com> | 2016-05-25 18:30:07 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-05-26 13:55:17 -0500 |
commit | 7d44d12816ce46c742a5a621e400344d025bb007 (patch) | |
tree | f32728f5f29f1f6221f9068505e30a6782537b73 | |
parent | a6b16d7029a7a44c6a43b3b0f1cbc74cecd11454 (diff) |
pjsip_distributor.c: Use correct rdata info access method.
The pjproject doxygen for rdata->msg_info.info says to call
pjsip_rx_data_get_info() instead of accessing the struct member directly.
You need to call the function mostly because the function will generate
the struct member value if it is not already setup.
Change-Id: Iafe8b01242b7deb0ebfdc36685e21374a43936d2
-rw-r--r-- | res/res_pjsip/pjsip_distributor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_pjsip/pjsip_distributor.c b/res/res_pjsip/pjsip_distributor.c index 2ab954eb0..0d3df06f0 100644 --- a/res/res_pjsip/pjsip_distributor.c +++ b/res/res_pjsip/pjsip_distributor.c @@ -257,7 +257,8 @@ static pjsip_dialog *find_dialog(pjsip_rx_data *rdata) tsx = pjsip_tsx_layer_find_tsx(&tsx_key, PJ_TRUE); if (!tsx) { - ast_debug(3, "Could not find matching transaction for %s\n", rdata->msg_info.info); + ast_debug(3, "Could not find matching transaction for %s\n", + pjsip_rx_data_get_info(rdata)); return NULL; } |