Re: please help me

deepa kher <[email protected]>
Newsgroups gmane.comp.java.sun.jtapi
Message-ID <[email protected]>
hello sir
thanx for ur reply.here is the info u want

-i am using voice modem
-JTAPI 1.2(is it compatible with j2sdk1.4)
-NULL passing to peer.getprovider()
- create func of out Class
-class path includes all jar files

here the code for my out.java


import javax.telephony.*;
import javax.telephony.events.*;
//import javax.telephony.media.provider.Dispatcher;
public class Out //extends Dispatcher
{
  public static Call mycall = null;
  public static Provider myprovider = null;
  public static Address origaddr = null;
  public static Terminal origterm = null;
  public Out(final String num)
  { //Dispatcher dis = new Dispatcher();
    //dis.start();
    //System.out.println(dis.toString());
    try
    {
      JtapiPeer peer = JtapiPeerFactory.getJtapiPeer(null);
      myprovider = peer.getProvider(null);
      myprovider.addObserver(new ProviderObserver()
           {
            public void providerChangedEvent(ProvEv[] eventList)
             {
             System.out.println("provider changed : "+eventList[0].toString());
             System.out.println(eventList[0].getID());
              if(eventList[0].getID()==111)
              {
              create(num);
              System.out.println("Create successfully called");
              }
             }
           }
          );
    }
    catch (Exception excp)
    {
      System.out.println("Can't get Provider: " + excp.toString());
      System.exit(0);
    }
  //dis.stop();
  }
  public static void create(String numb)
  {
  try
            {
             origaddr = myprovider.getAddress("unknown");
             System.out.println(origaddr.toString());
             Terminal[] terminals = origaddr.getTerminals();
             origterm = terminals[0];
             System.out.println("Terminal 1 : " + terminals[0]);
             mycall = myprovider.createCall();
             System.out.println("Call created");
             mycall.addObserver(new MyOutObserver());
             if(mycall.getState() == mycall.IDLE)
              {
               System.out.println("Call idle  "+mycall.IDLE);
              try
               {
                System.out.println("Dialing number " + numb + "....");
                mycall.connect(origterm,origaddr,numb);
               }
              catch(Exception e)
               {
                System.out.println("Connection array : "+ e.toString());
               }
              }
             else
              System.out.println("Call active  "+mycall.ACTIVE);
            }
           catch (Exception e)
            {
             System.out.println("call not placed....." + e);
            }
  }
}


Richard Deadman <[email protected]> wrote:
Deepa,

XTAPI only supports JTAPI 1.2. For more help it is also useful to tell us:
- what telephony platform you are connecting to (TAPI, voice modem, Dialogic, SIP, etc.)
- What string you passed in to Peer.GetProvider();
- what JTAPI package you are using
- what call triggered the exception
- full classpath

It looks to me like the provider shut down because it couldn't find any resources.


Richard

--
Richard Deadman
Deadman Consulting, Inc.
Web Services, Policy Management, Java Telephony, Software Architecture
mailto:[email protected]
http://www.deadman.ca
Office: 613-231-5112
Cell: 613-220-2469

On Feb 28, Deepa Kher wrote:
>
> hello
> i am trying to place a call with JTAPI but after running my project i
> encountered with an error that deadlock detected & MMCS thraed
> murdered,restatring it.i do have xtapi implementation.does this
> implementation supports java1.4 or should i use prev. versions.basically my
> call object do't change it's state from idle to active.
>
> THE ERROR is as follows:
>
> Dead lock detected: MMCS dispatcher
> E Feb 28 16:52:07.650 0 [ConferenceServer_3] MMCS Thread murdered...
> Restarting it
> E Feb 28 16:52:07.650 1 [ConferenceServer_3] Unexpected ERROR in MMCS
> Thread com.ibm.ct.util.ThreadMonitorException
> at
> com.ibm.ct.util.ThreadMonitor.alarmExpired(ThreadMonitor.java:75)
> at com.ibm.ct.util.EventTimer.run
> (EventTimer.java:224)
> at java.lang.Thread.run(Thread.java:536)
> provider changed : MM_ProvShutdownEv {
> id=ProvShutdownEv
> meta=136
> is_new=true
> cause=CAUSE_RESOURCES_NOT_AVAILABLE
> }
>
>
> egerly waiting for ur responses thanx.also guide me about where should i
> place different implementation files so that they can work properly.
>
> ===========================================================================
> 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".



---------------------------------
Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.

===========================================================================
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".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.