Genesys CTI User Forum > Genesys-related Development

Create a Transfer button in IWS Customization

(1/3) > >>

David Alvarez:
Is it possible to create a button on " InteractionVoiceCustomButtonRegion " to make a transfer directly to a routing point ?

Now I have the button created , but I can not find a way to make the transfer

abudwill:
Hi David,

What version of IWS?

My suggestion is to utilize existing command chains.  See documentation at http://docs.genesys.com/Documentation/IW/latest/Developer/Voice

You might want to consider the InteractionVoiceSingleStepTransfer command chain.

Documentation at http://docs.genesys.com/Documentation/IW/latest/Developer/UseCustomizableCommands should help you understand how to execute commands in your buttons click event.

Regards,
Andrew

daniel_san:
[quote author=David Alvarez link=topic=8749.msg38847#msg38847 date=1426019691]
Is it possible to create a button on " InteractionVoiceCustomButtonRegion " to make a transfer directly to a routing point ?

Now I have the button created , but I can not find a way to make the transfer
[/quote]

You can do it on two ways.

[b]Using Commands Chain: [/b]

IDictionary<string, object> parameters = new Dictionary<string, object>();
parameters.Add("CommandParameter", Interaction); [b](Interaction to transfer, You can  retrieve it from InteractionManager)[/b]
parameters.Add("Destination", destiny); [b](Routing Point o place of destination)[/b]
parameters.Add("Location", null);
parameters.Add("UserData", new KeyValueCollection());
parameters.Add("Reasons", null);
parameters.Add("Extensions", null);
parameters.Add("SingleStepUserData", null);
container.Resolve<ICommandManager>().GetChainOfCommandByName("InteractionVoiceSingleStepTransfer").Execute(parameters);

[b]Another way. Working directly with Plattform: [/b]

Platform.Voice.Protocols.ConnectionId conid = new Platform.Voice.Protocols.ConnectionId(TConnectionID);
string[] place = _agent.LoginDNs[0].Split('@'); [b](Origin PLace, your place)[/b]
Genesyslab.Platform.Commons.Collections.KeyValueCollection kvc =new Genesyslab.Platform.Commons.Collections.KeyValueCollection();
kvc.Add("COMMENT", "TryTo");
RequestSingleStepTransfer rsst = RequestSingleStepTransfer.Create(place[0].ToString(), conid, destiny,"",kvc,kvc,kvc); [b](destiny)[/b]
createChannel(_agent);         
channel.Protocol.Send(rsst);
destroyChannel(channel);

Regards.

David Alvarez:
Thak you Daniel_San, i could make.
Regards.

falegria:
Hi Daniel and David,

    I have a question about, how do you implement this solution.... finally, you use a button click event for make a SingleStepTransfer? If the answer is "yes", I would appreciate explaining how made it.
In summary, I need to know how execute commands in a button click event.

Thank you.

Best Regards.

p.d: Sorry my poor english  ::)

Navigation

[0] Message Index

[#] Next page

Go to full version