Commit ef005a20 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

sipvoiplink : don't crash on transfers

parent d21cfd4e
......@@ -3339,7 +3339,6 @@ void transfer_client_cb (pjsip_evsub *sub, pjsip_event *event)
* On incoming NOTIFY, notify application about call transfer progress.
pjsip_status_line status_line;
......@@ -3355,15 +3354,16 @@ void transfer_client_cb (pjsip_evsub *sub, pjsip_event *event)
/* Application is not interested with call progress status */
if (!link or !event) {
_warn ("UserAgent: Either link or event is empty in transfer callback");
if (!link or !event)
pjsip_rx_data* r_data = event->body.rx_msg.rdata;
if (!r_data)
std::string request = pjsip_rx_data_get_info (r_data);
pjsip_status_line status_line;
/* This better be a NOTIFY request */
if (r_data->msg_info.msg-> == PJSIP_OTHER_METHOD and
request.find ("NOTIFY") != std::string::npos) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment