cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
581
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Aaron Ragheb on 22-06-2010 08:41:54 PM
Hi folks,
   I have some questions about "join across lines" feature of JTAPI.

   1) this appears to be new in JTAPI 7 and above.  Is that correct?

   2) The JTAPI Developer's Guide 7.1.3 on page 3-51 says two apparently
    conflicting things:
        a) this is only supported for CTI-supported phones running SIP
        b) it only works with phones running SCCP

    Am I misunderstanding the two statements?

  3) The "sample code" is very strange.  It appears that it is collecting data
    about the calls after a conference start event.  I don't see how this
    helps if we have two calls to two different lines on a single terminal.
    Neither was created with a conference (assume they are both incoming
    calls). Also, the sample code makes use of a "bad" method:

    CiscoConferenceStartEv.getControllerTreminalName();
                                        ^^^

    was this taken from real code?

  4) The sample code does not appear to call conference, join, transfer, or
   any method that seems to do "work."

  I have succesfully implemented a "join" command that is not across lines:

  I create a single entry array and pass that to CiscoCall.conference().

  That works fine.

  I am unable to get join across lines working, but am not sure what I am
  supposed to do (the various things I try fail in various ways).

  Any pointers would be much appreciated

Subject: RE: Join Across Lines
Replied by: Abhishek Malhotra on 23-06-2010 06:13:07 AM

   1) this appears to be new in JTAPI 7 and above.  Is that correct?
   2) The JTAPI Developer's Guide 7.1.3 on page 3-51 says two apparently 
    conflicting things:
        a) this is only supported for CTI-supported phones running SIP

        b) it only works with phones running SCCP
 

This feature was initially introduced in 5.1(2) and later included in 7.0(1). In 5.1(2) release this feature was supported only on SCCP Phones but in 7.0(1), it was supported for SIP end points too. The information on page 3-51, talks about feature as it was in 5.1(2) release. I will talk to documentation team and make it more explicit in our next developer guide.
 
 

  3) The "sample code" is very strange.  It appears that it is collecting data
    about the calls after a conference start event.  I don't see how this
    helps if we have two calls to two different lines on a single terminal.
    Neither was created with a conference (assume they are both incoming 
    calls). Also, the sample code makes use of a "bad" method:

    CiscoConferenceStartEv.getControllerTreminalName();
                                        ^^^

    was this taken from real code?

There seem to be a typo in the API name, Terminal is miss-spelled as Treminal, the correct API name is: CiscoConferenceStartEv.getControllerTerminalName(). We will get this corrected as well in our next release.
 
 

The sample code does not appear to call conference, join, transfer, or
   any method that seems to do "work."

  I have succesfully implemented a "join" command that is not across lines:

  I create a single entry array and pass that to CiscoCall.conference().

  That works fine.

  I am unable to get join across lines working, but am not sure what I am
  supposed to do (the various things I try fail in various ways).

  Any pointers would be much appreciated

The sample code assumes the application invoked conference API which should be pretty straight forward, what it talks about is how their business logic should change if they were relying on Controller Address earlier for Normal Conference (on Same lines) as compared to Join Across Lines, where there is no common controller address and they need to rely on ControllerTerminalName.
As far as invoking Join is concerned, this is what needs to be done:
Lets say if we have Address "A" on Terminal "TA", Address "B1" and Address "B2" on Terminal "TB" [basically B1 and B2 are two lines(addresses) on same terminal], and Address "C" is on Terminal "TC".
Now, lets say:
Call1 - A and B1 are in call.
Call2 - B2 and C are in call.
Then, all you need to do is invoke following API call to do join across lines:
Call1.Conference(Call2) or Call2.Conference(Call1)
here, Call1 and Call2 are instance of CiscoCall.

Subject: RE: Join Across Lines
Replied by: Aaron Ragheb on 23-06-2010 03:32:18 PM
The sample code assumes the application invoked conference API which should be pretty straight forward, what it talks about is how their business logic should change if they were relying on Controller Address earlier for Normal Conference (on Same lines) as compared to Join Across Lines, where there is no common controller address and they need to rely on ControllerTerminalName.
As far as invoking Join is concerned, this is what needs to be done:
Lets say if we have Address "A" on Terminal "TA", Address "B1" and Address "B2" on Terminal "TB" [basically B1 and B2 are two lines(addresses) on same terminal], and Address "C" is on Terminal "TC".
Now, lets say:
Call1 - A and B1 are in call.
Call2 - B2 and C are in call.
Then, all you need to do is invoke following API call to do join across lines:
Call1.Conference(Call2) or Call2.Conference(Call1)
here, Call1 and Call2 are instance of CiscoCall.


 
Abhishek,
 
