One way call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello again

How can i add/modify DPS protocol in SIP message when i creating call? 

in pjsua_call_make_call method is parameter msg_data..


pj_status_t pjsua_call_make_call 
(
pjsua_acc_id 
acc_id, 



const pj_str_t * 
dst_uri, 



unsigned 
options, 



void * 
user_data, 



const pjsua_msg_data * 
msg_data, 



pjsua_call_id * 
p_call_id
 

)



and i suppose this parameter i have to adjust. But how?
when i try:

    pjsua_msg_data msg_data;

    pjsua_msg_data_init( &msg_data );

    pj_str_t hname = pj_str("application/sdp");
    pj_str_t hvalue = pj_str("a=sendonly");

    msg_data.content_type  = hname;
    msg_data.msg_body  = hvalue;

   pjsua_call_make_call( acc_id, &pj_uri, 0, NULL, &msg_data, &call_id);

in SIP message is still:

"a=sendrecv"

struct "pjsua_msg_data" have another member  "hdr_list" of type  "pjsip_hdr"
Do i have to adjust this member too?..if yes how?


thanks



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100426/5171e106/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux