Hi, guys!
Pua module provides a callback "send_publish". One of the parameters is "outbound_proxy", but pua_reginfo does not use it, even if the parameter is specified.
Documentation says: "The outbound_proxy uri to be used when sending Subscribe requests."
Any reason to use it only for SUBSCRIBE, and not for PUBLISH?
If PR is acceptable, do I need to correct documentation for pua_reginfo module?
I have studied the contributing gide, but if something is not OK - please point out,.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1176
-- Commit Summary --
* Update usrloc_cb.c
-- File Changes --
M src/modules/pua_reginfo/usrloc_cb.c (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1176.patchhttps://github.com/kamailio/kamailio/pull/1176.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/1176
Module: kamailio
Branch: master
Commit: 8eb84f76a6d52598bb2fd5d13b96fba4c6326b7f
URL: https://github.com/kamailio/kamailio/commit/8eb84f76a6d52598bb2fd5d13b96fba…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-03T14:58:59+02:00
core: parse rr - reset head in case of parse error
- avoid acessing an invalid pointer
- proper support if trying to parse into an existing rr list in a second
attempt (not the case so far)
---
Modified: src/core/parser/parse_rr.c
---
Diff: https://github.com/kamailio/kamailio/commit/8eb84f76a6d52598bb2fd5d13b96fba…
Patch: https://github.com/kamailio/kamailio/commit/8eb84f76a6d52598bb2fd5d13b96fba…
---
diff --git a/src/core/parser/parse_rr.c b/src/core/parser/parse_rr.c
index 4fb32b0265..5740461f6c 100644
--- a/src/core/parser/parse_rr.c
+++ b/src/core/parser/parse_rr.c
@@ -55,6 +55,13 @@ static inline int do_parse_rr_body(char *buf, int len, rr_t **head)
trim_leading(&s);
last = 0;
+ if (*head) {
+ /* go to last rr in list */
+ last = *head;
+ while (last->next) {
+ last = last->next;
+ }
+ }
while(1) {
/* Allocate and clear rr structure */
@@ -128,7 +135,8 @@ static inline int do_parse_rr_body(char *buf, int len, rr_t **head)
error:
if (r) free_rr(&r);
- free_rr(head); /* Free any contacts created so far */
+ free_rr(head); /* Free any rr created so far */
+ *head = NULL;
LM_ERR("Failed parsing rr header body [%.*s]\n", len, ZSW(buf));
return -1;
Using latest master commit. Running on AWS EC2 with elastic IP.
If using advertised_address="ELASTICIP" the VIA headers etc get changed correctly but the record route header does not, it still uses the internal IP of the host.
If I add:
listen=udp:0.0.0.0:5060 advertise ELASTICIP:5060
The RR advertises the correct IP.
According to the documentation here:
https://www.kamailio.org/wiki/cookbooks/5.0.x/core#advertised_address
It should be enough with the advertised_address parameter. Hence, seems to be a problem with the advertised_address parameter.
--
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/1174