Thank you for your reply.  Your algorithm above is what I expected to work.  There should be no need for a common controller, but that is precisely the exception that is thrown:
 
        CiscoCall call1 = null;
        CiscoCall call2 = null;

        call1 = findCallToRemote(jtapiService);   // this is my function that returns the CiscoCall to a remote call that is tracked by jtapiService (my class).

        MonitoredNumber = "4382";                  // this is currently hardcoded for testing

        call2 = getCallFromId(secondService);    // another method to retrieve a CiscoCall from callId.  secondService is how I keep track of the jtapi provider for the second monitored line
 
        // these indicate that I did indeed find the calls i was looking for
 
        Logger.log("call1: " + call1.getCallingAddress());
        Logger.log("call2: " + call2.getCallingAddress());

        try
        {
            Logger.log("ATTEMPTING the conference");
            call1.conference(call2);
        }
        catch (Exception e)
        {
            throw new JcException(e.getMessage());
        }


     call1: 7847
     call2: 4381
     ATTEMPTING the conference
     ----- Exception caught: Conference controller is not set and could not find a suitable TerminalConnection
 
 
Let me add:
 
call1 ==  x7847 to x4380  (4380 is line 1 on terminal
call2 == x4381 to x4382 (4382 is line 2 on terminal
 
7847 and 4381 are lines on terminals A and C.  Both calls are active, 7847 to 4380 is on hold automatically as a result of terminal B answering call2.

Subject: RE: Join Across Lines
Replied by: Abhishek Malhotra on 24-06-2010 05:36:20 AM
Can you please tell the exact JTAPI version that you are using?
Also, can you please upload the JTAPI logs capturing this scenario along with the details of the two calls that you are trying to conference(timestamp, parties in call, Call IDs, controller terminal, etc..)

Subject: RE: Join Across Lines
Replied by: Aaron Ragheb on 24-06-2010 04:32:41 PM
Can you please tell the exact JTAPI version that you are using?
Also, can you please upload the JTAPI logs capturing this scenario along with the details of the two calls that you are trying to conference(timestamp, parties in call, Call IDs, controller terminal, etc..)


 
Abhishek,
   The version of JTAPI is:   7.1(3.10000)-1
 
Please find attached the JTAPI log and the log from my application.
 
A (7847) calls B1(4380) callID: 16778262
C (4381) calls B2(4382) callID: 16778263
There are no other calls on the system.
 
I get the CiscoCall for both calls, and attempt to conference (as per your example above) either call1 to call2 or call2 to call1.  Same resuilt in either case.
 
I do not set controller.  I thought for "join across lines" there is no controller.
 
Thanks,
 
Aaron

Subject: RE: Join Across Lines
Replied by: Abhishek Malhotra on 25-06-2010 09:44:12 AM
Hi,
 
The two addresses(lines) across which you are trying to do a conference must be observed in the same provider from which you are issuing a conference request.
 
In this case, conference is issued on (P4-fidac):
1113: Jun 24 09:53:39.226 MDT %JTAPI-JTAPI-7-UNKP4-fidac)[Thread-0][(P4-fidac) GCID=(1,1047)->ACTIVE]Request: conference((P2-fidac) GCID=(1,1046)->ACTIVE)


You are observing 4382 in (P4-fidac) but 4380 is not observed under this provider and is actually observed under (P2-fidac)
 
Please try observing both 4380 and 4382 in same provider and then issue the conference request from that provider and see if it works.
 
Regards,
Abhishek

Subject: RE: Join Across Lines
Replied by: Aaron Ragheb on 28-06-2010 04:29:14 PM
Abhishek,
   Yes: adding the observer to the same provider allows for the join to succeed.
 
Thank you.
 
 
Hi,
 
The two addresses(lines) across which you are trying to do a conference must be observed in the same provider from which you are issuing a conference request.
 
In this case, conference is issued on (P4-fidac):
1113: Jun 24 09:53:39.226 MDT %JTAPI-JTAPI-7-UNKP4-fidac)[Thread-0][(P4-fidac) GCID=(1,1047)->ACTIVE]Request: conference((P2-fidac) GCID=(1,1046)->ACTIVE)


You are observing 4382 in (P4-fidac) but 4380 is not observed under this provider and is actually observed under (P2-fidac)
 
Please try observing both 4380 and 4382 in same provider and then issue the conference request from that provider and see if it works.
 
Regards,
Abhishek

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links