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 open5gs-hss support sms over ims? #297
Comments
open5gs HSS does support sending SMSC information upon successful IMS registration. Can you please send the pcap of the registration + sending SMS scenario? Also, are you using |
Hi, herlesupreeth I have 3 questions. Question 2: Question 3:
Thanks. |
Please always attach a pcap to debug. Just logs is not enough. I would suggest to take a pcap of UE registration and then followed by sending SMS.
yep, its SMSC address programmed in the SIM
Actually MO-SMS in SMS over IMS is not routed based on Request-URI rather the MSISDN in the payload. So the modification you did in my opinion is not needed
There is no buffering mechanism if the recipient UE is not registered or in airplane mode. It tries to deliver for 2 times and then drops
There is mechanism to remove old IPSec ports in P-CSCF after a delay. P-CSCF takes care of directing the SIP packets to correct IPSec ports so no need to worry about that even if there are multiple IPSec ports for the same IMPI/IMPU |
In kamailio_smsc.cfg There is the log: Do you have the plan to add sms buffering mechanism ? Thanks. |
Unfortunately no. I no longer actively work on IMS. |
sorry, it's my fault, i didn't put the right pcap file. I mode no modification to kamailio_smsc.cfg. If i do not annotate the code of below: Another question: I saw ’reginfo_subscribe("$var(uri)", "SUBSCRIBE_EXPIRE");‘ in kamailio_smsc.cfg and SUBSCRIBE_EXPIRE is 7200s. MO-user send one sms but mt-user is offline, smsc will send subscribe req to scscf via icscf. Then scscf sends notify of 'state="terminated" 'to smsc . I observed the subscribe-notify information exchange from the capture packets . When mt-user registered again , it's reg state changed but no NOTIFY info could be received from scscf. Thanks a lot. |
Change the below settings in kamailio_scscf.cfg i.e. set it to 1. Then reg status will then be published to watchers modparam("pua_reginfo", "publish_reginfo", 1) |
Can you please let me know whether the above change fix your issue? |
Sorry for reply late. I saw smsc received state-change-notification only when ue turned into offline ,that is terminated state. When UE became online again, smsc didn't receive notification. kamailio version i used is 'https://github.com/herlesupreeth/kamailio/tree/5.3/', not same as the version from docker_open5gs/ims_base/Dockerfile/branch 5.3. The two versions are very different. The former one works well basically and i haven't tried the one in docker_open5gs. Thanks. |
The only explanation I can think of is that the contact has changed, for example in the NOTIFY to SMSC (packet 19544), I see UE having contact - sip:460080120073571@172.10.0.144:31949;alias=172.10.0.144 Notice that ports have changed even though the IMPI/IMPU has remained same |
I set up volte environment to test sms over ims based on open5gs-hss without using PyHSS. When the ues register ims successfully, I send sms from mo-user to mt-user.
The kamailio-smsc received mo-sms and send RP-ACK to the mo-user,but it did not send sms to the mt-user.
The smsc log:
9(15003) ERROR: <script>: 3GPP-SMS: MESSAGE (sip:13820073901@ims.mnc001.mcc001.3gppnetwork.org (192.168.12.195:37013) to tel:+7, Y6ecbU7nE@172.10.9.1)
9(15003) ERROR: <script>: SMS for 13820073902 "901" (Valid: 0 )
9(15003) ERROR: <script>: SMS from 3GPP/VoLTE
9(15003) ERROR: <script>: -------------------------------------
9(15003) ERROR: <script>: FROM 13820073901
9(15003) ERROR: <script>: TO 13820073902
9(15003) ERROR: <script>: TEXT 901
9(15003) ERROR: <script>: DCS 0
9(15003) ERROR: <script>: SMS-Task
9(15003) ERROR: <script>: -------------------------------------
9(15003) ERROR: <script>: FROM 13820073901
9(15003) ERROR: <script>: TO 13820073902
9(15003) ERROR: <script>: TEXT 901
9(15003) ERROR: <script>: DCS 0
9(15003) ERROR: <script>: SMS to Outbound
9(15003) ERROR: <script>: -------------------------------------
9(15003) ERROR: <script>: FROM 13820073901
9(15003) ERROR: <script>: TO 13820073902
9(15003) ERROR: <script>: TEXT 901
I found there is no smsc config parameter in open5gs-hss yaml file.
How does smsc know where is the mt-user? It should to query hss to get the route info of the mt-user.
In /etc/kamailio_smsc/, there are only two files: smsc.cfg and kamailio_smsc.cfg, with no hss configuration .
Should smsc configure 'DiameterPeer' in smsc.xml just like in scscf.xml to setup diameter session with open5gs-hss?
Or smsc just submit mt-message to scscf for the mt-user by default ? what causes the smsc not to send sms to the mt-user ?
In open5gs hss.yaml: sms_over_ims: "sip:smsc.mnc001.mcc001.3gppnetwork.org:7060;transport=tcp" .
Does it need to configure in open5gs-hss for sms over ims.?
But i still cannot get the answer for the problem above, although I found the cause for not sending sms to mt-user: SIP to address: "tel:+7" . Here in file of kamailio_smsc it is considered as SMS_TO_OUTBOUND and processed unsuccessfully。
Thanks a lot.
The text was updated successfully, but these errors were encountered: