Viewing 2 posts - 1 through 2 (of 2 total)
  • Migrated from old forum
    Participant
    Post count: 327
    #5965 |

    We need to be able to send DTMF digits in a macro with an argument. Here is the macro we used in our old Asterisk v 1.2 server, and it worked:

    macro-Receive-A-Fax
    ; line 1
    exten => s,1,ChanIsAvail(${FAX1}|j)
    exten => s,2,Dial(${FAX1},20,D(wwww0${ARG1}w))
    ;exten => s,2,Dial(Zap/G1/6755122)
    exten => s,3,congestion(30)
    exten => s,4,hangup
    ; line 2
    exten => s,102,noop
    exten => s,103,ChanIsAvail(${FAX2}|j)
    exten => s,104,Dial(${FAX2},20,D(wwww0${ARG1}w))
    ;exten => s,104,Dial(Zap/G1/6755122)
    exten => s,105,congestion(30)
    exten => s,106,hangup
    ; line 3
    exten => s,204,noop
    exten => s,205,ChanIsAvail(${FAX3}|j)
    exten => s,206,Dial(${FAX3},20,D(wwww0${ARG1}w))
    ;exten => s,206,Dial(Zap/G1/6755122)
    exten => s,207,congestion(30)
    exten => s,208,hangup
    ; line 4
    exten => s,306,noop
    exten => s,307,ChanIsAvail(${FAX4}|j)
    exten => s,308,Dial(${FAX4},20,D(wwww0${ARG1}w))
    ;exten => s,308,Dial(Zap/G1/6755122)
    exten => s,309,congestion(30)
    exten => s,310,hangup
    ; no lines available, die
    exten => s,408,noop
    exten => s,409,congestion(30)
    exten => s,410,hangup

    We are trying to implement this same end result with Visual Dialplan on an Asterisk v 1.8 server. When I try to put in “wwww0${ARG1}w” in the Send DTMF part of the Dial function, I get an error:

    Invalid parameters

    Callee DTMF contains invalid digits.

    Any insight on this would be very helpful!

    Migrated from old forum
    Participant
    Post count: 327
    #5966 |

    You may use Custom block for this purposes, just put “Dial(${FAX1},20,D(wwww0${ARG1}w))” in Custom component.

    Turku

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.