Is there a way to execute specific applications at Asterisk startup (like "startup context" or something)?
Niksa Baldun wrote:> Is there a way to execute specific applications at Asterisk startup > (like "startup context" or something)? > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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 >you could write your own application, and tell asterisk to load it via modules.conf -- but that might be the hard way since it'd have to be done in C. Flynn
Guys, is it normal to have under linux using kernel 2.6 this many asterisks listed: 2328 ? S 0:00 /bin/sh /usr/sbin/safe_asterisk 2419 ? S 0:01 asterisk -cg 2444 ? S 0:00 asterisk -cg 2446 ? S 0:00 asterisk -cg 2447 ? S 0:00 asterisk -cg 2448 ? S 0:00 asterisk -cg 2449 ? S 0:00 asterisk -cg 2450 ? S 0:00 asterisk -cg 2453 ? S 0:00 asterisk -cg 2454 ? S 0:00 asterisk -cg 2597 ? S 0:00 asterisk -cg 2598 ? S 0:00 asterisk -cg 4450 pts/1 S+ 0:00 grep asterisk Im starting it up using the init.d script created when doing a make config on asterisk 1.2 stable Is this ok?
> Guys, is it normal to have under linux using kernel 2.6 this many asterisks > listed: > > 2328 ? S 0:00 /bin/sh /usr/sbin/safe_asterisk > 2419 ? S 0:01 asterisk -cg > 2444 ? S 0:00 asterisk -cg > 2446 ? S 0:00 asterisk -cg > 2447 ? S 0:00 asterisk -cg > 2448 ? S 0:00 asterisk -cg > 2449 ? S 0:00 asterisk -cg > 2450 ? S 0:00 asterisk -cg > 2453 ? S 0:00 asterisk -cg > 2454 ? S 0:00 asterisk -cg > 2597 ? S 0:00 asterisk -cg > 2598 ? S 0:00 asterisk -cg > 4450 pts/1 S+ 0:00 grep asterisk > > Im starting it up using the init.d script created when doing a make config > on asterisk 1.2 stable > > Is this ok?Yes, its normal and okay.
Good :) thx! |-----Original Message----- |From: asterisk-users-bounces@lists.digium.com |[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of |Rich Adamson |Sent: Sunday, November 20, 2005 7:27 AM |To: Asterisk Users Mailing List - Non-Commercial Discussion |Subject: Re: [Asterisk-Users] asterisk startup | | |> Guys, is it normal to have under linux using kernel 2.6 this many |> asterisks |> listed: |> |> 2328 ? S 0:00 /bin/sh /usr/sbin/safe_asterisk |> 2419 ? S 0:01 asterisk -cg |> 2444 ? S 0:00 asterisk -cg |> 2446 ? S 0:00 asterisk -cg |> 2447 ? S 0:00 asterisk -cg |> 2448 ? S 0:00 asterisk -cg |> 2449 ? S 0:00 asterisk -cg |> 2450 ? S 0:00 asterisk -cg |> 2453 ? S 0:00 asterisk -cg |> 2454 ? S 0:00 asterisk -cg |> 2597 ? S 0:00 asterisk -cg |> 2598 ? S 0:00 asterisk -cg |> 4450 pts/1 S+ 0:00 grep asterisk |> |> Im starting it up using the init.d script created when doing a make |> config on asterisk 1.2 stable |> |> Is this ok? | |Yes, its normal and okay. | | |_______________________________________________ |--Bandwidth and Colocation sponsored by Easynews.com -- | |Asterisk-Users mailing list |Asterisk-Users@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 |
> I guess it must be a 2.6 kernel stuff since on 2.4 it only makes 1 > instance but on my 2.6 boxes, it makes about 10.I always wondered about this and never got a clear answer. On CentOS 4, Fedora 3 and RHES 4 (all 2.6 kernels) it only shows up as one instance, even with several concurrent calls... Luki
> > I guess it must be a 2.6 kernel stuff since on 2.4 it only makes 1 > > instance but on my 2.6 boxes, it makes about 10. > > I always wondered about this and never got a clear answer. On CentOS > 4, Fedora 3 and RHES 4 (all 2.6 kernels) it only shows up as one > instance, even with several concurrent calls...Uhm...... Fedora 3... no calls in progress... cvs-head... [root@phoenix asterisk]# ps ax PID TTY STAT TIME COMMAND 1786 ? S 0:00 /bin/sh /usr/sbin/safe_asterisk 1832 ? S 0:00 asterisk -vvvgn -cn 1864 ? S 0:00 asterisk -vvvgn -cn 1866 ? S 0:00 asterisk -vvvgn -cn 1867 ? S 0:00 asterisk -vvvgn -cn 1868 ? S 0:00 asterisk -vvvgn -cn 1869 ? S 0:00 asterisk -vvvgn -cn 1873 ? S 0:35 asterisk -vvvgn -cn 1891 ? S 0:00 asterisk -vvvgn -cn 1892 ? S 0:00 asterisk -vvvgn -cn 1893 ? S 0:11 asterisk -vvvgn -cn 1894 ? S 0:00 asterisk -vvvgn -cn 1895 ? S 0:00 asterisk -vvvgn -cn 1927 ? S 3:11 asterisk -vvvgn -cn 1942 ? S 0:00 asterisk -vvvgn -cn 1943 ? S 0:00 asterisk -vvvgn -cn 1945 ? S 0:00 asterisk -vvvgn -cn 1946 ? S 0:00 asterisk -vvvgn -cn
> > I guess it must be a 2.6 kernel stuff since on 2.4 it only makes 1 > > instance but on my 2.6 boxes, it makes about 10. > > I always wondered about this and never got a clear answer. On CentOS > 4, Fedora 3 and RHES 4 (all 2.6 kernels) it only shows up as one > instance, even with several concurrent calls...Uhm...... Fedora 3... no calls in progress... cvs-head... [root@phoenix asterisk]# ps ax PID TTY STAT TIME COMMAND 1786 ? S 0:00 /bin/sh /usr/sbin/safe_asterisk 1832 ? S 0:00 asterisk -vvvgn -cn 1864 ? S 0:00 asterisk -vvvgn -cn 1866 ? S 0:00 asterisk -vvvgn -cn 1867 ? S 0:00 asterisk -vvvgn -cn 1868 ? S 0:00 asterisk -vvvgn -cn 1869 ? S 0:00 asterisk -vvvgn -cn 1873 ? S 0:35 asterisk -vvvgn -cn 1891 ? S 0:00 asterisk -vvvgn -cn 1892 ? S 0:00 asterisk -vvvgn -cn 1893 ? S 0:11 asterisk -vvvgn -cn 1894 ? S 0:00 asterisk -vvvgn -cn 1895 ? S 0:00 asterisk -vvvgn -cn 1927 ? S 3:11 asterisk -vvvgn -cn 1942 ? S 0:00 asterisk -vvvgn -cn 1943 ? S 0:00 asterisk -vvvgn -cn 1945 ? S 0:00 asterisk -vvvgn -cn 1946 ? S 0:00 asterisk -vvvgn -cn
On Sun, 20 Nov 2005, Luki wrote:> > I guess it must be a 2.6 kernel stuff since on 2.4 it only makes 1 > > instance but on my 2.6 boxes, it makes about 10. > > I always wondered about this and never got a clear answer. On CentOS > 4, Fedora 3 and RHES 4 (all 2.6 kernels) it only shows up as one > instance, even with several concurrent calls...It depends which threading library your Linux distrib uses. Steve