[asterisk-users] Dedicated hangup extension h

David Duffett dduffett at digium.com
Wed Aug 28 04:17:42 CDT 2013


I would set a "no-use" flag in all extensions that you do not want to use
the h, and then test for it in the h extension itself - if it is set you
could just run the Hangup application.
On 28 Aug 2013 08:51, "Grant Bagdasarian" <GB at cm.nl> wrote:

> Hello,****
>
> ** **
>
> We have a Kamailio SIP Proxy in front of our Asterisk cluster for incoming
> calls from our carrier.****
>
> ** **
>
> The sip.conf looks like this:****
>
> ** **
>
> [kamailio1]****
>
> type=friend****
>
> host=10.0.0.1****
>
> context=incoming****
>
> disallow=all****
>
> allow=alaw****
>
> ** **
>
> All calls hit the incoming extension. In the extensions.conf we have
> multiple extensions configured, but now I have to add one which uses the
> special h extension to perform a CURL action whenever the user hangs up.
> The problem is that once I’ve registered a h extension, it is executed for
> all extensions in the incoming context.****
>
> ** **
>
> exten => _X.,1,Playback(invalid)****
>
> exten => _X.,n,Hangup****
>
> ** **
>
> exten => 1000,1,Playback(welcome)****
>
> exten => 1000,n,Read(dtmfinput,,,,,15)****
>
> exten => 1000,n,Hangup****
>
> ** **
>
> exten => h,1,Set(response=${CURL(
> http://sample.company.local/PostHandler.ashx,var1=${dtmfinput}&var2=1000)}
> )****
>
> ** **
>
> Is it possible to give each extension its own h extension? If not, is
> there another way to do this?****
>
> --
> _____________________________________________________________________
> -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130828/4083c9a4/attachment-0001.htm>


More information about the asterisk-users mailing list