[Asterisk-Users] How to set asterisk NOT to answer incoming lines?

Kannaiyan Natesan nkans at speak2world.com
Sat Jan 15 22:40:54 MST 2005


set the context in zaptel.conf  to

context = dontanswer

and in extensions.conf

[dontanswer]

exten => s,1,Hangup

should help.

regards,
kannaiyan


----- Original Message ----- 
From: "C F" <shmaltz at gmail.com>
To: <matt.riddell at sineapps.com>; "Asterisk Users Mailing List - 
Non-Commercial Discussion" <asterisk-users at lists.digium.com>
Sent: Sunday, January 16, 2005 5:01 AM
Subject: Re: [Asterisk-Users] How to set asterisk NOT to answer incoming 
lines?


> Here is the CLI out put, first my config:
> immediate=no
> context = incoming
> channel = 2-4
> context = default
> channel = 1
> extensions.conf
> [default]
> include => internaldial
> [internaldial]
> exten .....
> exten ....
> exten => i,1,Playback(invalid)
> exten => i,2,Hangup
> now when a call comes in on channel 1 it rings twice on the devices
> that are connected before * and the CLI shows:
> Sent into invalid extension 's' in context 'default' on Zap/1-1
>    -- Executing Playback("Zap/1-1", "invalid") in new stack
>    -- Playing 'invalid' (language 'en')
>    -- Executing Hangup("Zap/1-1", "") in new stack
>  == Spawn extension (default, i, 2) exited non-zero on 'Zap/1-1'
>    -- Hungup 'Zap/1-1'
>    -- Hungup 'Zap/2-1'
>
>
> On Fri, 14 Jan 2005 10:33:57 -0500, C F <shmaltz at gmail.com> wrote:
>> OF COURSE I TRIED IT, but that was a while ago, I'm just going to
>> retry for the CLI output.
>> http://lists.digium.com/pipermail/asterisk-users/2004-December/080284.html
>>
>>
>> On Fri, 14 Jan 2005 23:36:57 +1300, Matt Riddell
>> <matt.riddell at sineapps.com> wrote:
>> > C F wrote:
>> > > Well thanks for the reply, until you don't test it with the Digium
>> > > TDM04B I don't think you *know* anything.
>> >
>> > WTF!!!!!
>> >
>> > Bad form...
>> >
>> > It works.  If *you* had *tried* the suggestions people gave you, you
>> > would find that out.
>> >
>> > --
>> > Cheers,
>> >
>> > Matt Riddell
>> > _______________________________________________
>> >
>> > http://www.sineapps.com/news.php (Daily Asterisk News - html)
>> > http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
>> >
>>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> 





More information about the asterisk-users mailing list