Please, help with pjsua_call_make_call

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

 



I was trying to use pjsua_call_make_callto make a call with another
content_type. I have make modifications over pjsua, and calling this
function with another msg_data as say in API:

pj_status_t<http://www.pjsip.org/pjlib/docs/html/group__PJ__BASIC.htm#gb43ba3167bd2a2ab4580509dbf79200e>pjsua_call_make_call
( pjsua_acc_id<http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__BASE.htm#g01a78e17d7787f7e0ea5efd240f3e427>
  *acc_id*,

const pj_str_t <http://www.pjsip.org/pjlib/docs/html/structpj__str__t.htm>*
*dst_uri*,

unsigned  *options*,

void *  *user_data*,

const pjsua_msg_data<http://www.pjsip.org/pjsip/docs/html/structpjsua__msg__data.htm>*
*msg_data*,

pjsua_call_id<http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__BASE.htm#gd4eb99a78c98ddbd83aecf7e933fc684>*
*p_call_id*
)


  Make outgoing call to the specified URI using the specified account.

*Parameters:*
*acc_id* The account to be used.
*dst_uri* URI to be put in the To header (normally is the same as the target
URI).
*options* Options (must be zero at the moment).
*user_data* Arbitrary user data to be attached to the call, and can be
retrieved later.
*msg_data* Optional headers etc to be added to outgoing INVITE request, or
NULL if no custom header is desired.
*p_call_id* Pointer to receive call identification.
I am making this as follow (making something similar to code of call sending
INFO DTMFs )

        tmp = pj_str(uri);
        pjsua_msg_data msg_data;

        pjsua_msg_data_init(&msg_data);
        msg_data.content_type = pj_str("application/csta+xml");
        printf("Calling to ... %s \n",
            tmp
        );

        pjsua_call_make_call( current_acc, &tmp, 0, NULL, &msg_data, NULL);


But when I sniff this call, I can see that only sdp content_type is sendend
in INVITE.

Can anybody helpme in use another content_type in an Invite?

Thanks in advance, and sorry for the repetition
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090604/5d2a452a/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