Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#123 Problem with DialPlan module

1.5.x
closed-fixed
modules (454)
7
2009-04-03
2009-03-31
Patrick F.
No

I've encountered a problem with dialplan that worked in 1.4.4 & 1.4.5. I'm using it to simply take an input number and replace it with a different number:

in the cfg file:
dp_translate("0", "$ruri.user/$ruri.user");

and there is only one entry in my mysql database:

+----+------+----+----------+------------+-----------+-----------+----------------+-------+
| id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs |
+----+------+----+----------+------------+-----------+-----------+----------------+-------+
| 1 | 0 | 1 | 0 | 2022310000 | 10 | | 05052022310000 | |
+----+------+----+----------+------------+-----------+-----------+----------------+-------+

Mar 31 17:37:42 artery osips-artery[96677]: DBG:dialplan:dp_get_ivalue: integer value
Mar 31 17:37:42 artery osips-artery[96677]: DBG:dialplan:dp_translate_f: dpid is 0
Mar 31 17:37:42 artery osips-artery[96677]: DBG:dialplan:dp_get_svalue: searching 15
Mar 31 17:37:42 artery osips-artery[96677]: DBG:dialplan:dp_translate_f: input is 2022310000
Mar 31 17:37:42 artery osips-artery[96677]: DBG:dialplan:translate: equal operator testing
Mar 31 17:37:42 artery osips-artery[96677]: DBG:dialplan:translate: found a matching rule 0x2871c6c8: pr 1, match_exp 2022310000
Mar 31 17:37:42 artery osips-artery[96677]: DBG:dialplan:rule_translate: simply replace the string, subst_comp 0x0, n_escapes 0
Mar 31 17:37:42 artery osips-artery[96677]: DBG:dialplan:dp_translate_f: input 2022310000 with dpid 0 => output 05052022310000
Mar 31 17:37:42 artery osips-artery[96677]: ALERT:core:do_action: BUG in set*() type 1
Mar 31 17:37:42 artery osips-artery[96677]: ERROR:dialplan:dp_update: failed to set the output
Mar 31 17:37:42 artery osips-artery[96677]: ERROR:dialplan:dp_translate_f: cannot set the output

Discussion

  • Bug fixed on SVN. Please update and confirm the fixing.

    Thanks and regards,
    Bogdan

     
    • milestone: --> 1.5.x
    • priority: 5 --> 7
    • assigned_to: nobody --> bogdan_iancu
    • status: open --> open-fixed
     
  • Patrick F.
    Patrick F.
    2009-04-03

    Updated and all seems to be testing correctly now.

    Thanks

     
    • status: open-fixed --> closed-fixed