Search results

  1. J

    FusionPBX SMS Integration with Bandwidth

    After looking a little closer at what you are getting from Bandwidth, I'm amazed that inbound is working at all. It looks like they've changed the data layout from the way this was set up originally. In theory, the following code should match what they are sending now (make sure to make a copy...
  2. J

    FusionPBX SMS Integration with Bandwidth

    I found some code in the sms_email.php that has a little different syntax for array access. If the above doesn't work, try this: if ($debug) { error_log('[SMS] REQUEST: ' . print_r($data, true)); if (gettype($data)=="array") { error_log('[SMS]...
  3. J

    FusionPBX SMS Integration with Bandwidth

    Replace your debug section with this: if ($debug) { error_log('[SMS] REQUEST: ' . print_r($data, true)); if (gettype($data)=="array") { error_log('[SMS] data-type(from array): ' . print_r($data[0]['type'])); //error_log('[SMS]...
  4. J

    FusionPBX SMS Integration with Bandwidth

    No, it does not go through that file on outbound. The "hook" file is only for inbound. But the "callback" from Bandwidth is coming back just like an inbound message, so it DOES go through the "hook" file. All you need to do is to have that "if" statement properly catch the message type and...
  5. J

    FusionPBX SMS Integration with Bandwidth

    Ok, then some variation of that "if" statement should allow you to filter out the "callback" and avoid the error.
  6. J

    softphone recommendations

    Just FYI, it looks like the $459/month and so on pricing is for if you need the entire package of white label benefits. They let you customize your package, and I suspect that most people will be able to get by with half or less of what they are including in that price. That's not to say that...
  7. J

    FusionPBX SMS Integration with Bandwidth

    If your recipient is not getting the outbound message, you might confirm with Bandwidth that they are seeing the OB message and if they can tell you why they aren't delivering it.
  8. J

    FusionPBX SMS Integration with Bandwidth

    Sorry, I can't test this, but try it with this tweak in that one line: if ($data->type != "message-received") { It's the "separate delivery callback" that is causing the error. Also, is the outbound message being received by the recipient? All we're trying to do with these code...
  9. J

    FusionPBX SMS Integration with Bandwidth

    Sorry, I'm using Telnyx API v1. But I thought I remembered someone in that other very long thread mentioning that they got it working with Telnyx v2 API
  10. J

    FusionPBX SMS Integration with Bandwidth

    Try this: <?php include "../root.php"; require_once "resources/require.php"; require_once "../sms_hook_common.php"; if ($debug) { error_log('[SMS] REQUEST: ' . print_r($_SERVER, true)); } if (check_acl()) { if ($_SERVER['CONTENT_TYPE'] == 'application/json; charset=utf-8') {...
  11. J

    FusionPBX SMS Integration with Bandwidth

    Another user, @inder.singh has done some work on the Bandwidth integration for SMS. Maybe he will chime in here. Fair warning, I don't use Bandwidth for SMS, so I can't confirm the following. However, based on this line in the response you got from Bandwidth: [type] => message-received I...
  12. J

    Working SMS Integration

    Check your nginx logs, but it's probably already replying with a HTTP 200 code. If so, maybe add an echo "ok"; before the "route_and_send_sms"? If it's not replying with a HTTP 200, have a look here for info on that.
  13. J

    Autoprovision Cisco5xx - Specific Model 504G

    Glad you got the provisioning working! Make sure you re-enable authentication. I am using 0 in "Resync Periodic". This field is only for if you want the phone to reach out and reprovision automatically every X seconds. In most cases, that's not needed. But I doubt this is causing the call...
  14. J

    Autoprovision Cisco5xx - Specific Model 504G

    http://192.168.0.130/admin/resync?%5B--uid%20user%20--pwd%20password%5Dhttp%3A%2F%2Fmydomain.com%2Fapp%2Fprovision%2F%3Fmac%3D%24MA Make sure to replace: IP address with your phone's IP user with your user password with your password domain - make sure you leave in the "%3A%2F%2F" before it...
  15. J

    Autoprovision Cisco5xx - Specific Model 504G

    Two things: When you add/update the Profile Rule, are you restarting the phone afterwards or otherwise triggering it to provision itself? The resync command I gave you earlier will both set the Profile Rule AND cause the phone to reach out for provisioning. Earlier, where I advised you to try...
  16. J

    Autoprovision Cisco5xx - Specific Model 504G

    Check for any activity from that phone in your nginx access.log or error.log. If you are not seeing activity, then the problem is not the provisioning template, but some other issue. Try the command @DigitalDaz suggested, since that targets http activity. (sngrep targets SIP messages, but in...
  17. J

    Autoprovision Cisco5xx - Specific Model 504G

    Provided that your provisioning template is valid and that device is configured in FusionPBX, it should work. But the syntax is a bit different for the SPA phones. Here's how I provision SPA devices: Determine the IP address (192.168.0.130 in this example), then browse to...
  18. J

    Working SMS Integration

    Disclaimer: I do not use that carrier and didn't write that section of code that handles Plivo, so I can't vouch for it. It looks like you could manually add a default setting for plivo_access_key and plivo_secret_key (category=sms, type=text), and populate them with the auth ID and auth token...
  19. J

    softphone recommendations

    I know this is an old thread, but I thought I would throw in my $0.02: GS Wave (now renamed as Wave Lite) was doing the disconnect when leaving WiFi, until I realized that there is a "WiFi only" setting under advanced settings. I believe that it defaults to "on". Acrobits Groundwire is, so far...
  20. J

    Working SMS Integration

    Yes, as @yukon said, please start a new thread for this.