In function send_raw_resolver_callback:
if (sraw_data->app_cb) {
(*sraw_data->app_cb)(sraw_data->app_token, sraw_data->tdata,
-status);
}
but
if (status == PJ_SUCCESS) {
(*sraw_data->app_cb)(sraw_data->app_token, sraw_data->tdata,
data_len);
} else if (status != PJ_EPENDING) {
(*sraw_data->app_cb)(sraw_data->app_token, sraw_data->tdata,
-status);
}
without if (sraw_data->app_cb) {...}
This function call from pjsip_endpt_send_raw_to_uri with the _optional_
argument "cb".
If cb=NULL, sraw_data->app_cb=NULL.
Oleg.
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org