[asterisk-users] Running a script after Dial() ?
Danny Nicholas
danny at debsinc.com
Thu Feb 4 10:15:45 CST 2010
It's actually worse than nonsensical if you're watching the CLI. It
generates a warning (and presumably wastes a bit of resources). Oh well,
that's why I don't work for Digium :)
--
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tilghman
Lesher
Sent: Thursday, February 04, 2010 10:07 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Running a script after Dial() ?
On Thursday 04 February 2010 09:05:36 Danny Nicholas wrote:
> Set the emailaddr into a channel variable. Since I'm there, just make
your
> h exten do the system if ${WAV} and ${emailaddr} are longer than 1. Like
> this.
>
> - exten = h,1,noop(hangup logic)
> - exten = h,n,Gotoif($["${LEN(${WAV})}" < "4"]?just_hangup)
> - exten = h,n,Gotoif($["${LEN(${emailaddr})}" < "4"]?just_hangup)
> - exten = h,n,System(send-recorded-conversation ${WAV}.wav ${EXTEN:1}
> ${emailaddr})
> - exten = h,n(just_hangup),Hangup
It's rather nonsensical to call the Hangup application in the "h" extension.
Use NoOp, instead.
--
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
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