![]() |
PortSIP VoIP SDK Manual for iOS
16.2
PortSIP features our newest, supported, quality-assured VoIP SDK used by Several hundred companies around the world for easy VoIP application develop and quality-assured code.
|
- (void PortSIPEventDelegate) onReceivedRefer: | (long) | sessionId | |
referId: | (long) | referId | |
to: | (char *) | to | |
from: | (char *) | from | |
referSipMessage: | (char *) | referSipMessage | |
This event will be triggered once receiving a REFER message.
sessionId | The session ID of the call. |
referId | The ID of the REFER message. Pass it to acceptRefer or rejectRefer. |
to | The refer target. |
from | The sender of REFER message. |
referSipMessage | The SIP message of "REFER". Pass it to "acceptRefer" function. |
- (void PortSIPEventDelegate) onReferAccepted: | (long) | sessionId |
This callback will be triggered once remote side calls "acceptRefer" to accept the REFER.
sessionId | The session ID of the call. |
- (void PortSIPEventDelegate) onReferRejected: | (long) | sessionId | |
reason: | (char *) | reason | |
code: | (int) | code | |
This callback will be triggered once remote side calls "rejectRefer" to reject the REFER.
sessionId | The session ID of the call. |
reason | Reason for rejecting. |
code | Rejecting code. |
- (void PortSIPEventDelegate) onTransferTrying: | (long) | sessionId |
When the refer call is being processed, this event will be trigged.
sessionId | The session ID of the call. |
- (void PortSIPEventDelegate) onTransferRinging: | (long) | sessionId |
When the refer call rings, this event will be triggered.
sessionId | The session ID of the call. |
- (void PortSIPEventDelegate) onACTVTransferSuccess: | (long) | sessionId |
When the refer call succeeds, this event will be triggered. ACTV means Active. For example: A starts the call with B, and A transfers B to C. When C accepts the refered call, A will receive this event.
sessionId | The session ID of the call. |
- (void PortSIPEventDelegate) onACTVTransferFailure: | (long) | sessionId | |
reason: | (char *) | reason | |
code: | (int) | code | |
When the refer call fails, this event will be triggered. ACTV means Active. For example: A starts the call with B, and A transfers B to C. When C rejects the refered call, A will receive this event.
sessionId | The session ID of the call. |
reason | The error reason. |
code | The error code. |