Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does the SMSC module support sending emojis? #310

Open
Helloworld1668 opened this issue Apr 22, 2024 · 5 comments
Open

Does the SMSC module support sending emojis? #310

Helloworld1668 opened this issue Apr 22, 2024 · 5 comments

Comments

@Helloworld1668
Copy link

Hello buddy !
I have a question, does the SMSC module support sending emojis ? Such as
image?
The kamailio project version is 5.3 !
I am currently debugging and can send Chinese and English, but sending emojis causes SMSC to core dump.
Have you encountered a similar issue in your environment? Could you help me solve this problem?
image

2024-04-22T03:24:18.384715100Z Deploying component: 'smsc-1'
2024-04-22T03:24:18.396960151Z mysqld is alive
2024-04-22T03:24:28.476942463Z 0(21) INFO: [core/sctp_core.c:74]: sctp_core_check_support(): SCTP API not enabled - if you want to use it, load sctp module
2024-04-22T03:24:28.477898841Z 0(21) INFO: [core/tcp_main.c:5042]: init_tcp(): using epoll_lt as the io watch method (auto detected)
2024-04-22T03:24:28.477900364Z loading modules under config path: /usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/:/usr/lib/kamailio/modules_k/:/usr/lib/kamailio/modules/:/usr/lib/x86_64-linux-gnu/kamailio/modules/:/usr/local/lib64/kamailio/modules
2024-04-22T03:24:28.477932109Z Listening on
2024-04-22T03:24:28.477934663Z udp: 10.18.2.21 [10.18.2.21]:7090
2024-04-22T03:24:28.477942826Z tcp: 10.18.2.21 [10.18.2.21]:7090
2024-04-22T03:24:28.477945041Z Aliases:
2024-04-22T03:24:28.477960766Z : smsc.ims.mnc011.mcc460.3gppnetwork.org:
2024-04-22T03:24:28.477962680Z
2024-04-22T03:24:28.481455522Z 0(21) INFO: http_client [http_client.c:308]: mod_init(): HTTP proxy port set to 0. Disabling HTTP proxy
2024-04-22T03:24:28.481492672Z 0(21) INFO: utils [utils.c:255]: mod_init(): forward functionality disabled 0(21) INFO: utils [utils.c:177]: pres_db_init(): xcap_auth_status function is disabled
2024-04-22T03:24:28.485359101Z 0(21) WARNING: dialplan [dp_db.c:292]: dp_load_db(): no data in the db
2024-04-22T03:24:28.490559607Z 0(21) INFO: pua [pua.c:413]: db_restore(): the query returned no result
2024-04-22T03:24:28.490774222Z 0(21) INFO: [main.c:2779]: main(): processes (at least): 14 - shm size: 67108864 - pkg size: 8388608
2024-04-22T03:24:28.491580759Z 0(21) INFO: [core/udp_server.c:154]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992
2024-04-22T03:24:28.491586965Z 0(21) INFO: [core/udp_server.c:206]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
2024-04-22T03:24:40.738631924Z 3(24) ERROR: <script>: 3GPP-SMS: MESSAGE (sip:+8618107550088@ims.mnc011.mcc460.3gppnetwork.org (172.22.0.20:6060) to tel:+8613800138000, quecbGpSm@10.56.5.77)
2024-04-22T03:24:40.738643089Z 3(24) ERROR: <script>: SMS for 18107550021 "" (Valid: 0 )
2024-04-22T03:24:40.821763598Z 13(34) CRITICAL: [core/pass_fd.c:277]: receive_fd(): EOF on 9
2024-04-22T03:24:40.821814955Z 0(21) ALERT: [main.c:766]: handle_sigs(): child process 24 exited by a signal 11
2024-04-22T03:24:40.821818277Z 0(21) ALERT: [main.c:769]: handle_sigs(): core was generated
2024-04-22T03:24:40.821820338Z 0(21) INFO: [main.c:792]: handle_sigs(): terminating due to SIGCHLD
2024-04-22T03:24:40.821838291Z 5(26) INFO: [main.c:847]: sig_usr(): signal 15 received
2024-04-22T03:24:40.821840331Z 4(25) INFO: [main.c:847]: sig_usr(): signal 15 received
2024-04-22T03:24:40.821929643Z 2(23) INFO: [main.c:847]: sig_usr(): signal 15 received
2024-04-22T03:24:40.822417402Z 13(34) CRITICAL: [core/pass_fd.c:277]: receive_fd(): EOF on 11
2024-04-22T03:24:40.822430628Z 13(34) CRITICAL: [core/pass_fd.c:277]: receive_fd(): EOF on 10
2024-04-22T03:24:40.822462417Z 9(30) INFO: [main.c:847]: sig_usr(): signal 15 received
2024-04-22T03:24:40.822628044Z 13(34) CRITICAL: [core/pass_fd.c:277]: receive_fd(): EOF on 8
2024-04-22T03:24:40.823136894Z 13(34) CRITICAL: [core/pass_fd.c:277]: receive_fd(): EOF on 15
2024-04-22T03:24:40.823750688Z 12(33) INFO: [main.c:847]: sig_usr(): signal 15 received
2024-04-22T03:24:40.823761952Z 13(34) INFO: [main.c:847]: sig_usr(): signal 15 received
2024-04-22T03:24:40.823765079Z 6(27) INFO: [main.c:847]: sig_usr(): signal 15 received
2024-04-22T03:24:40.823767265Z 8(29) INFO: [main.c:847]: sig_usr(): signal 15 received
2024-04-22T03:24:40.823780899Z 10(31) INFO: [main.c:847]: sig_usr(): signal 15 received
2024-04-22T03:24:40.824200665Z 7(28) INFO: [main.c:847]: sig_usr(): signal 15 received
2024-04-22T03:24:40.824474661Z 11(32) INFO: [main.c:847]: sig_usr(): signal 15 received
2024-04-22T03:24:40.892174787Z 0(21) WARNING: tm [h_table.c:160]: free_cell_helper(): unexpected tm cell content: 0x7f6392164c18
2024-04-22T03:24:40.968914893Z /kamailio_init.sh: line 57: 21 Segmentation fault (core dumped) kamailio -f /etc/kamailio_smsc/kamailio_smsc.cfg -P /kamailio_smsc.pid -DD -E -e

