Working SMS Integration

Status
Not open for further replies.
Jan 9, 2018
152
16
18
54
Did anyone get SMS to work with DIDWW? First step would be to get inbound SMS to work.
Sorry, we don't use that company. It's a lot to read, but earlier in this thread, I did give some pointers on what to do to add more carriers. That should still be valid information.
 
Jan 9, 2018
152
16
18
54
Yes it is but the DIDww choices for SMS (listed below) don't seem to match the values required by the SMS app.
SMS to HTTP
SMS to SMPP ESME
SMS to SMPP SMSC
SMS to HTTP is likely what you want. The URL it is asking for there is likely equivalent to the "webhook URL" that is used by other carriers.

But I would start with outbound. In most cases, it is easier, because you can test it using cURL without doing any reprogramming. To make inbound work at all, you have to build the receiver--the webhook URL--on your end.
 

dcitelecom

Member
Oct 20, 2021
139
3
18
61
I tried to make DIDww work. I followed the instructions in this post and make ok progress. I am sending an SMS to 5141234567 which is enabled in SMS destinations. DIDWW log says success but I never get the SMS and the freeswitch log shows below info. What am I missing?
]
2022-05-27 23:02:50.994158 99.23% [NOTICE] switch_cpp.cpp:1465 [sms] DIRECTION: inbound
2022-05-27 23:02:50.994158 99.23% [INFO] switch_cpp.cpp:1465 chat console
2022-05-27 23:02:50.994158 99.23% [NOTICE] switch_cpp.cpp:1465 [sms] TO: 5148177@fpbx.xxxxxxx.com
2022-05-27 23:02:50.994158 99.23% [NOTICE] switch_cpp.cpp:1465 [sms] Extension: 5148177
2022-05-27 23:02:50.994158 99.23% [NOTICE] switch_cpp.cpp:1465 [sms] FROM: 0
2022-05-27 23:02:50.994158 99.23% [NOTICE] switch_cpp.cpp:1465 [sms] BODY:
2022-05-27 23:02:50.994158 99.23% [NOTICE] switch_cpp.cpp:1465 [sms] DOMAIN_NAME: fpbx.xxxxxxx.com
2022-05-27 23:02:50.994158 99.23% [NOTICE] switch_cpp.cpp:1465 [sms] MAILSENT (already): nil
2022-05-27 23:02:50.994158 99.23% [NOTICE] switch_cpp.cpp:1465 [sms] Target extension 5148177@fpbx.xxxxxxx.com is not registered, not sending via SIMPLE.
2022-05-27 23:02:50.994158 99.23% [NOTICE] switch_cpp.cpp:1465 [sms] SQL DOMAIN_NAME: SELECT domain_uuid FROM v_domains WHERE domain_name = :domain_name; params:{"domain_name":"fpbx.xxxxxxx.com"}
2022-05-27 23:02:50.994158 99.23% [NOTICE] switch_cpp.cpp:1465 [sms] SQL EXTENSION: SELECT extension_uuid FROM v_extensions WHERE domain_uuid = :domain_uuid and extension = :extension; params:{"domain_uuid":"86x6xx17-0x60-43x2-x16x-X28X9X0406X3","extension":"5148177"}
 

dcitelecom

Member
Oct 20, 2021
139
3
18
61
I am afraid I won't be able to do this without help. I tried to follow the instructions here but no go. All SMS seem to want to go to 5148177. Oddly enough, those numbers are the first 7 digits of an existing extension but not the one I am sending the SMS to. Can anyone assist, please?
 

hamagid

Member
Dec 14, 2020
78
8
8
33
Where do you want to receive the SMS, are you sending it to a registered extension? a ring group?
 

hamagid

Member
Dec 14, 2020
78
8
8
33
So you have an extension 5148177 that is not registered, you have selected a different extension as the target for incoming SMS, you send a SMS to this number, the SMS comes in just fine to fusion and Fusion tries to send the SMS to your unregistered extension 5148177 instead of the extension you have selected?
 

dcitelecom

Member
Oct 20, 2021
139
3
18
61
Not quite. Both extensions are registered on the system. I am sending the SMS to 5141234567 which is enabled in SMS destinations but as per the log above, fusionpbx attempts to deliver the SMS to Extension: 5148177 which is the first 7 seven digits of Extension: 5148177xxx. I understand that I have to build the receiver webhook URL--on my end but I don't know how to do it. I think it's just trying to deliver the SMS to the first extension I created in the system because it doesn't know where to send it. However, it could also be that DIDWW is sending the SMS to 5148177xxx because I configured something wrong and that is my phone number on file with them,
 

dcitelecom

Member
Oct 20, 2021
139
3
18
61
What are the criteria to create the /app/sms/hook/sms_hook_didww.php file?
I see the file was auto-generated by fusionpbx but it's kind of empty when compared to the other hook files.
 

dcitelecom

Member
Oct 20, 2021
139
3
18
61
Would anyone be willing to add DIDWW for a fee? I don't mind paying for support. PM me if interested. Thanks.
 
Status
Not open for further replies.