I am planning to create swift SDK using PJSIP. I have created XCPjsua.h file and XCPjsua.c file. I am interacting with XCPjsua.c file using XCPjsua.h header file and I have below methods
int startPjsip(char *sipUser, char* sipDomain);
/**
* Make VoIP call.
* @param destUri the uri of the receiver, something like "sip:192.168.43.106:5080";
*/
2. void makeCall(char* destUri);
3. void endCall();
From my .swift class I can import XCPjsua.h and I can call startPjsip(), makeCall(), endCall() methods. Is there a way to send delegate callbacks or notifications to swift class from this XCPjsua.c file.
For ex: if I get Incoming call, XCPjsua.c file will receive the incoming call. From XCPjsua.c if I want notify to swift class that "You have received incoming call" how can I do that?