Sending and Receiving Message for symbian

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

 



Hi,
I want to send message in Symbian using PJSIP. So I use the following steps:

*

// int SendSMS() in Symbian_ua.cpp

int* *SendSMS*()

{ *
*

*char* str[*100*] = "sip*:013 at 192.168.1.18:1079"**;*

*char* *Buf ="Hello";

pj_str_t tmpMessage;

tmpMessage = pj_str(Buf);

*if* (pjsua_verify_sip_url(str) == PJ_SUCCESS)

{

pj_str_t TelephoneNumber_uri = pj_str(str);

pjsua_im_send(g_acc_id,&TelephoneNumber_uri,NULL,&tmpMessage,NULL,NULL);

*return* PJ_SUCCESS;

}

*return* PJ_EINVAL;

}

// in *symbian_uaguiContainerView.cpp I have wrote SendIM(TInt aCommand) *

*Which I called from HandleCommandL( TInt aCommand ).
*

TBool *Csymbian_ua_guiContainerView::SendSIM*(TInt aCommand)

{

*if*(SendSMS()==0)

{

}

}
*

//The call Back function for Receiveing Message is

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)

{

/* Note: call index may be -1 */



PJ_UNUSED_ARG(call_id);

PJ_UNUSED_ARG(to);

PJ_UNUSED_ARG(contact);

PJ_UNUSED_ARG(mime_type);

PJ_LOG(3,(THIS_FILE,"MESSAGE from %.*s: %.*s*"**,(int*)from->slen, from->ptr
*,(**int*)text->slen, text->ptr));

}

*But the sending message is not writing into the file. What's the problem I
couldn't find.*

*Why the call back function "on_pager" is not calling . Please anyone give
me idea to solve that problem?*

**

*Thanks*

*Nasir*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090517/6514efbb/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