Closed ujavaid1985 closed 5 years ago
pjsip4net uses method pjsua_call_xfer
under the hood:
https://github.com/siniypin/pjsip4net/blob/master/pjsip.Interop/ApiProviders/CallApiProvider_1_4.cs#L87
Can you give it a try (example: https://gist.github.com/siniypin/7504504)?
Is this what you're asking about: https://www.pjsip.org/docs/latest-1/pjsip/docs/html/structpjsua__msg__data.htm#a7f6eec84a1979de17f5f60125fc20c2a ?
Checkout this example: https://github.com/chakrit/pjsip/blob/master/pjsip-apps/src/pjsua/pjsua_app.c#L156
Is this what you're asking about: https://www.pjsip.org/docs/latest-1/pjsip/docs/html/structpjsua__msg__data.htm#a7f6eec84a1979de17f5f60125fc20c2a ?
Checkout this example: https://github.com/chakrit/pjsip/blob/master/pjsip-apps/src/pjsua/pjsua_app.c#L156
Thanks for your reply. I have already tried transfer its working fine.
I want to send msg_data from C# code but unable to send it right. I can send msg_body but can't send hdr_list right. Can you please provide one C# example code, how can we do it. I have already posted the example above people doing it in Java and a piece of code I am trying.
C# sample code to pass msg_data information in pjsua_call_hangup will be highly appreciated.
Thanks, Usman
Describe the bug I want to sending Call Redirection (3xx) Response in PJSUA-LIB. I have read the articles and its easy step; just use pjsua_call_hangup() and give the new targets in Contact header in msg_data parameter. I want to send msg_data from C# code but unable to send it right. I can send msg_body but can't send hdr_list right.
Sample Java Code Following is the code people used in java to send header
My Code I
Help Needed I need a sample code which I can use to add correct header. I believe I am doing something wrong in this code which is not a proper way to pass. Can you please provide me right sample code to add header in it. Note: I will not send msg_body in the actual packet, I just passed to confirm body is changing but headers are not.