Sending message to other sip client .Urgent!!

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

 



Thanks srivatsan,

     For your Support ,So can i use this function directly in the
symbian_ua_guiContainerView including the
     pjsua.h header in the file .
     Sorry again for asking ,just had started PJsip and the task was urgent
    Thanks again
  Regard's
  vivek
On Wed, Apr 22, 2009 at 9:46 PM, Srivatsan Deenadayalan <
srivatsan at ongobiz.com> wrote:

> Hi,
>
> This how i send instant message using pjsip in my application. Hope this
> will help you.
>
> /* Method to send instant message */
> void send_im (const char *chat_dest_add, const char *message)
>     {
>     pj_status_t status;
>     pj_str_t * mime_type = NULL; // default type is Text/Plain so set to
> NULL
>
>     char tmp_id[PJSIP_MAX_URL_SIZE];
>     pj_ansi_sprintf (tmp_id, "sip:%s@%s", chat_dest_add, SIP_DOMAIN );
>
>     pj_str_t dst = pj_str (tmp_id);
>     pj_str_t content = pj_str (( char* ) message);
>     status = pjsua_im_send (g_acc_id, &dst, mime_type, &content, NULL, NULL
> );
>     }
>
>
> vivek shrivastava wrote:
>
>
> Hi all,
>
>   Just new to Pjsip  compiled and executed the Calling module successfully
> for s60 Symbian , thanks to rich documentation and forum Support
>   I need to send Sip message to other sip Agent client i had seen
> Symbian_ua.cpp and
>
> *static void on_pager(pjsua_call_id call_id, const pj_str_t *from,   const
> pj_str_t *to, const pj_str_t *contact, const pj_str_t *mime_type, const
> pj_str_t *text)*
>
> function  meant for
> /* Incoming IM message (i.e. MESSAGE request)!  */
>
> Please suggest me the method /function from where i can make direct message
> to any other Sip agent please also suggest how to initiate it in
> symbian_ua_guiContainerView as i am referring the gui part from there .
>
> please let me know it is some urgent for me with little knowledge of Pjsip
>
>
>
> Best regards
> Vivek
>
>
> ------------------------------
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing listpjsip at lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
> --
> Regards,
> Srivatsan.D,
>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090423/e430b7e8/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