[pjsip] Regarding Make Audio Call iOS
claudel at gmail.com
Tue Apr 26 04:11:03 EDT 2016
I believe that the user data is to be used locally only, that data is not
sent to the other party, but is associated with your local call so you can
access it later.
If you want to send arbitrary data to the other party, you could do that
using SIP INFO I believe, at least that is what worked for me.
In order to do that, you'll need to use pjsua_call_send_request on the
sender side and on the receiver side monitor the on_call_tsx_state
callback for INFO events, see the pjsua sample at line 340 .
On Tue, Apr 26, 2016 at 9:54 AM, Prem Sagar Tiwari <prem.sagar at medma.in>
> pjsua_call_make_call(pjsua_acc_id acc_id,
> const pj_str_t *dst_uri,
> const pjsua_call_setting *opt,
> void *user_data,
> const pjsua_msg_data *msg_data,
> pjsua_call_id *p_call_id)
> How can I get user data at incoming call receiver's end? I am sending user
> data by calling function below:
> status = pjsua_call_make_call(_acc_id, &uri, 0, (__bridge void *)(rating),
> NULL, NULL);
> if (status != PJ_SUCCESS) error_exit("Error making call", status);
> I am sending "(__bridge void *)(rating)" as user data and want to receive
> at incoming call receiver's end. How? Kindly reply?
> Thanks & Regards
> Prem Sagar Tiwari
> Software Engineer
> Medma Infomatix (P) Ltd.
> Email - prem.sagar at medma.in
> URL - www.medma.net
> "DO THE IMPOSSIBLE"
> The information contained in this message (including any attachments) is
> intended for the sole use of the intended recipients and is confidential &
> may be privileged. If you have received it by mistake please notify the
> sender by return e-mail and permanently delete this message and any
> attachments from your system. Any dissemination, use, review, distribution,
> printing or copying of this message in whole or in part is strictly
> prohibited. Please note that e-mails are susceptible to change. MEDMA
> INFOMATIX PVT LTD shall not be liable for the improper or incomplete
> transmission of the information contained in this communication nor for any
> delay in its receipt or damage to your system.
> MEDMA INFOMATIX PVT LTD does not guarantee that the integrity of this
> communication has been maintained or that this communication is free of
> viruses, interceptions or interferences.
> Visit our blog: http://blog.pjsip.org
> pjsip mailing list
> pjsip at lists.pjsip.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pjsip