[Asterisk-Users] Execute dialplan command at startup

Bill Seddon bill.seddon at lyquidity.com
Mon Jan 10 11:38:12 MST 2005


<< I tried it, and it works, but it is hardly an ideal solution>>

I've setup the following file:

Channel: SIP/1003
Context: from-sip-internal
Extension: 338
Priority: 1

And it does almost exactly what I want so Oliver/Niksa, thanks for the idea.


However the call file mechanism seems to insist upon a channel which implies
a phone has to ring before the extension (containing the dialplan actions I
want to execute) is called.

Is it right that the channel must be included in the call file?  If so, is
there a "dummy" channel available that will always answer.  I've had no joy
getting the "application" option to work but it, too, seems to require a
channel parameter to be present in the file.

Thanks

Bill Seddon

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Niksa Baldun
Sent: January 10, 2005 6:06 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Execute dialplan command at startup

I tried it, and it works, but it is hardly an ideal solution. If you,
for example, forget yourself and execute 'restart now' from * console,
.call file won't be generated and you may spend hours wondering what
went wrong.

I believe the lack of some kind of 'autostart' context is a major flaw
in design, but then again, I guess it could easily be implemented.


Peer Oliver Schmidt wrote:

> Bill Seddon wrote:
>
>> How can Asterisk be configured to execute some number of dialplan
>> commands
>> when it is started or restarted?
>>
> [..]
>
>> In the meantime I'm hoping that it is possible to use the built-in
>> database
>> and be able to run some kind of "autostart" context.  Does such a
>> facility
>> exist?
>
>
> Without getting into details, I would create a call file in the
> outgoing spool directory of asterisk within the asterisk startup
> script which calls a specific application.
>
> Haven't tried, but should easily work.
>
> Let me know, how it works.
>
> rgds
> pos
> _______________________________________________
> 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
>
>
_______________________________________________
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