<!-- 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
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [X] 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 -->
Allow/Disallow the usage of the expired contacts.
Useful when some problems happen with new REGISTERs; allow the usage
of old REGISTERed contacts.
Default value is 0 meaning "disallow the usage of the expired contacts".
(no changes to existing behavior)
Value can be set dinamically via:
kamcmd cfg.set_now_int registrar use_expired_contacts 1
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2234
-- Commit Summary --
* registrar: add use_expired_contacts config param
* registrar: update doc for use_expired_contacts
-- File Changes --
M src/modules/registrar/config.c (5)
M src/modules/registrar/config.h (1)
M src/modules/registrar/doc/registrar_admin.xml (40)
M src/modules/registrar/lookup.c (8)
M src/modules/registrar/registrar.c (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2234.patchhttps://github.com/kamailio/kamailio/pull/2234.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/2234
Similar to #2235. After this one, I can try to collect them up rather than reporting an issue for each module--it's only that the build is killed, so I only see the first one that errors out. I'll see what I can do about that.
```
make[2]: Entering directory '/builddir/build/BUILD/kamailio-5.3.2/src/modules/sms'
gcc -shared -Wl,-O2 -Wl,-E -pthread -rdynamic -ldl -Wl,-Bsymbolic-functions libsms_getsms.o libsms_putsms.o libsms_modem.o sms_funcs.o sms.o sms_report.o libsms_charset.o -o sms.so
make[2]: Leaving directory '/builddir/build/BUILD/kamailio-5.3.2/src/modules/sms'
/usr/bin/ld: sms.o:(.bss+0x40): multiple definition of `queued_msgs'; sms_funcs.o:(.bss+0x11a0): first defined here
/usr/bin/ld: sms.o:(.bss+0x48): multiple definition of `use_contact'; sms_funcs.o:(.bss+0x11a8): first defined here
/usr/bin/ld: sms.o:(.bss+0x4c): multiple definition of `sms_report_type'; libsms_modem.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [../../Makefile.rules:191: sms.so] Error 1
make[1]: *** [Makefile:511: modules] Error 1
make: *** [Makefile:34: every-module] Error 2
```
--
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/2236
Hello all
we just noticed an issue using this function
when we call it with 2 params (display and uri) and the SIP INVITE comes
with a From uri like
sip:anonymous@anonymous.invalid; tag=13133439191609, without <> delimiters,
then doing the uac replace in the ACK we have
2(14923) DEBUG: uac [replace.c:922]: replace_callback(): DOWNSTREAM
direction detected - replacing uri with the new uri
2(14923) DEBUG: uac [replace.c:943]: replace_callback(): Replace [
sip:anonymous@anonymous.invalid] with ["14254350027"
sip:14254350027@1.1.18.171]
2(14923) DEBUG: uac [replace.c:980]: replace_callback(): inserting display
["14254350027"]
And this is the From header replaced
From: sip:14254350027@1.1.18.171"14254350027" <>;tag=13133439191609
But if the call comes with a From header like
<sip:anonymous@anonymous.invalid>; tag=13133439191609
Then this is the From header replaced
2(19741) DEBUG: uac [replace.c:922]: replace_callback(): DOWNSTREAM
direction detected - replacing uri with the new uri
2(19741) DEBUG: uac [replace.c:943]: replace_callback(): Replace [
sip:1241342@1.1.18.171:5074] with ["14254350027" sip:14254350027@1.1.18.171]
2(19741) DEBUG: uac [replace.c:980]: replace_callback(): inserting display
["14254350027"]
From: "14254350027" <sip:14254350027@1.1.18.171>;tag=13133439191609
Were you aware of this kind of behaviour? If possible we will look for a
patch for this.
thanks a lot and regards
david
Hello,
I got this message under some circumstances (the number called)
Jun 12 15:15:01 proxy1 /usr/sbin/kamailio[16096]: ERROR: <core> [core/parser/sdp/sdp.c:228]: set_sdp_payload_fmtp(): Invalid payload location
What means "Payload location" ?
SDP Debug from the callee:
Jun 12 15:15:01 proxy1 /usr/sbin/kamailio[16096]: DEBUG: sdpops [sdpops_mod.c:1626]: sdp_get_helper(): Found SDP v=0#015#012o=- 5793 1 IN IP4 192.168.50.50#015#012s=-#015#012t=0 0#015#012m=audio 24734 RTP/AVP 8 101#015#012c=IN IP4 217.112.190.117#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:18 annexa=yes#015#012a=fmtp:101 0-15#015#012a=ptime:30#015#012a=silenceSupp:off - - - -#015#012a=sendrecv#015#012
SDP Debug called pbx:
Jun 12 15:15:01 proxy1 /usr/sbin/kamailio[16097]: DEBUG: sdpops [sdpops_mod.c:1626]: sdp_get_helper(): Found SDP v=0#015#012o=root 1673681431 1673681431 IN IP4 217.112.180.5#015#012s=Asterisk PBX 11.25.1#015#012c=IN IP4 217.112.180.5#015#012t=0 0#015#012m=audio 10884 RTP/AVP 8 101#015#012a=rtpmap:8 PCMA/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101 0-16#015#012a=ptime:20#015#012a=sendrecv#015#012
--
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/1983
Module: kamailio
Branch: 5.3
Commit: 87e2fcb0289e148f53719fca6f029e03c62a2c72
URL: https://github.com/kamailio/kamailio/commit/87e2fcb0289e148f53719fca6f029e0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-09T09:20:19+01:00
pua_reginfo: extern declaration of global vars in header file
(cherry picked from commit 7afe5b9837d38cd77f75c3028c9134673c95404e)
---
Modified: src/modules/pua_reginfo/pua_reginfo.h
---
Diff: https://github.com/kamailio/kamailio/commit/87e2fcb0289e148f53719fca6f029e0…
Patch: https://github.com/kamailio/kamailio/commit/87e2fcb0289e148f53719fca6f029e0…
---
diff --git a/src/modules/pua_reginfo/pua_reginfo.h b/src/modules/pua_reginfo/pua_reginfo.h
index a15b7e47a8..133191541b 100644
--- a/src/modules/pua_reginfo/pua_reginfo.h
+++ b/src/modules/pua_reginfo/pua_reginfo.h
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -27,9 +27,9 @@
#include "../pua/pua_bind.h"
#include "../usrloc/usrloc.h"
-str default_domain;
-str outbound_proxy;
-str server_address;
+extern str default_domain;
+extern str outbound_proxy;
+extern str server_address;
extern usrloc_api_t ul; /*!< Structure containing pointers to usrloc functions*/
extern pua_api_t pua; /*!< Structure containing pointers to PUA functions*/