i tried using checkVmail.cpp with my SIP server. I'm able to get NOTIFY's
for event : presence. I do not have message-summary support on my server, so
i could not check it. If you know of any server which has that enabled. Let
me know. I will try and get back with the results for that server.
best,
Amith
On 5/3/07, Amith Nambiar <[EMAIL PROTECTED]> wrote:
i will check that and let you know.
-Amith
On 5/2/07, federico jose Vaggi <[EMAIL PROTECTED] > wrote:
>
> yes I check the CheckVMail.cpp code.
>
> Basically I use the sipxezphone code
>
> I invoque first
> sipxInitialize(&g_hInst, iSipPort, iSipPort, PORT_NONE, 8000);
> sipxEventListenerAdd(g_hInst, SipCallbackProc, NULL) ;
>
> then I invoque the SipxConfigSubscribe function with the following
> parameters
>
> SipxConfigSubscribe(m_hInst,
> m_hLine,
> szSipUrl,
> "message-summary",
> "application/simple-message-summary",
> 1,
> &m_hSub);
>
> in szSipUrl I put the ip address of an asterisk server.
>
> In the event handler I wait for the EVENT_CATEGORY_NOTIFY
>
> bool sipXmgr::SipCallbackProc(SIPX_EVENT_CATEGORY category, void* pInfo,
> void* pUserData)
> {
> // Add to Event Log
> sipXmgr::getInstance().addToEventLog(category, pInfo, pUserData) ;
>
> // Delegate to handlers
> switch (category)
> {
> case EVENT_CATEGORY_CALLSTATE:
> return sipXmgr::getInstance().handleCallstateEvent(pInfo,
> pUserData);
> case EVENT_CATEGORY_LINESTATE:
> return sipXmgr::getInstance().handleLinestateEvent(pInfo,
> pUserData);
> case EVENT_CATEGORY_INFO_STATUS:
> return sipXmgr::getInstance().handleInfoStatusEvent(pInfo,
> pUserData);
> case EVENT_CATEGORY_INFO:
> return sipXmgr::getInstance().handleInfoEvent(pInfo,
> pUserData);
> case EVENT_CATEGORY_SECURITY:
> return sipXmgr::getInstance().handleSecurityEvent(pInfo,
> pUserData);
> case EVENT_CATEGORY_MEDIA:
> return sipXmgr::getInstance().handleMediaEvent(pInfo,
> pUserData);
> case EVENT_CATEGORY_NOTIFY:
> return sipXmgr::getInstance().handleNotifyEvent(pInfo, pUserData);
> default:
> return false;
> }
> return false;
> }
>
> and ....
>
> bool sipXmgr::handleNotifyEvent(void* pInfo, void* pUserData)
> {
> SIPX_NOTIFY_INFO* pNotifyInfo = static_cast<SIPX_NOTIFY_INFO*>(pInfo);
> LogEventEx("AtlSIp","NOTIFYEVENT");
> return true;
>
> }
>
> In this function I only Log the event, I did this only for debugging to
> see if the event is trigger
>
> but it sees that I don t receive the event.
>
>
>
> 2007/5/2, Amith Nambiar <[EMAIL PROTECTED]>:
> >
> > if you could send me the code i could help.
> > -Amith
> >
> > On 5/2/07, federico jose Vaggi <[EMAIL PROTECTED] > wrote:
> > >
> > > Hi:
> > >
> > > I'm From Argentina.
> > > I'm developing a sip phone based on sipfoundry libraries.
> > > I read your cuestion in the list and I have the same problem as you.
> > > I don't receive then EVENT_CATEGORY_NOTIFY in my callback function.
> > > I want to implement the mwi feature and I cann t do it.
> > >
> > > Can you solve this problem ?
> > >
> > > Thanks
> > > Federico Vaggi
> > >
> >
> >
>
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/