How to invoke an AGI through an IVR?

Discussion in 'General' started by Gamarra, May 19, 2010.

  1. Gamarra

    Joined:
    May 19, 2010
    Messages:
    3
    Likes Received:
    0
    Hi Guys, i was working with a test agi and now i want to invoke it through an IVR.
    The things goes well when i am executing it through the dial plan as an extensions
    Ex.:
    exten => 79,1,answer
    exten => 79,2,AGI(test.agi)
    exten => 79,3,hangup

    I was following a previous post on this forum as i describe below:

    In extensions_custom.conf

    [custom-test]
    exten => _.,1,Noop(Entering Custom Context: test)
    exten => _.,n,Ringing
    exten => _.,n,AGI(test.agi)
    exten => _.,n,GotoIf($["x${IVR_CONTEXT}" = "x"]?app-blackhole,hangup,1:${IVR_CONTEXT},return,1)
    exten => _.,n,Goto(app-blackhole,hangup,1)
    exten => h,1,Macro(hangupcall,)

    Then i go to the tools tab in "Unembedded FreePBX" and i add a new custom destination as:

    custom-test,${EXTEN},1

    Now i can use de new destination in the IVR, but when hit the option the invoke de AGI, the Asterisk CLI stays on goto(test.agi,100,1) and then hangup.

    I am doing something wrong?. I will really apreciate any helps.
    Thanks in advanced.
     

Share This Page