disconnecting a call in the workflow

Dedicated forum for the visual 'drag and drop' voice application designer that allows easy creation of advanced voice applications without programming knowledge

Moderators: kevin, 3CX staff

disconnecting a call in the workflow

Postby SWSDEV » Tue Nov 03, 2009 8:51 pm

What would you suggest is the best way if I wanted an external source to disconnect a call in the IVR? Would I have to use the .Net API for that?
Shahzad Qureshi
SWS Development - 3CX Certified Partner
Custom 3CX integration
Salt Lake City, UT USA
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 246
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: disconnecting a call in the workflow

Postby VAD_Support » Tue Nov 03, 2009 9:57 pm

Call disconnection must be triggered from inside the callflow, so you would need to query your external source to know if it's the right moment to disconnect the call in some points in the callflow. To query your external source you have many options, like web interaction, web services, database access, socket and external code execution. You may choose the one that fits best in your scenario.
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 421
Joined: Thu Aug 06, 2009 5:29 pm

Re: disconnecting a call in the workflow

Postby SWSDEV » Tue Nov 03, 2009 11:44 pm

I should actually be little more specific. I didn't mean disconnect the call flow but return a call where 3cx is hosting the media stream externally back into the ivr while leaving the call on hold.

Querying the external source would work for the first part, I would assume I would enter an infinite loop until it received the proper response from the external source, but what about the other part?
Shahzad Qureshi
SWS Development - 3CX Certified Partner
Custom 3CX integration
Salt Lake City, UT USA
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 246
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: disconnecting a call in the workflow

Postby VAD_Support » Wed Nov 04, 2009 3:14 pm

I'm not sure if I understand what you need to do. Can you describe it in more detail?
Thanks.
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 421
Joined: Thu Aug 06, 2009 5:29 pm

Re: disconnecting a call in the workflow

Postby SWSDEV » Wed Nov 04, 2009 4:56 pm

If a call in the IVR was transfered to an external number (not blind transfer, but still connected) how could I have the number that was forwarded to get put on hold so the initial caller goes back to the IVR but could be sent back to the call again?

There would be external elements involved for sure, but I don't know to what degree yet.
Shahzad Qureshi
SWS Development - 3CX Certified Partner
Custom 3CX integration
Salt Lake City, UT USA
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 246
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: disconnecting a call in the workflow

Postby VAD_Support » Wed Nov 04, 2009 6:28 pm

Let's use an example to see if I understand.
1) Caller A calls to a VAD Callflow
2) The VAD callflow transfers the call to B using bridge mode, so the connection "A <-> IVR <-> B" is established

In that scenario, if B puts the call on hold, A will hear the music on hold. The IVR will not notice the difference.
If B drops the call, then A can continue talking to the IVR. But the IVR can not decide when the call to B ends. It must be B who ends the call.
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 421
Joined: Thu Aug 06, 2009 5:29 pm

Re: disconnecting a call in the workflow

Postby SWSDEV » Wed Nov 04, 2009 6:48 pm

But if I have an external application, I could put the call on hold using the other SDK correct?

I don't want either of them to put the call on hold, but an external timer to put it on hold.
Shahzad Qureshi
SWS Development - 3CX Certified Partner
Custom 3CX integration
Salt Lake City, UT USA
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 246
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: disconnecting a call in the workflow

Postby VAD_Support » Wed Nov 04, 2009 6:59 pm

What do you mean by "other SDK"? I'm not sure if there is an SDK for doing that with 3CX. Maybe you know something I dont... 8)
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 421
Joined: Thu Aug 06, 2009 5:29 pm

Re: disconnecting a call in the workflow

Postby SWSDEV » Wed Nov 04, 2009 7:18 pm

Shahzad Qureshi
SWS Development - 3CX Certified Partner
Custom 3CX integration
Salt Lake City, UT USA
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 246
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: disconnecting a call in the workflow

Postby VAD_Support » Wed Nov 04, 2009 7:25 pm

I never used that API, but I think it is possible to do it.

I think that you should use an external execution component to notify your external component about the call information, and then your external component can use the call control API to put that call on hold after a period of time.

I'm not sure what information is required to do that with the call control API, but from the VAD callflow you can send the ANI, DNIS and CallID to your external component. Maybe with that information you can find the call and manipulate it.
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 421
Joined: Thu Aug 06, 2009 5:29 pm


Return to 3CX Voice Application Designer (VAD)

Who is online

Users browsing this forum: No registered users and 0 guests