From david.villasmil.work@gmail.com Wed Apr 15 21:59:19 2020 From: David Villasmil To: sr-users@lists.kamailio.org Subject: [SR-Users] Weird dialplan result Date: Wed, 15 Apr 2020 20:59:05 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0013368833==" --===============0013368833== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello guys, So i have the following dialplan (almost literally, 2 records) +----+------+-----+----------+-----------+-----------+-----------+----------+= ---------------------------------------+ | id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs | +----+------+-----+----------+-----------+-----------+-----------+----------+= ---------------------------------------+ | 10 | 1 | 100 | 0 | 910000000 | 0 | | | 1.2.3.4:5060 | | 11 | 1 | 100 | 0 | 910000001 | 0 | | | sip.somedomain.net:5060 | And with kamcmd: kamcmd> dialplan.translate 1 s:910000000 { Output: Attributes: 1.2.3.4:5060 } and kamcmd> dialplan.translate 1 s:910600000 error: 500 - No translation So that works... now, when i get an INVITE I do: dp_match("1", "$rU"); xlog("[DIALPLAN] '$rU' was translated to '$var(destination)'\n"); if ( $var(destination)!=3D0 ) { $ru =3D "sip:" + $fU + "@" + $var(destination); route(RELAY); } And this prints: