Sending message to other sip client .Urgent!!

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

 



srivatsan

Thanks , for your valuable support and responce

i had implemented
void send_im (const char *chat_dest_add, const char *message) in
symbian_ua.cpp and called that method in symbian_ua_guiContainerView.cpp in
HandleCommandL()

for testing purpose

HBufC *bufPter=HBufC::NewL(300);
bufPter->Des().Append(_L("18004664411 at sip.net4india.com"));
CnvUtfConverter::ConvertFromUnicodeToUtf8(aUrl, *bufPter);
if(bufPter){delete bufPter;}
// if (symbian_ua_makecall((char *)aUrl.PtrZ()) != 0)
HBufC *bufTxt=HBufC::NewL(30);
bufTxt->Des().Append(_L("Hello "));
if(bufTxt){delete bufTxt;}
PutMessage(_L("Messaging..."));
send_im ((char *)aUrl.PtrZ(), (char *)bufTxt);
PutMessage(_L("Messaging.Done"));

am i typing the address in the correct format ie,
18004664411 at sip.net4india.com or will the format  be different

in void send_im () function  at line
pj_ansi_sprintf (tmp_id, "sip:%s@%s", chat_dest_add, SIP_DOMAIN );

 what is  SIP_DOMAIN and where should i declear it .

 Thankyou once again for your help

Best Regards
  vivek


On Thu, Apr 23, 2009 at 11:57 AM, Srivatsan Deenadayalan <
srivatsan at ongobiz.com> wrote:

> Yes of course. But i suggest to add the messaging method in *symbian_ua.cpp
> *class and declare the method in *symbian_ua.h *header. Now its easy for
> you to access the method in symbian_ua_guiContainerView. I always suggest to
> split UI from functional engines. And don't  hesitate to ask your doubts.
> Mailing list is for helping each other.
>
>
> vivek shrivastava wrote:
>
> 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
>>
>>
> ------------------------------
>
> _______________________________________________
> 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/9dad5cdd/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