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.
+91-522-4923472
Email - prem.sagar@medma.in
URL - www.medma.net
"DO THE IMPOSSIBLE"
DISCLAIMER:
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.
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[1] on the
sender side and on the receiver side monitor the on_call_tsx_state[2]
callback for INFO events, see the pjsua sample at line 340 [3].
[1]
http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__CALL.htm#ga2bc70969ec7b6c7a63e9f220cd7110d8
[2]
http://www.pjsip.org/pjsip/docs/html/structpjsua__callback.htm#a866ba28b5df01a85ca6ead42ba3a57de
[3] http://www.pjsip.org/pjsip/docs/html/page_pjsip_samples_pjsua.htm
On Tue, Apr 26, 2016 at 9:54 AM, Prem Sagar Tiwari prem.sagar@medma.in
wrote:
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.
+91-522-4923472
Email - prem.sagar@medma.in
URL - www.medma.net
"DO THE IMPOSSIBLE"
DISCLAIMER:
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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org