[asterisk-users] Dedicated hangup extension h
Grant Bagdasarian
GB at cm.nl
Wed Aug 28 03:44:44 CDT 2013
Yes, that's exactly what I needed. Totally forgot about doing that kind of a construction.
Thank you very much!
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Aldo Bergamini
Sent: Wednesday, August 28, 2013 10:38 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Dedicated hangup extension h
On 28 Aug 2013, at 09:50, Grant Bagdasarian <GB at 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
More information about the asterisk-users
mailing list