I set the flag to 2 and repeated the test:
You can see on the second route (second block) XAVP value (str) contains
the ip, but $du is not set
:(
OK
```
xavp_print_list_content(): +++++ start XAVP list: 0x7f9f1c815e08
(0x7f9f1c815ed8) (level=1)
xavp_print_list_content(): *** (l:1 - 0x7f9f1c815e08) XAVP name:
dstid -->
xavp_print_list_content(): XAVP id: 1762493352
xavp_print_list_content(): XAVP value type: 2
xavp_print_list_content(): XAVP value (str): cuore_1
xavp_print_list_content(): *** (l:1 - 0x7f9f1c815e08) end <--
xavp_print_list_content(): *** (l:1 - 0x7f9f1c815d40) XAVP name: attrs
xavp_print_list_content(): XAVP id: 1835799177
xavp_print_list_content(): XAVP value type: 2
xavp_print_list_content(): XAVP value (str):
weight=100;maxload=2;duid=cuore_1
xavp_print_list_content(): *** (l:1 - 0x7f9f1c815d40) end
xavp_print_list_content(): *** (l:1 - 0x7f9f1c815c98) XAVP name: grp
xavp_print_list_content(): XAVP id: 7056653
xavp_print_list_content(): XAVP value type: 1
xavp_print_list_content(): XAVP value (int): 1
xavp_print_list_content(): *** (l:1 - 0x7f9f1c815c98) end
xavp_print_list_content(): *** (l:1 - 0x7f9f1c815bd8) XAVP name: uri
xavp_print_list_content(): XAVP id: 8122237
xavp_print_list_content(): XAVP value type: 2
xavp_print_list_content(): XAVP value (str): sip:34.201.28.49:5080
xavp_print_list_content(): *** (l:1 - 0x7f9f1c815bd8) end
xavp_print_list_content(): ----- end XAVP list: 0x7f9f1c815e08 (level=1)
xavp_print_list_content(): *** (l:0 - 0x7f9f1c815eb8) end
xavp_print_list_content(): *** (l:0 - 0x7f9f1c816190) XAVP name:
_dsdst_
xavp_print_list_content(): XAVP id: 1427333496
xavp_print_list_content(): XAVP value type: 6
xavp_print_list_content(): XAVP value: <xavp:0x7f9f1c8160c8>```
NOK
```
xavp_print_list_content(): +++++ start XAVP list: 0x7f9f1c81aae0
(0x7f9f1c81abc8) (level=1)
xavp_print_list_content(): *** (l:1 - 0x7f9f1c81aae0) XAVP name: attrs
xavp_print_list_content(): XAVP id: 1835799177
xavp_print_list_content(): XAVP value type: 2
xavp_print_list_content(): XAVP value (str):
weight=100;maxload=2;duid=cuore_3
xavp_print_list_content(): *** (l:1 - 0x7f9f1c81aae0) end
xavp_print_list_content(): *** (l:1 - 0x7f9f1c81aa38) XAVP name: grp
xavp_print_list_content(): XAVP id: 7056653
xavp_print_list_content(): XAVP value type: 1
xavp_print_list_content(): XAVP value (int): 11
xavp_print_list_content(): *** (l:1 - 0x7f9f1c81aa38) end
xavp_print_list_content(): *** (l:1 - 0x7f9f1c81a978) XAVP name: uri
xavp_print_list_content(): XAVP id: 8122237
xavp_print_list_content(): XAVP value type: 2
xavp_print_list_content(): XAVP value (str): sip:35.170.67.206:5080
xavp_print_list_content(): *** (l:1 - 0x7f9f1c81a978) end
xavp_print_list_content(): ----- end XAVP list: 0x7f9f1c81aae0 (level=1)
xavp_print_list_content(): *** (l:0 - 0x7f9f1c81aba8) end```
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
phone: +34669448337
ᐧ
On Mon, Nov 19, 2018 at 6:20 PM David Villasmil <notifications(a)github.com>
wrote:
Hello Daniel,
here are 2 printouts, one including the first route, for which $du is set
properly, and the second for the second route which is not set.
OK
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: ERROR:
<script>: [DISPATCH] 4-65982(a)192.168.1.201: ds_select_routes was succesful (ruri:
sip:*TESTCALL@proxy.domain.com - du: <sip:1.1.1.1:5080>)
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: exec: ***
cfgtrace:request_route=[DISPATCH] c=[/usr/local/kamailio5/etc/kamailio/kamailio.cfg]
l=1066 a=24 n=pv_xavp_print
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: INFO: <core>
[core/xavp.c:543]: xavp_print_list_content(): +++++ start XAVP list: 0x7f1355973fa0
((nil)) (level=0)
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: INFO: <core>
[core/xavp.c:547]: xavp_print_list_content(): *** (l:0 - 0x7f1355973fa0) XAVP name:
_dsctx_
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: INFO: <core>
[core/xavp.c:548]: xavp_print_list_content(): XAVP id: 1427193258
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: INFO: <core>
[core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 6
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: INFO: <core>
[core/xavp.c:571]: xavp_print_list_content(): XAVP value:
<xavp:0x7f1355973ef8>
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: INFO: <core>
[core/xavp.c:543]: xavp_print_list_content(): +++++ start XAVP list: 0x7f1355973ef8
(0x7f1355973fc0) (level=1)
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: INFO: <core>
[core/xavp.c:547]: xavp_print_list_content(): *** (l:1 - 0x7f1355973ef8) XAVP name:
cnt
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: INFO: <core>
[core/xavp.c:548]: xavp_print_list_content(): XAVP id: 7279890
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: INFO: <core>
[core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 1
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: INFO: <core>
[core/xavp.c:555]: xavp_print_list_content(): XAVP value (int): 0
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: INFO: <core>
[core/xavp.c:581]: xavp_print_list_content(): *** (l:1 - 0x7f1355973ef8) end
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: INFO: <core>
[core/xavp.c:584]: xavp_print_list_content(): ----- end XAVP list: 0x7f1355973ef8
(level=1)
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: INFO: <core>
[core/xavp.c:581]: xavp_print_list_content(): *** (l:0 - 0x7f1355973fa0) end
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: INFO: <core>
[core/xavp.c:584]: xavp_print_list_content(): ----- end XAVP list: 0x7f1355973fa0
(level=0)
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: exec: ***
cfgtrace:request_route=[DISPATCH] c=[/usr/local/kamailio5/etc/kamailio/kamailio.cfg]
l=1071 a=16 n=if
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: exec: ***
cfgtrace:request_route=[DISPATCH] c=[/usr/local/kamailio5/etc/kamailio/kamailio.cfg]
l=1076 a=26 n=xlog
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31192]: DEBUG:
<script>: [DISPATCH] 4-65982(a)192.168.1.201: going to
<sip:*TESTCALL@cuore-proxy.sandbox-sngl.com> via <sip:1.1.1.1:5080>
NOK
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: ERROR:
<script>: [DISPATCH] 5-65982(a)192.168.1.201: ds_select_routes was succesful (ruri:
sip:*TESTCALL@proxy.domain.com - du: <<null>>)
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: exec: ***
cfgtrace:request_route=[DISPATCH] c=[/usr/local/kamailio5/etc/kamailio/kamailio.cfg]
l=1066 a=24 n=pv_xavp_print
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: INFO: <core>
[core/xavp.c:543]: xavp_print_list_content(): +++++ start XAVP list: 0x7f1355978870
((nil)) (level=0)
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: INFO: <core>
[core/xavp.c:547]: xavp_print_list_content(): *** (l:0 - 0x7f1355978870) XAVP name:
_dsctx_
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: INFO: <core>
[core/xavp.c:548]: xavp_print_list_content(): XAVP id: 1427193258
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: INFO: <core>
[core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 6
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: INFO: <core>
[core/xavp.c:571]: xavp_print_list_content(): XAVP value:
<xavp:0x7f13559787c8>
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: INFO: <core>
[core/xavp.c:543]: xavp_print_list_content(): +++++ start XAVP list: 0x7f13559787c8
(0x7f1355978890) (level=1)
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: INFO: <core>
[core/xavp.c:547]: xavp_print_list_content(): *** (l:1 - 0x7f13559787c8) XAVP name:
cnt
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: INFO: <core>
[core/xavp.c:548]: xavp_print_list_content(): XAVP id: 7279890
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: INFO: <core>
[core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 1
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: INFO: <core>
[core/xavp.c:555]: xavp_print_list_content(): XAVP value (int): 0
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: INFO: <core>
[core/xavp.c:581]: xavp_print_list_content(): *** (l:1 - 0x7f13559787c8) end
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: INFO: <core>
[core/xavp.c:584]: xavp_print_list_content(): ----- end XAVP list: 0x7f13559787c8
(level=1)
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: INFO: <core>
[core/xavp.c:581]: xavp_print_list_content(): *** (l:0 - 0x7f1355978870) end
Nov 19 18:15:15 localhost /usr/local/kamailio5/sbin/kamailio[31189]: INFO: <core>
[core/xavp.c:584]: xavp_print_list_content(): ----- end XAVP list: 0x7f1355978870
(level=0)
Thanks for looking into this!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/kamailio/kamailio/issues/1728#issuecomment-439991735>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF36ZfvCtDASQxhlY98cdpw6zFfesEABks5uwvZOgaJpZM4YnO9T>
.
_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev