[#1787] For those cases where no registered SIP account is configured

on the PBX, the program was failing to start because it couldn't get a
pointer to the audiortp thread in order to start it.
This commit is contained in:
pierre-luc
2009-07-07 10:40:50 -04:00
parent c6bb1aeea1
commit 09859ec510

View File

@ -2091,8 +2091,8 @@ void call_on_media_update (pjsip_inv_session *inv, pj_status_t status)
// Set remote ip / port
call->getLocalSDP()->set_media_transport_info_from_remote_sdp (remote_sdp);
link = dynamic_cast<SIPVoIPLink *> (Manager::instance().getSIPAccountLink());
link = dynamic_cast<SIPVoIPLink *> (Manager::instance().getAccountLink(AccountNULL));
if(link == NULL) {
_debug ("Failed to get sip link\n");
return;