[OpenSIPS-Users] problem in dialplan

Richard Revels rrevels at bandwidth.com
Mon Jul 1 17:08:30 EDT 2019


Try enclosing the 1 in quotes

dp_translate("1","$ruri.user/$var(rU)")



[image: BandwidthMaroon.png]



Richard Revels  •  System Architect II

900 Main Campus Drive, Suite 100, Raleigh, NC 27606



m: 919-578-3421  •  o: 919-727-4614

e: rrevels at bandwidth.com


On Mon, Jul 1, 2019 at 5:28 AM johan de clercq <johan at democon.be> wrote:

> Hi,
>
> Using latest opensips 3.0,  there seems to be a problem in dialplan
>
>
>
>   1 09:23:25 hendrix /data/opensips/sbin/opensips[4197]:
> ERROR:core:get_cmd_fixups: Variable in param [1] is not an integer
>
> Jul  1 09:23:25 hendrix /data/opensips/sbin/opensips[4197]:
> ERROR:core:do_action: Failed to get fixups for command <dp_translate>
>
>
>
> This the code :
>
>     if (dp_translate(1,"$ruri.user/$var(rU)"))
>
>     {
>
>         xlog("callid=$ci: Route[normalizeforinbound]: we dropped 0,00,+
> from $rU, result is var(rU) $var(rU)");
>
>     }
>
>
>
> [image: cid:F3100D46-F00D-4610-87ED-3E91DA790A82]
>
> Johan De Clercq, Managing Director
> Democon bvba - Ooigemstraat 41 - 8780 Oostrozebeke
>
> Tel +3256980990 – GSM +32478720104
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190701/f533e9a6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 15602 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20190701/f533e9a6/attachment-0001.png>


More information about the Users mailing list