{"id":2753,"date":"2021-03-04T23:53:53","date_gmt":"2021-03-04T23:53:53","guid":{"rendered":"https:\/\/www.cyber-cottage.co.uk\/?p=2753"},"modified":"2021-06-11T15:53:41","modified_gmt":"2021-06-11T14:53:41","slug":"an-out-of-the-normal-customer-request","status":"publish","type":"post","link":"https:\/\/www.cyber-cottage.co.uk\/?p=2753","title":{"rendered":"An out of the normal Customer request"},"content":{"rendered":"\n<p>and how we solved it:<\/p>\n\n\n\n<p>We were approached by one of our customers who provides support services to travellers and global companies who had a client that provides maritime engineering services world wide and required an emergency helpline that \u201cfollowed the sun\u201d&nbsp;<\/p>\n\n\n\n<p>Detailed Specification<\/p>\n\n\n\n<p>A single number that called dependant on time the on call support staff.<\/p>\n\n\n\n<p>The calls cannot go to users Voicemail.<\/p>\n\n\n\n<p>The staff members are to be notified by email that the call was taken and who took it.<\/p>\n\n\n\n<p>If the on call staff do not answer the call it is forwarded to our clients call centre.<\/p>\n\n\n\n<p>On completion of the call a copy of the recording in mp3 format is emailed to the on call staff.<\/p>\n\n\n\n<p>Solution.<\/p>\n\n\n\n<p>Our customer uses FreePBX so the core of the project is the use of the Queue application but with some custom dial plan and scripts to exploit and enhance features that are not exposed,&nbsp;<\/p>\n\n\n\n<p>The inbound numbers destination is a \u201ccustom destination\u201d that first sends it to some custom dial plan explained later and then to the \u201cCall Flow Control\u201d application to allow the system to be overridden, It is then sent to the \u201cTime Conditions\u201d application that uses UTC as its time zone to over come issues with daylight saving in different hemispheres, this then send the call to the correct queue depending on time&nbsp;<\/p>\n\n\n\n<p>To allow an email to be sent to staff we used the qgosub variable that is explained <a href=\"https:\/\/www.cyber-cottage.co.uk\/?p=2735\" data-type=\"post\" data-id=\"2735\" target=\"_blank\" rel=\"noreferrer noopener\">HERE<\/a> , this sub routine sends the email on answer. this variable is set by a small dial plan snippet that sets the qgosub variable and an additional one to set a channel variable as the callers callerID number, as its lost when the call is made to the staff members by the queue application.&nbsp;<\/p>\n\n\n\n<p>To make sure calls do not go to voicemail, the queue option \u201ccall confirm\u201d this forces the called staff to press 1 to accept a call, This much overlooked option is useful for many queue scenarios.<\/p>\n\n\n\n<p>If the call is unanswered the call has to be passed to the callcenter with the callerID name tagged with the customers Name, We achieve this with the \u201cSetCallerID\u201d application passing the call onto the client call centre.<\/p>\n\n\n\n<p>Finally when the call is complete we need to email the recording to the customer. To do this with the \u201cPost Call Recording Script\u201d option in Advanced options. (You may need to enable \u201cDisplay Readonly Settings\u201d and \u201cOverride Readonly Settings\u201d), This did require a little lateral thinking as we were already using this script to convert recordings to MP3 and save them to AWSS3 storage, But we didn\u2019t want an email sent after all recordings do we included an additional \u2018if\u2019 statement to check if the qgosub variable was passed over to the script and if it was email the attachment otherwise do nothing.<\/p>\n\n\n\n<p>I hope this shows the flexibility of FreePBX and asterisk and how fairly complex call routings and requests can be fulfilled in a manner that doesn\u2019t require complex dial plans or require high support overheads.<\/p>\n\n\n\n<p>If you want to achieve similar don&#8217;t hesitate to get in touch as by using modules already in FreePBX you&#8217;re not paying to reinvent the wheel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>and how we solved it: We were approached by one of our customers who provides support services to travellers and global companies who had a client that provides maritime engineering services world wide and required an emergency helpline that \u201cfollowed the sun\u201d&nbsp; Detailed Specification A single number that called dependant on time the on call [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2567,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2,3],"tags":[23,40,73,76],"class_list":["post-2753","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-case-studies","tag-asterisk","tag-freepbx","tag-support","tag-voip"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/03\/collaboration.png?fit=97%2C97&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p5daZy-Ip","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2753"}],"version-history":[{"count":3,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2753\/revisions"}],"predecessor-version":[{"id":2770,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2753\/revisions\/2770"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/media\/2567"}],"wp:attachment":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}