HI,
I am trying to use Bandwidth as an SMS carrier and I was able to send out messages. but when I send an outbound message, immediately I get an inbound message but no content on it. it shows like below ( I believe it's some kind of reply from the carrier) :
Incoming messages are not working for me. In the error log I can see the message input as below:
2021/03/31 14:40:06 [error] 29818#0: *38564 FastCGI sent in stderr: "PHP message: [SMS] REQUEST: Array
(
[USER] => www-data
[HOME] => /var/www
[HTTP_CONTENT_TYPE] => application/json; charset=utf-8
[HTTP_USER_AGENT] => bandwidth-api
[HTTP_ACCEPT_ENCODING] => gzip
[HTTP_CONNECTION] => Keep-Alive
[HTTP_HOST] => call.teleprime.com
[HTTP_CONTENT_LENGTH] => 385
[SCRIPT_FILENAME] => /var/www/fusionpbx/app/sms/hook/sms_hook_bandwidth.php
[REDIRECT_STATUS] => 200
[SERVER_NAME] => fusionpbx
[SERVER_PORT] => 443
[SERVER_ADDR] => 158.69.31.48
[REMOTE_PORT] => 60462
[REMOTE_ADDR] => 52.72.24.132
[SERVER_SOFTWARE] => nginx/1.6.2
[GATEWAY_INTERFACE] => CGI/1.1
[HTTPS] => on
[SERVER_PROTOCOL] => HTTP/1.1
[DOCUMENT_ROOT] => /var/www/fusionpbx
[DOCUMENT_URI] => /app/sms/hook/sms_hook_bandwidth.php
[REQUEST_URI] => /app/sms/hook/sms_hook_bandwidth.php
[SCRIPT_NAME] => /app/sms/hook/sms_hook_bandwidth.php
[CONTENT_LENGTH] => 385
[CONTENT_TYPE] => application/json; charset=utf-8
[REQUEST_ME...
PHP message: [SMS] REQUEST: Array
(
[0] => stdClass Object
(
[time] => 2021-03-31T19:40:04.476Z
[type] => message-received
[to] => +18475823220
[description] => Incoming message received
[message] => stdClass Object
(
[id] => 6081d691-4c71-45d6-b488-64ebe053f87d
[owner] => +18475823220
[applicationId] => c52cf3d6-1932-40a7-abd5-013d98cbf62d
[time] => 2021-03-31T19:40:04.336Z
[segmentCount] => 1
[direction] => in
[to] => Array
(
[0] => +18475823220
)
[from] => +12248880042
[text] => Test
)
)
)
PHP message: TO: 0
PHP message: FROM: 0
PHP message: BODY:
PHP message: BODY:
PHP
This implies me that I am getting data from the carrier but some how it's not routing correctly to the Endpoint ( I am using Bria Iphone edition).
But in the MDR's I can see any text data, I see it as below:
I have enabled the email option also but I get email with no details. all I get is below:
subject: Text Message from: 0
in the Body of email:
To: 0
Msg:
I am not sure what I am doing wrong. If any of you people has faced the same issue on inbound messages or any idea on how to fix it would be helpful to me a lot.
I am trying to use Bandwidth as an SMS carrier and I was able to send out messages. but when I send an outbound message, immediately I get an inbound message but no content on it. it shows like below ( I believe it's some kind of reply from the carrier) :
Extension | Time Stamp | Source | Destination | Message | |
---|---|---|---|---|---|
| 43 | 2021-03-31 13:57:20.252985 | 0 | 43 | |
| 43 | 2021-03-31 13:57:18.181877 | 43 | 1XXXXXXXXXX | Test |
Incoming messages are not working for me. In the error log I can see the message input as below:
2021/03/31 14:40:06 [error] 29818#0: *38564 FastCGI sent in stderr: "PHP message: [SMS] REQUEST: Array
(
[USER] => www-data
[HOME] => /var/www
[HTTP_CONTENT_TYPE] => application/json; charset=utf-8
[HTTP_USER_AGENT] => bandwidth-api
[HTTP_ACCEPT_ENCODING] => gzip
[HTTP_CONNECTION] => Keep-Alive
[HTTP_HOST] => call.teleprime.com
[HTTP_CONTENT_LENGTH] => 385
[SCRIPT_FILENAME] => /var/www/fusionpbx/app/sms/hook/sms_hook_bandwidth.php
[REDIRECT_STATUS] => 200
[SERVER_NAME] => fusionpbx
[SERVER_PORT] => 443
[SERVER_ADDR] => 158.69.31.48
[REMOTE_PORT] => 60462
[REMOTE_ADDR] => 52.72.24.132
[SERVER_SOFTWARE] => nginx/1.6.2
[GATEWAY_INTERFACE] => CGI/1.1
[HTTPS] => on
[SERVER_PROTOCOL] => HTTP/1.1
[DOCUMENT_ROOT] => /var/www/fusionpbx
[DOCUMENT_URI] => /app/sms/hook/sms_hook_bandwidth.php
[REQUEST_URI] => /app/sms/hook/sms_hook_bandwidth.php
[SCRIPT_NAME] => /app/sms/hook/sms_hook_bandwidth.php
[CONTENT_LENGTH] => 385
[CONTENT_TYPE] => application/json; charset=utf-8
[REQUEST_ME...
PHP message: [SMS] REQUEST: Array
(
[0] => stdClass Object
(
[time] => 2021-03-31T19:40:04.476Z
[type] => message-received
[to] => +18475823220
[description] => Incoming message received
[message] => stdClass Object
(
[id] => 6081d691-4c71-45d6-b488-64ebe053f87d
[owner] => +18475823220
[applicationId] => c52cf3d6-1932-40a7-abd5-013d98cbf62d
[time] => 2021-03-31T19:40:04.336Z
[segmentCount] => 1
[direction] => in
[to] => Array
(
[0] => +18475823220
)
[from] => +12248880042
[text] => Test
)
)
)
PHP message: TO: 0
PHP message: FROM: 0
PHP message: BODY:
PHP message: BODY:
PHP
This implies me that I am getting data from the carrier but some how it's not routing correctly to the Endpoint ( I am using Bria Iphone edition).
But in the MDR's I can see any text data, I see it as below:
Extension | Time Stamp | Source | Destination | Message | |
---|---|---|---|---|---|
| 43 | 2021-03-31 14:40:06.477081 | 0 | 43 | |
| 43 | 2021-03-31 14:37:04.220367 | 0 | 43 |
I have enabled the email option also but I get email with no details. all I get is below:
subject: Text Message from: 0
in the Body of email:
To: 0
Msg:
I am not sure what I am doing wrong. If any of you people has faced the same issue on inbound messages or any idea on how to fix it would be helpful to me a lot.