VoIPGRID / VialerSIPLib

An Objective-c wrapper for PJSIP
GNU General Public License v3.0
133 stars 69 forks source link

lastCallForAccount return nil #244

Closed fukemy closed 3 years ago

fukemy commented 3 years ago

Version

lasted

File / Feature

no file

Expected behavior

find last call

Actual behavior

return nil

Stacktrace / Error message

VSLLogWarning(@"Could not find a call with if %d.", call_id);

Other info

i created a call like:

let call = VSLCall(inboundCallWith: callObj.uuid, number: callObj.CallerDisplay ?? UNKNOWN, name: callObj.CallerDisplay ?? UNKNOWN)!
            VialerSIPLib.sharedInstance().callManager.add(call)

but when get a call, the method

VSLCall *call = [callManager lastCallForAccount:account];

return nil, can u help?

fukemy commented 3 years ago

ok i found that i need to set account to call.