<div dir="ltr"><div dir="ltr">Hello Stefano, <div><br></div><div>Can you share your modparam settings for the dialplan module?</div><div><br></div><div>Check this:</div><div><a href="https://kamailio.org/docs/modules/5.1.x/modules/dialplan.html#dialplan.p.attrs_pvar">https://kamailio.org/docs/modules/5.1.x/modules/dialplan.html#dialplan.p.attrs_pvar</a><br></div><div><br></div><div>Joel.</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 12, 2018 at 1:32 AM Stefano Bertuola <<a href="mailto:stefano.bertuola@gmail.com">stefano.bertuola@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(11,83,148)">Hi experts.</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(11,83,148)">I intended ATTRIBUTES is a value that is returned by dialplan's dp_translate as the result as shown by kamcmd command:</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(11,83,148)"><br></div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">kamcmd> dialplan.translate 2 s:+3912345</font></div></div></div></div><div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">{</font></div></div></div></div><div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">        Output: 3912345</font></div></div></div></div><div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">        Attributes: test</font></div></div></div></div><div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">}</font></div></div></div></div></blockquote><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(11,83,148)">Is my understanding correct?</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(11,83,148)">I tried many ways, including using AVP and XAVP for the result, but no success:<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(11,83,148)"><br></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000"><div class="gmail_default">dp_translate("2", "$rU/$xavp(dp_result)");</div><div class="gmail_default">pv_xavp_print();<br></div></font></div><div class="gmail_default"><br></div><div class="gmail_default"><font face="monospace, monospace" color="#000000">DEBUG: dialplan [dialplan.c:222]: dp_get_ivalue(): dpid is 2 from constant argument</font></div></div></div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">DEBUG: dialplan [dialplan.c:243]: dp_get_svalue(): searching 7 </font></div></div></div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">DEBUG: dialplan [dialplan.c:331]: dp_translate_f(): input is +3912345</font></div></div></div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">DEBUG: dialplan [dp_repl.c:592]: translate(): regex operator testing over [+3912345]</font></div></div></div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">DEBUG: dialplan [dp_repl.c:662]: translate(): found a matching rule 0x7f56aef690d8: pr 1, match_exp ^\+39.....</font></div></div></div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">DEBUG: dialplan [dp_repl.c:481]: rule_translate(): copying match <3912345> token size 2</font></div></div></div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">DEBUG: dialplan [dialplan.c:340]: dp_translate_f(): input +3912345 with dpid 2 => output 3912345</font></div></div></div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000"><br></font></div></div></div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">INFO: <core> [xavp.c:494]: xavp_print_list_content(): +++++ start XAVP list: 0x7f56aeffaaa8 (level=0)</font></div></div></div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">INFO: <core> [xavp.c:498]: xavp_print_list_content():      *** XAVP name: dp_result</font></div></div></div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">INFO: <core> [xavp.c:499]: xavp_print_list_content():      XAVP id: 3539756229</font></div></div></div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">INFO: <core> [xavp.c:500]: xavp_print_list_content():      XAVP value type: 2</font></div></div></div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">INFO: <core> [xavp.c:509]: xavp_print_list_content():      XAVP value: 3912345</font></div></div></div><div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace" color="#000000">INFO: <core> [xavp.c:531]: xavp_print_list_content(): ----- end XAVP list: 0x7f56aeffaaa8 (level=0)</font></div><div class="gmail_default"><font face="verdana, sans-serif" color="#0b5394"><br></font></div></div></div></blockquote><font face="verdana, sans-serif" color="#0b5394"><span class="gmail_default">If possible, how can I get both </span>OUTPUT and <span class="gmail_default"> </span>ATTRIBUTES<span class="gmail_default"> as result?</span></font></div><div><font face="verdana, sans-serif" color="#0b5394"><br></font></div><div><font face="verdana, sans-serif" color="#0b5394"><span class="gmail_default"></span>S<span style="font-size:inherit">tefano</span></font></div></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>