Hi,
I tried to implement the SipDialogMonitor in my application, but I still can't
get the status of the calls on the monitored lines. I wrote a method in
MySipMgr class for monitoring lines. Here is how i did that:
SIPX_INSTANCE_DATA* pInst = (SIPX_INSTANCE_DATA*) hInst;
if (pInst)
{
SipUserAgent* ua = pInst->pSipUserAgent;
UtlString group("group1");
UtlString domain("domain");
SipDialogMonitor dm(ua, domain, 5060, 100, TRUE);
UtlString utlStr1("sip:[EMAIL PROTECTED]");
Url url1(utlStr1);
bool isAddExt1 = dm.addExtension(group, url1);
dm.addStateChangeNotifier(group, m_pnotifier);
}
I successfully send SUBSCRIBE to the notifiers, but I don't receive their call
status to any changes.
What am I doing wrong?
Regards,
Katerina
Daniel Petrie <[EMAIL PROTECTED]> wrote: To do this you want to use the SIP
dialog event package
(http://www.ietf.org/rfc/rfc4235.txt). Interested parties subscribe
(SIP SUBSCRIBE request) to the user agent to be monitored. The
monitored user agent sends NOTIFY requests with call states for pending
and established calls to the subscribed parties. There is a SIP dialog
monitor (sipXtack/include/SipDialogMonitor.h) that plugs into the sipX
call manager and provides the SIP dialog package.
Cheers,
Dan
SIPez LLC
SIP VoIP, IM and Presence Consulting
http://www.sipez.com
tel: +1 (617) 273-4000
--- katerina anastasova wrote:
> Hi everyone,
>
>
> I am interesting if SipXTapi support monitored lines? I have made an
> application based on SipXTapi and I'm trying to monitor a line
> registered by another client. Is it possible to get the status of a
> call even I don't participate in it?
>
> For example, I have registered Line1 and another client has
> registered too. When a third party make a call to a Line1, we both
> get the status of the incoming call. And now, if one of us accept it,
> I would like the other part to be able to monitor the status of that
> call.
>
> Anyone know how to implement that?
>
> Best Regards,
> Katerina
>
> ---------------------------------
> Be a better Globetrotter. Get better travel answers from someone who
> knows.
> Yahoo! Answers - Check it out.>
_______________________________________________
> sipxtapi-dev mailing list
> [email protected]
> List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
SIPez LLC
SIP VoIP, IM and Presence Consulting
http://www.sipez.com
tel: +1 (617) 273-4000
---------------------------------
Choose the right car based on your needs. Check out Yahoo! Autos new Car
Finder tool._______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/