[OpenSIPS-Users] problem in dialplan

johan de clercq johan at democon.be
Mon Jul 1 05:37:08 EDT 2019


In addition, when I use $var(i) I have more output 

 

Jul  1 09:32:39 hendrix /data/opensips/sbin/opensips[4593]:
DBG:dialplan:dp_translate_f: dpid is 1 partition is default

Jul  1 09:32:39 hendrix /data/opensips/sbin/opensips[4593]:
DBG:dialplan:dp_translate_f: input is +32478720101/

Jul  1 09:32:39 hendrix /data/opensips/sbin/opensips[4593]:
DBG:dialplan:dp_translate_f: no information available for dpid 1

Jul  1 09:32:39 hendrix /data/opensips/sbin/opensips[4593]:
callid=bmWolfo6-vYkkNdSG0sYBA..: Route[normalizeforinbound]: dp_translate
failed!, we drop the call

 

When I look into the db : 

 

MySQL [test]> select * from dialplan;

+----+------+----+----------+--------------+-------------+----------------+-
---------+---------+----------+-------+

| id | dpid | pr | match_op | match_exp    | match_flags | subst_exp      |
repl_exp | timerec | disabled | attrs |

+----+------+----+----------+--------------+-------------+----------------+-
---------+---------+----------+-------+

|  4 |    1 |  1 |        1 | ^(00|\+|0).* |           0 | ^(00|\+|0)(.*) |
\2       | NULL    |        0 |       |

|  5 |   33 |  1 |        1 | ^(0).*       |           1 | ^(0)(.*)       |
33\2     | NULL    |        0 |       |

|  6 |   33 |  1 |        1 | ^(00|\+).*   |           1 | ^(00|\+)(.*)   |
\2      | NULL    |        0 |       |

| 11 |   32 |  1 |        1 | ^(00|\+).*   |           1 | ^(00|\+)(.*)   |
\2       | NULL    |        0 |       |

| 13 |   32 |  1 |        1 | ^(0).* 1     |           1 | ^(0)(.*)       |
32\2     | NULL    |        0 |       |

+----+------+----+----------+--------------+-------------+----------------+-
---------+---------+----------+-------+

 

So there are 2 problems : 

*	Dp_translate when the first parameter is an integer the function
does not terminate normally. 
*	Please explain the error above. 

BR, 

 

 

From: johan de clercq <johan at democon.be> 
Sent: Monday, July 1, 2019 11:28 AM
To: 'OpenSIPS users mailling list' <users at lists.opensips.org>
Subject: problem in dialplan 

 

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)");

    }

 



Johan De Clercq, Managing Director
Democon bvba - Ooigemstraat 41 - 8780 Oostrozebeke

Tel +3256980990 - GSM +32478720104

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190701/3d1cf2d2/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/3d1cf2d2/attachment-0001.png>


More information about the Users mailing list