{"id":687,"date":"2019-12-02T09:48:30","date_gmt":"2019-12-02T01:48:30","guid":{"rendered":"https:\/\/www.myvoipapp.com\/blog\/?p=687"},"modified":"2019-12-02T09:48:30","modified_gmt":"2019-12-02T01:48:30","slug":"monitor-events-in-ivr-call-flow","status":"publish","type":"post","link":"https:\/\/www.myvoipapp.com\/blog\/2019\/12\/02\/monitor-events-in-ivr-call-flow\/","title":{"rendered":"Monitor events in IVR call flow"},"content":{"rendered":"\n<p>In miniSIPServer, we can use IVR-XML script to enable our own services, such as automatic-attendant. With previous IVR-XML set, &#8216;callto&#8217; action will invoke a call to destination and finish the whole IVR process.<\/p>\n\n\n\n<p>But if we want to monitor some events in the call flow, such as we want to check &#8216;busy&#8217; event and change the IVR flow to a new action, what should we do? <\/p>\n\n\n\n<p>Now V37 is released and a key feature is updated in IVR-XML. We can use &#8216;monitor-events&#8217; in &#8216;callto&#8217; action to monitor some events and change the call flow if they are caused.<\/p>\n\n\n\n<p>For example, the &#8216;callto&#8217; action can be configured as below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;action method=\"callto\" name=\"mainAction\"&gt;\n    &lt;destination&gt;100&lt;destination&gt;\n    &lt;monitor-events&gt;\n        &lt;monitor-event detection=\"busy\" nextaction=\"callto101\"\/&gt;\n    &lt;\/monitor-events&gt;\n&lt;\/action&gt;<\/pre>\n\n\n\n<p>In this example, if the call invoked by &#8216;callto&#8217; action is busy, IVR procedure will be changed to next action &#8216;callto101&#8217;. <\/p>\n\n\n\n<p>Please refer to <a rel=\"noreferrer noopener\" aria-label=\"IVR-XML document (opens in a new tab)\" href=\"https:\/\/www.myvoipapp.com\/docs\/mss_services\/IVR-XML\/index.html#element_monitor_events\" target=\"_blank\">IVR-XML document<\/a> for more details about &#8220;monitor-events&#8221; element.<\/p>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/www.myvoipapp.com\/blog\/wp-content\/uploads\/2019\/12\/test_callto.zip\">IVR-XML example<\/a><a href=\"https:\/\/www.myvoipapp.com\/blog\/wp-content\/uploads\/2019\/12\/test_callto.zip\" class=\"wp-block-file__button\" download>Download<\/a><\/div>\n\n\n\n<p>Above zip file is an example of new &#8216;callto&#8217; action. You can save and unzip it into &#8216;xml&#8217; sub-directory where miniSIPServer is installed and configure a new record to test it.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"415\" height=\"217\" src=\"https:\/\/www.myvoipapp.com\/blog\/wp-content\/uploads\/2019\/12\/test_ivr_xml.png\" alt=\"Configure miniSIPServer to trigger IVR-XML\" class=\"wp-image-694\" srcset=\"https:\/\/www.myvoipapp.com\/blog\/wp-content\/uploads\/2019\/12\/test_ivr_xml.png 415w, https:\/\/www.myvoipapp.com\/blog\/wp-content\/uploads\/2019\/12\/test_ivr_xml-300x157.png 300w\" sizes=\"auto, (max-width: 415px) 100vw, 415px\" \/><figcaption>Configure miniSIPServer to trigger IVR-XML<\/figcaption><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In miniSIPServer, we can use IVR-XML script to enable our own services, such as automatic-attendant. With previous IVR-XML set, &#8216;callto&#8217; action will invoke a call to destination and finish the whole IVR process. But if we want to monitor some events in the call flow, such as we want to check &#8216;busy&#8217; event and change the IVR flow to a new action, what should we do? Now V37 is released and a key feature is updated in IVR-XML. We can&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.myvoipapp.com\/blog\/2019\/12\/02\/monitor-events-in-ivr-call-flow\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35,34,1,137],"tags":[267,266,71,265,69],"class_list":["post-687","post","type-post","status-publish","format-standard","hentry","category-minisipserver","category-minisipserver_cloud","category-releases","category-tech-documents","tag-call-flow","tag-event","tag-ivr","tag-v37","tag-xml"],"_links":{"self":[{"href":"https:\/\/www.myvoipapp.com\/blog\/wp-json\/wp\/v2\/posts\/687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myvoipapp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myvoipapp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blog\/wp-json\/wp\/v2\/comments?post=687"}],"version-history":[{"count":6,"href":"https:\/\/www.myvoipapp.com\/blog\/wp-json\/wp\/v2\/posts\/687\/revisions"}],"predecessor-version":[{"id":696,"href":"https:\/\/www.myvoipapp.com\/blog\/wp-json\/wp\/v2\/posts\/687\/revisions\/696"}],"wp:attachment":[{"href":"https:\/\/www.myvoipapp.com\/blog\/wp-json\/wp\/v2\/media?parent=687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blog\/wp-json\/wp\/v2\/categories?post=687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blog\/wp-json\/wp\/v2\/tags?post=687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}