{"id":1055,"date":"2012-02-12T00:32:05","date_gmt":"2012-02-12T07:32:05","guid":{"rendered":"http:\/\/emresaglam.com\/blog\/?p=1055"},"modified":"2012-02-12T00:34:35","modified_gmt":"2012-02-12T07:34:35","slug":"stupid-freepbx-issue","status":"publish","type":"post","link":"https:\/\/emresaglam.com\/blog\/blog\/2012\/02\/12\/stupid-freepbx-issue\/","title":{"rendered":"Stupid freepbx issue"},"content":{"rendered":"<p>For a long while I wasn&#8217;t able to pinpoint this really stupid issue where my extensions couldn&#8217;t call each other however my trunk calls were OK. It first surfaced by not being able to point my BV to my internal extension, but I brushed it out since I had a shitty Comcast router. I first thought that was the culprit.<\/p>\n<p>Then when I was fixing my parents&#8217; extensions in Turkey I realized that I cannot make any extension to extension calls but I still can use outbound routes. After hours of troubleshooting I realized that dialparties.agi script would always return: &#8220;Returned from dialparties with no extensions to call and DIALSTATUS:&#8221;<\/p>\n<p>I manually ran the script and found out that it was spitting out this error message: &#8220;PHP Parse error:\u00a0 syntax error, unexpected T_GOTO, expecting T_STRING in \/var\/lib\/asterisk\/agi-bin\/phpagi.php on line 1234&#8221;<\/p>\n<p>Then I found <a href=\"http:\/\/www.freepbx.org\/v2\/ticket\/3903\">this bug in freepbx Trac<\/a>. I ended up changing the name of the goto function in line 1234 of phpagi.agi to go_to and things started to work fine. \ud83d\ude1b<\/p>\n<p>Apparently this started to happen when I upgraded my ubuntu which upgraded the php to version 5.3.2.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a long while I wasn&#8217;t able to pinpoint this really stupid issue where my extensions couldn&#8217;t call each other however my trunk calls were OK. It first surfaced by not being able to point my BV to my internal extension, but I brushed it out since I had a shitty Comcast router. I first &hellip; <a href=\"https:\/\/emresaglam.com\/blog\/blog\/2012\/02\/12\/stupid-freepbx-issue\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Stupid freepbx issue<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[45,47,9,46],"_links":{"self":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/1055"}],"collection":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/comments?post=1055"}],"version-history":[{"count":4,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/1055\/revisions"}],"predecessor-version":[{"id":1059,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/1055\/revisions\/1059"}],"wp:attachment":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/media?parent=1055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/categories?post=1055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/tags?post=1055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}