- fixed the calculation for concatenated SMSs
based on TS 23.040, Sec. 9.2.3.16
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2556
-- Commit Summary --
* smsops: fix len calc for a concatenated sms
-- File Changes --
M src/modules/smsops/smsops_impl.c (12)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2556.patchhttps://github.com/kamailio/kamailio/pull/2556.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2556
### Description
After updating from 5.3.6 to 5.3.7 Kamailio is no longer increments CSeq for ACK when used together with UAC module.
Usage scenario:
<pre>
|EP1 | Kamailio | PBX
| ->INVITE -> | |
| <- 407 - | |
| - ACK -> | |
| -> INVITE SDP AUTH-> | |
| <- 100 Trying - | |
| | - INVITE SDP -> |
| | <- 407 - |
| | -> ACK -> |
| | - INVITE SDP AUTH -> |
| | <- 100 Trying - |
| | <- 200 OK - |
| <- 200 OK - | |
| - ACK -> | |
| | - ACK -> |
...
</pre>
Kamailio is configured to use dialog module and calling "dlg_manage();"
UAC module is used to authenticate request on the PBX.
Because of the authentication against the PBX the CSeq is being incremented independently between Kamailio & PBX.
ACK that is send to the PBX after 200 OK usually is CSeq + 1 from EP1 ACK message.
After update, Cseq is no longer incremented in ACK which cause re-transmission of 200 OK by the PBX and eventually in 30 sec PBX drops the call because 200 is not being acknowledged.
Dialog configured as:
modparam("dialog", "dlg_flag", FLD_TRACKDLG)
modparam("dialog", "track_cseq_updates", 1)
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "timeout_avp", "$avp(dlgtimeout)")
modparam("dialog", "default_timeout", 43200)
UAC configured as:
modparam("uac", "reg_db_url", DBURL)
modparam("uac", "reg_contact_addr", REG_CONTACT)
modparam("uac", "reg_timer_interval", 10)
modparam("uac", "restore_from_avp","$avp(original_uri_from)")
modparam("uac", "restore_to_avp","$avp(original_uri_to)")
modparam("uac", "restore_dlg", 1)
modparam("uac", "auth_username_avp","$avp(auser)")
modparam("uac", "auth_password_avp","$avp(apass)")
modparam("uac", "auth_realm_avp","$avp(arealm)")
modparam("uac", "restore_mode","manual")
### Possible Solutions
After reverting this commit a973882b064c758972ce40e9ac3a83440c613be1 CSeq started to update properly.
"dialog: skip non-INVITE initial request for cseq update processing"
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2559