{"id":101,"date":"2016-06-03T17:17:09","date_gmt":"2016-06-03T17:17:09","guid":{"rendered":"http:\/\/symbioticindia.in\/docu\/?p=101"},"modified":"2016-06-03T17:17:09","modified_gmt":"2016-06-03T17:17:09","slug":"solved-beginning-of-ivr-message-cut-off","status":"publish","type":"post","link":"http:\/\/symbioticindia.in\/docu\/2016\/06\/03\/solved-beginning-of-ivr-message-cut-off\/","title":{"rendered":"Solved: Beginning of IVR Message Cut off"},"content":{"rendered":"<p><strong>Problem: <\/strong>When calling an inbound line, the first part of the message is chopped off.<\/p>\n<p>Answer: When using IVR\u2019s in FreePBX, cutoff messages rarely happen, because it configures the dialplan to leave a bit of silence at the beginning of the message.<\/p>\n<p>Now, if you aren\u2019t using FreePBX, or if you happen to use an external service like Grasshopper.com, which hosts a [800] number for you and then redirects it wherever you want. Well those services are phone systems, too, most likely asterisk based, and here is where configuration can get tricky. Basically, the 3rd party waits until the [your asterisk box] system answers, and then starts playing, this can chop off a few seconds.<\/p>\n<p>Worse, if you call the IVR directly, you may hear the message perfectly, and you don\u2019t want regular callers to hear unneeded silence.<\/p>\n<p>Let\u2019s solve the first problem first:<\/p>\n<p>This can be fixed easily by editing the asterisk configuration file: extensions_custom.conf<br \/>\nMake sure you have the DID (phone number) of the line, and add this:<\/p>\n<p><code>exten =&gt; 9495556992,1,Answer()<br \/>\nsame =&gt; n,Wait(2)<br \/>\nsame =&gt; n,Goto(ivr-1,s,1) ;this should be the name of your original IVR<br \/>\nsame =&gt; n,Hangup<\/code><br \/>\nIf you don\u2019t know the name of the original ivr, just open \/etc\/asterisk\/extensions_additional.conf and search for your phone number.<\/p>\n<p>If you have the 2nd issue, you will want this similar code:<\/p>\n<p><code>exten =&gt; 9495556992\/18005551234,1,Answer()<br \/>\nsame =&gt; n,Wait(2)<br \/>\nsame =&gt; n,Goto(ivr-1,s,1)<br \/>\nsame =&gt; n,Hangup<br \/>\n<\/code><\/p>\n<p>Notice that we did \/1800xxx this time, this is because we set up the 3rd party service to send our 800 number as the callerid, and we are filtering by caller id, so asterisk knows if the call originates from that line, it will run our new dialplan, which just waits for 2 seconds then forwards it along to the original message <img decoding=\"async\" class=\"wp-smiley\" src=\"http:\/\/hackrr.com\/wp-includes\/images\/smilies\/icon_smile.gif\" alt=\":)\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem: When calling an inbound line, the first part of the message is chopped off. Answer: When using IVR\u2019s in FreePBX, cutoff messages rarely happen, because it configures the dialplan to leave a bit of silence at the beginning of the message. Now, if you aren\u2019t using FreePBX, or if you happen to use an ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"http:\/\/symbioticindia.in\/docu\/2016\/06\/03\/solved-beginning-of-ivr-message-cut-off\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-101","post","type-post","status-publish","format-standard","hentry","category-asterisk"],"_links":{"self":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/comments?post=101"}],"version-history":[{"count":1,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/101\/revisions"}],"predecessor-version":[{"id":102,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/101\/revisions\/102"}],"wp:attachment":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/media?parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/categories?post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/tags?post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}