We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

on call end function?

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
mkassing
Posts: 2
Joined: Fri Feb 05, 2016 2:36 pm

on call end function?

Post by mkassing »

I can not find this in the docs for the life of me. Is there an on call end function whereby I can set a page to be auto hit when the call terminates? I have so many more questions than this but we shall start there.

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: on call end function?

Post by support »

Hey mkassing,

We apologize for the delay in getting back to you. We wanted to get some clarification on what you were exactly looking for with your application. Are you looking to have some sort of API return data regarding the call when it terminates?

Regards,
Plum Support

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: on call end function?

Post by support »

Hi,

You can catch the disconnect event in the call and use this to execute any code you want post-call. This should be a global catch handler in your root document, if you'd like for this catch handler to persist throughout all of your scripts (without having to re-define it in every script). Steps for how to utilize a root document can be found here (basically a global script where all of your variables, forms, catch handlers, etc will be accessible globally throughout all of your pages): http://www.plumvoice.com/docs/dev/devel ... otdocument

With that being said, a sample of utilizing the catch handler for the disconnect event would be similar to:

Code: Select all

<catch event="connection.disconnect.hangup">
	<submit next="http://example.com/some_script.php" namelist="some_variable another_variable" method="post" />
</catch>
What this catch block does, is catch the caller disconnecting, and then uses the <submit> tag to submit some variables (in this example some_variable and another_variable) to the script at http://example.com/some_script.php via POST, for processing. Anything within this <catch> block will execute after the caller is disconnected, so there's no affect on the caller experience.

This event can also be triggered manually through the using the <disconnect/> tag, such that you can disconnect the call through your application code and this post-call event will still execute.

Hopefully that help, but please let us know if you have any further questions.

Regards,
Plum Support

mkassing
Posts: 2
Joined: Fri Feb 05, 2016 2:36 pm

Re: on call end function?

Post by mkassing »

Okay, where would I find more information like this on my own? Can you send me a link to the docs where I could have found this usage?

Thanks!

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: on call end function?

Post by support »

Hi mkassing,

You can find more information like this right on our Plum Dev Documentation site. Here is the link you requested: http://www.plumvoice.com/docs/dev/devel ... ence:start

The information you were specifically asking about was outlined in Section 8: Root Documents.

Please let us know if you have any other questions.

Regards,
Plum Support

Post Reply