<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for feature requests.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
If you submit a feature request (or enhancement) add the description of what you would like to be added.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
All ips destination of DNS Failover are tried only if either no response or 503 response.
I woud like to try others ips when receiving code other than 503 response (example when receiving 408 from a previous one).
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Expected behavior
#### Actual observed behavior
#### Debugging Data
```
None
```
#### Log Messages
<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
None
```
#### SIP Traffic
<!--
If the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
obvious
```
### Possible Solutions
A possible solution will be to modify the reply_received function of tm's t_reply.c file.
```
int reply_received( struct sip_msg *p_msg )
{
}
```
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a improvement.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
(paste your output here)
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
```
(paste your output here)
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3122
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3122(a)github.com>
Module: kamailio
Branch: 5.6
Commit: 92e0dc0c3a8fe17d18fad944bfeb3d9102c2ca6c
URL: https://github.com/kamailio/kamailio/commit/92e0dc0c3a8fe17d18fad944bfeb3d9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-06-02T13:49:05+02:00
ctl: skip checking end tag for BINRPC_T_DOUBLE values
- related to GH #3123
(cherry picked from commit 72901b7822c5684f8a10faa91118f3fd6de6c01a)
---
Modified: src/modules/ctl/binrpc.h
---
Diff: https://github.com/kamailio/kamailio/commit/92e0dc0c3a8fe17d18fad944bfeb3d9…
Patch: https://github.com/kamailio/kamailio/commit/92e0dc0c3a8fe17d18fad944bfeb3d9…
---
diff --git a/src/modules/ctl/binrpc.h b/src/modules/ctl/binrpc.h
index da4524878c..94ced22ea2 100644
--- a/src/modules/ctl/binrpc.h
+++ b/src/modules/ctl/binrpc.h
@@ -730,7 +730,7 @@ inline static unsigned char* binrpc_read_record(struct binrpc_parse_ctx* ctx,
type=*p & 0xf;
len=*p>>4;
p++;
- if (len & 8){
+ if ((type!=BINRPC_T_DOUBLE) && (len & 8)){
end_tag=1; /* possible end mark for array or structs */
/* we have to read len bytes and use them as the new len */
p=binrpc_read_int(&len, len&7, p, end, err);
Module: kamailio
Branch: master
Commit: 72901b7822c5684f8a10faa91118f3fd6de6c01a
URL: https://github.com/kamailio/kamailio/commit/72901b7822c5684f8a10faa91118f3f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-06-02T12:48:38+02:00
ctl: skip checking end tag for BINRPC_T_DOUBLE values
- related to GH #3123
---
Modified: src/modules/ctl/binrpc.h
---
Diff: https://github.com/kamailio/kamailio/commit/72901b7822c5684f8a10faa91118f3f…
Patch: https://github.com/kamailio/kamailio/commit/72901b7822c5684f8a10faa91118f3f…
---
diff --git a/src/modules/ctl/binrpc.h b/src/modules/ctl/binrpc.h
index da4524878c..94ced22ea2 100644
--- a/src/modules/ctl/binrpc.h
+++ b/src/modules/ctl/binrpc.h
@@ -730,7 +730,7 @@ inline static unsigned char* binrpc_read_record(struct binrpc_parse_ctx* ctx,
type=*p & 0xf;
len=*p>>4;
p++;
- if (len & 8){
+ if ((type!=BINRPC_T_DOUBLE) && (len & 8)){
end_tag=1; /* possible end mark for array or structs */
/* we have to read len bytes and use them as the new len */
p=binrpc_read_int(&len, len&7, p, end, err);
Module: kamailio
Branch: master
Commit: a81266d38d500dfc7f7fda4c3903d375fabe8d24
URL: https://github.com/kamailio/kamailio/commit/a81266d38d500dfc7f7fda4c3903d37…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-06-01T18:16:21+02:00
modules: readme files regenerated - ims_ipsec_pcscf ... [skip ci]
---
Modified: src/modules/ims_ipsec_pcscf/README
---
Diff: https://github.com/kamailio/kamailio/commit/a81266d38d500dfc7f7fda4c3903d37…
Patch: https://github.com/kamailio/kamailio/commit/a81266d38d500dfc7f7fda4c3903d37…
---
diff --git a/src/modules/ims_ipsec_pcscf/README b/src/modules/ims_ipsec_pcscf/README
index 4a1aba9a15..d895e972a5 100644
--- a/src/modules/ims_ipsec_pcscf/README
+++ b/src/modules/ims_ipsec_pcscf/README
@@ -314,6 +314,8 @@ ipsec_create("location", "1");
+ 0x20 (32) - do not reset the destination URI.
+ 0x40 (64) - use user equipment client port as target for TCP
requests.
+ + 0x80 (128) - set transport parameter in the new dst uri for
+ TCP requests.
This is an optional parameter, default value - 0.
Example 1.12. ipsec_forward