On 28 Aug 2013, at 09:50, Grant Bagdasarian <g...@cm.nl> wrote:

Hi Grant!

I do not know of a way to have multiple 'h' extensions in the same context.


But you can easily make an appropriate context for your custom need!


exten => _X.,1,Playback(invalid)
exten => _X.,n,Hangup

exten => 1000,1,Noop(Go to CURL Hangup)
exten => 1000,n,Goto(CURL_Hangup,${EXTEN},1)

; ..... your context goes on ....


; Added Custom Context

[CURL_Hangup]

exten => _X.,1,Playback(welcome)
exten =>_X.,n,Read(dtmfinput,,,,,15)
exten =>_X.,n,Hangup

exten => 
h,1,Set(response=${CURL(http://sample.company.local/PostHandler.ashx,var1=${dtmfinput}&var2=1000)})


HTH,
Aldo

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to