3CX webhook returning Code 500 - Internal Error when receiving SMS from Telnyx

Status
Not open for further replies.

Connextek

Premier Customer
Joined
Jan 13, 2023
Messages
6
Reaction score
0
Hi there,

3CX version: 18.0 Update 4 (Build 955)

We've been having an issue with out 3CX PBX since a few weeks when receiving SMS from external numbers, using Telnyx trunks. Outbound SMS using the same Telnyx trunk/number works fine, but anything inbound fails. Below are the payload and the response header (I edited it replacing some confidential Infos with ****

PAYLOAD:
{
"autoresponse_type": null,
"cc": [],
"completed_at": null,
"cost": null,
"direction": "inbound",
"encoding": "GSM-7",
"errors": [],
"from": {
"carrier": "Bell & Virgin",
"line_type": "Wireless",
"phone_number": "+1514718****"
},
"id": "57bf8aa0-6def-4693-b735-86cc1ab69c85",
"media": [],
"messaging_profile_id": "40017755-4cf3-4552-854d-93d543794287",
"organization_id": "2830ab1c-0d41-43d0-b4e7-fafddbc2f9a3",
"parts": 1,
"received_at": "2023-02-24T13:03:58.601+00:00",
"record_type": "message",
"sent_at": null,
"subject": "",
"tags": [
"Co*****ek"
],
"text": "this is a test",
"to": [
{
"carrier": "Telnyx",
"line_type": "Wireless",
"phone_number": "+1438803****",
"status": "webhook_delivered"
}
],
"type": "SMS",
"valid_until": null,
"webhook_failover_url": null,
"webhook_url": "https://messaging.3cx.com/v3/webhook/5DXCC-CGMG2-LOQTY-74PJ1-W175K/telnyx/sms/gpnkk**********"
}

REPONSE HEADER:
  • date: Fri, 24 Feb 2023 13:03:59 GMT
  • content-type: text/plain; charset=utf-8
  • content-length: 21
  • connection: keep-alive
  • content-security-policy: default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests
  • x-dns-prefetch-control: off
  • expect-ct: max-age=0
  • x-frame-options: SAMEORIGIN
  • strict-transport-security: max-age=15552000; includeSubDomains
  • x-download-options: noopen
  • x-content-type-options: nosniff
  • x-permitted-cross-domain-policies: none
  • referrer-policy: no-referrer
  • x-xss-protection: 0
  • access-control-allow-origin: messaging.3cx.com
  • vary: Origin
  • access-control-allow-credentials: true
  • etag: W/"15-/6VXivhc2MKdLfIkLcUE47K6aH0"
  • x-cloud-trace-context: d59128f0b3ab12e0e1d8c9a58859247a
  • cf-cache-status: DYNAMIC
  • set-cookie: __cf_bm=7IyJ0rD5dx5tH6DBjeX2uDWvzuiI1Vly.LA_2IAnwyA-1677243839-0-Af7NoRUOLI5AcrcWItEP5WIkFwHi3fupwy/nkFIWGL8GprmzUympWyhosQ1mLOrIP1io6oyResEj299z6dH+bGs=; path=/; expires=Fri, 24-Feb-23 13:33:59 GMT; domain=.3cx.com; HttpOnly; Secure; SameSite=None
  • server: cloudflare
  • cf-ray: 79e867889b8d3adb-IAD

Other details:
  • When testing the messaging setup within 3CX, it fails with the following error : The connection was refused. Please run a firewall check to identify the issue. Messages cannot be received until this issue is resolved.
  • Strange enough , all firewall tests are successful, and as a troubleshooting step we forwarded all ports to our PBX and removed any firewall rules that would be causing issues.

Are the more in details logs that we could get from 3CX somewhere that would give more details as of why the test fails ?

Thank you
 
Your Webhook URL will not work anymore. The messaging proxy has been taken down.

You should have reconfigured your SMS via the trunk directly instead.
 
Hi,

We actually tried that way but when we configure the SMS via the trunk we don't have any options listed in the user extension in "Can send SMS via". Are we supposed to have an outbound rule even though we don't want to make calls out of this trunk but only SMS?

Trunk settings

1677251866186.png

Extension settings

1677251870558.png

Inbound route (not needed for SMS I guess ?)

1677251930167.png
 

Attachments

  • 1677251841567.png
    1677251841567.png
    34.7 KB · Views: 6
So, basically, the only numbers we can assign to extensions from the "Can send via" option are the numbers configured in the Routes from the "Messaging" --> "Facebook & SMS" trunks.

1677252445648.png
 
We are running 3CX 18.0 Update 4 (Build 955), these options are not available

3CX Desktop or web clients only shows the following. Does it mean SMS are not working anymore on 18.0 update 4 ?

1677253565243.png
 
  • Like
Reactions: YiannisH_3CX
WIll be updating to U6 and try that again. Thank you kind sir !
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,973
Messages
590,074
Members
164,895
Latest member
jasonkkrause