PSTN call

InfoUA <[email protected]> Thu, 31 Mar 2005 11:41:07 +0300
Newsgroups gmane.comp.java.sun.jtapi
Organization NeoSvIT
Message-ID <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA8pWMGD4YjECDANjBcB9c78KAAAAQAAAAOr6Yiy3SXk2VPliqq9zloAEAAAAA@neosvit.com>
Thank you for your help, but the only result I got when running the
following function is the following:

catched the following error during makecall Address is out of service

Seems this function does not work at all since it should wait for
CiscoAddrInServiceEv and CiscoTermInServiceEv events from the originating
party (Cisco IP phone) before using address and terminal. Does it have
sense?
By the way, when I tried to control only originating party and wait for all
that events, at least I got the following exception:

Caught Exception in mttest com.cisco.jtapi.PlatformExceptionImpl: Timeout -
Could not meet post conditions of connect() Thread =ActionThread

As far as I understand I should also wait for the same events from the
receiving party (extenrnal PSTN phone). Also, I want to handle
CiscoRTPInputStartedEv from receiver, but I do not know how because I can
not contol receiving party at all (I do not know how to add observers to
external (PSTN) address).

That is only my opinion, would you please correct me if I'm wrong.

Thanks.


> -----Original Message-----
> From: Discussion list for Java Telephony API
> [mailto:[email protected]] On Behalf Of Stephan Steiner
> Sent: Thursday, March 31, 2005 10:07 AM
> To: [email protected]
> Subject: Re: [JTAPI] PSTN call
>
> What you're trying is not going to work for reasons the previous
> replier outlined.
>
> Here's a makecall function that works:
>
> public CiscoCall makeCall(String originatorDN, String callDN)
>   {
>     try
>     {
>         CiscoCall call = (CiscoCall)provider.createCall();
>         Address sourceDN = provider.getAddress(originatorDN);
>         Terminal term = sourceDN.getTerminals()[0];
>         call.connect(term, sourceDN, callDN);
>         return call;
>     }
>     catch (Exception e)
>     {
>         print("catched the following error during makecall " +
> e.getMessage());
>         return null;
>     }
>   }
>
> originatorDN is the DN of the IP phone from which the call is to be
> made, callDN is the DN to be called. It can be either an internal DN
> or an external number (don't forget to append a 0/9 or whichever
> prefix you need to get an outside line). You cannot get an Address
> object for an external number.. it might not even exist after all and
> your Call Manager obviously doesn't know or care about external addresses.
>
>
===========================================================================
> To unsubscribe, send email to [email protected] and include in the
body
> of the message "signoff JTAPI-INTEREST".  For general help, send email
> to [email protected] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JTAPI-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".