#125 dialplan integer valued attributes

open
nobody
modules (93)
4
2008-06-26
2008-06-26
No

it should be possible to give to a dialplan rule an integer valued attribute. this could be indicated, for example, as #integer in attrs column.

Discussion

  • Daniel-Constantin Mierla

    Logged In: YES
    user_id=1246013
    Originator: NO

    Would it help more being embedded in the code, or using transformations if good enough?

    if($(var(attrs){s.substr,0,1})=="#")

     
  • Daniel-Constantin Mierla

    Logged In: YES
    user_id=1246013
    Originator: NO

    Sorry, pressed by mistake submit button before finishing. All again...

    Would it help more being embedded in the code, or using transformations if
    good enough?

    if($(var(attrs){s.substr,0,1})=="#")
    $var(attrs) = $(var(attrs){s.substr,1,0}{s.int});

     
  • Nobody/Anonymous

    Logged In: NO

    it makes no sense to do string -> int transformation at dp_translate time when it can be done at dp_reload time.

    -- juha

     

Log in to post a comment.