@herlesupreeth
Copy link
Owner

As far as I know, emojis should be working with latest kamailio used in this repo. Not sure about kamailio 5.3 since I havent tested that

@Helloworld1668
Copy link
Author

Hello, buddy,
Thank you for your help. The latest SMS code indeed supports emoticons, but I encountered a problem. The SMS module has a character length limit, as shown in the following log prompt. Is there any parameter that can be adjusted?

2024-04-24T05:59:01.837950514Z  3(24) ERROR: <script>: SMS for  "" (Valid: 0 )

2024-04-24T05:59:14.466167796Z 2(23) ERROR: <script>: 3GPP-SMS: MESSAGE (sip:+8618107550088@ims.mnc011.mcc460.3gppnetwork.org (172.22.0.20:6060) to tel:+8613800138000, bnecb4LQJ@10.46.2.1)
2024-04-24T05:59:14.466173859Z 2(23) ERROR: smsops [smsops_impl.c:1055]: decode_3gpp_sms(): Length of TP-User-Data payload exceeds maximum length!
2024-04-24T05:59:14.466175929Z 2(23) ERROR: smsops [smsops_impl.c:1320]: pv_get_sms(): Error getting/decoding RP-Data from request!
2024-04-24T05:59:14.466191554Z 2(23) ERROR: smsops [smsops_impl.c:1055]: decode_3gpp_sms(): Length of TP-User-Data payload exceeds maximum length!
2024-04-24T05:59:14.466194545Z 2(23) ERROR: smsops [smsops_impl.c:1320]: pv_get_sms(): Error getting/decoding RP-Data from request!
2024-04-24T05:59:14.466196517Z 2(23) ERROR: smsops [smsops_impl.c:1055]: decode_3gpp_sms(): Length of TP-User-Data payload exceeds maximum length!
2024-04-24T05:59:14.466198406Z 2(23) ERROR: smsops [smsops_impl.c:1320]: pv_get_sms(): Error getting/decoding RP-Data from request!
2024-04-24T05:59:14.466200311Z 2(23) ERROR: <script>: SMS for "" (Valid: )
2024-04-24T05:59:14.466255812Z 2(23) ERROR: smsops [smsops_impl.c:1055]: decode_3gpp_sms(): Length of TP-User-Data payload exceeds maximum length!
2024-04-24T05:59:14.466276249Z 2(23) ERROR: smsops [smsops_impl.c:1903]: isRPDATA(): Error getting/decoding RP-Data from request!

@Helloworld1668
Copy link
Author

Hi buddy!
I found the relevant code for smsops and found that the code follows the current standard rules. However, for messages that exceed the current length range, how should we handle them? Can you provide some support for me?
image

@Helloworld1668
Copy link
Author

Hi buddy !
This is the pcap .
image

hw-hw-sms-0424.pcap.zip

@herlesupreeth
Copy link
Owner

herlesupreeth commented Apr 25, 2024

The SMS module has a character length limit, as shown in the following log prompt. Is there any parameter that can be adjusted?

I dont think there is any parameter that can be adjusted since SMS concatenation is not supported in kamailio SMSC (https://thesmsworks.co.uk/blog/concatenated-sms/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants