Genesys CTI User Forum > Genesys-related Development
Need help in platform SDK code
Kash:
Thank You Cav and Kubig for your inputs.
I tried doing RequestMakePredictiveCall.
RequestMakePredictiveCall requestMakePredictive = RequestMakePredictiveCall.create(thisDN, otherDN, timeout);
Code worked if I give thisDN as Routepoint, otherDN as extension. But this is not solving my purpose of load testing. I can take only one call with this at a time.
If i try to give other DN as another route point where I have loaded my code to execute, I get error as Invalid Num.
Its like, I have to generate 100 calls/sec to a routepoint which have code loaded to be executed.
I don't have option of doing call generation as suggested by Cav as there are few limitations.
Can you guide me how I can proceed further.
Thank You.
Kubig:
You did something wrong, because you should make more predictive call at one routing point at the same time. There is no other approach using internal resources. The only one suggested and the best way is through PBX simulator or any SIP generator in case using SIP server as a switch
Kash:
Hi Kubig,
I have put code something like this
Endpoint tserverEndpoint = new Endpoint("TServer","Hostname",3030);
TServerProtocol tserverProtocol = new TServerProtocol(tserverEndpoint);
tserverProtocol.open();
RequestRegisterAddress requestRegisterAddress = RequestRegisterAddress.create("DNRP1",RegisterMode.ModeShare,
ControlMode.RegisterDefault,AddressType.DN);
Message response = tserverProtocol.request(requestRegisterAddress);
RequestRegisterAddress requestRegisterAddress1 = RequestRegisterAddress.create("DNRP2",RegisterMode.ModeShare,
ControlMode.RegisterDefault,AddressType.DN);
Message response1 =tserverProtocol.request(requestRegisterAddress1);
RequestRegisterAddress requestRegisterAddress2 = RequestRegisterAddress.create("DNExtension",RegisterMode.ModeShare,
ControlMode.RegisterDefault,AddressType.DN);
Message response2 =tserverProtocol.request(requestRegisterAddress2);
RequestMakePredictiveCall requestMakePredictive = RequestMakePredictiveCall.create("DNRP1", "DNRP2", 60);
Message requestMakePredictive1 = tserverProtocol.request(requestMakePredictive);
When i am executing the request, am getting Invalid DN error. :(
and if I executes the request as
RequestMakePredictiveCall requestMakePredictive = RequestMakePredictiveCall.create("DNRP1", "DNExtension", 60);
Message requestMakePredictive1 = tserverProtocol.request(requestMakePredictive);
Call hits to extension. But I need to make the calls hit to Route point instead of Extension.
Can you check this and let me know what I missed here.
Thank You.
Kash:
Hi All,
I am trying to initiate a call from Route point and want it to hit to another RP where I have loaded code which will further route it to extension.
Trying to acheive something like this
RP1-->RP2-->Extension
Have kept something like below in my code
RequestMakePredictiveCall requestMakePredictive = RequestMakePredictiveCall.create("Routepoint1", "Routepoint2", 60);
but am getting error like CallState:SitInvalidnum
Can you let me know if this is Achievable using PSDK.
cavagnaro:
Voice call? Can't be...as voice needs a real extension, RP are logical.
Enviado de meu E6633 usando Tapatalk
Navigation
[0] Message Index
[*] Previous page
Go to full version