Re: PSTN call
Stephan Steiner <[email protected]> Thu, 31 Mar 2005 23:21:37 -0700
| Newsgroups | gmane.comp.java.sun.jtapi |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Your assumption that terminal and address need to be in service is correct. However, if you register the proper listeners, you should see those events as soon as you start your app (you shouldn't run a program that after registering the provider immediately proceeds to make a call.. give it some time as not everything is set up once you get your provider object). But of course, looking at those events cannot hurt (I end up not always getting them in sequence though, so I could get a TermOutOfServiceEv after a TermInServiceEv). Have you tried running the makecall sample? It uses the same mechanisms to make calls. Also, run JTrace on a DN, then make a PSTN call from that DN.. you'll see all the JTAPI events you're getting and see how the call flow works for an external call. Unfortunately, the RTP streams starts once the call reaches the PSTN gateway, not the destination (keep in mind.. it's only RTP between your IP Phone and Gateway), so you'll have to look for another event: CallCtlConnNetworkAlertingEv: indicates that the outside phone is rining CallCtlConnEstablishedEv: the outgoing call has been picked up. Now you need to be extra careful with this one, as you get multiple instances of this event and have to look at which address generated the event. If the gateway generated the event, the call has been picked up, if your phone generated the event, the connection is still in the setup process (basically it means call is being routed). =========================================================================== 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".