Askozia Forums
May 21, 2012, 09:23:08 pm
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Askozia Forums
>
AskoziaPBX
>
General
>
ssh and asterisk console
Pages: [
1
]
« previous
next »
Print
Author
Topic: ssh and asterisk console (Read 2464 times)
binary_dreamer
Full Member
Karma: 1
Posts: 55
ssh and asterisk console
«
on:
February 27, 2010, 09:26:44 pm »
hi.
i managed to get acced through ssh to askozia;s console.
i am trying to get the asterisk console to debug some sessions but nothing
i am doing
#asterisk -r
and it does not recognise the command. any ideas?
Logged
giovanni.v
Hero Member
Karma: 53
Posts: 670
Re: ssh and asterisk console
«
Reply #1 on:
February 27, 2010, 09:56:17 pm »
Quote from: binary_dreamer on February 27, 2010, 09:26:44 pm
#asterisk -r
and it does not recognise the command. any ideas?
/offload/rootfs/usr/sbin/asterisk -r
Logged
Michael
Askozia Staff
Hero Member
Karma: 49
Posts: 1020
Re: ssh and asterisk console
«
Reply #2 on:
February 28, 2010, 09:58:58 am »
It should also just work with: /usr/sbin/asterisk -r
The PATH for ssh access does not include /sbin or /usr/sbin. If someone wants to throw the right rc file in the pbx/rootfs overlay I'd be thankful (for the busybox hush shell). I just haven't done it yet.
Logged
Mats Karlsson
Full Member
Karma: 5
Posts: 62
Re: ssh and asterisk console
«
Reply #3 on:
March 20, 2010, 03:26:25 pm »
From what I understand, the file that dropbear uses for setting up the start env. is:
/etc/profile
and that should contain something like:
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
Im still learning the Askozia boot system so Im unable to add the correct file for the moment.
Logged
Michael
Askozia Staff
Hero Member
Karma: 49
Posts: 1020
Re: ssh and asterisk console
«
Reply #4 on:
March 20, 2010, 08:02:53 pm »
The /etc directory is in a writable part of the filesystem. You could ssh in, and use vi to add that file. Then log out and ssh back in. If the path is set correctly this time, then the problem's solved. I thought the shell, hush, would have to set this but if dropbear sets it directly that's ok too.
Logged
Mats Karlsson
Full Member
Karma: 5
Posts: 62
Re: ssh and asterisk console
«
Reply #5 on:
March 21, 2010, 06:18:20 am »
Before posting the tip I created the file and it worked, then I rebooted and the file was gone....
Is there any documentation what fs Askozia uses ?
Logged
Michael
Askozia Staff
Hero Member
Karma: 49
Posts: 1020
Re: ssh and asterisk console
«
Reply #6 on:
March 21, 2010, 08:43:11 am »
Rebooting clears the memory file system. The entire system, except for /usr, lives in an initramfs file system. The /usr directory is mounted read-only from the install media. This combination eliminates writes to the installed media, except for configuration changes (one write for the config.xml file) and reduces ram usage by storing the big binaries in /usr directory on the install media.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
=> Events
=> Meta
-----------------------------
AskoziaPBX
-----------------------------
=> General
=> Call Flow Editor
=> Handbook
=> Installation
=> Hardware
===> For Sale / Wanted
=> Interface Configuration
=> Provider Accounts
=> Phone Accounts
=> Dialplan
===> Applications
=> Packages
=> Bug Reports
=> Feature Requests
=> Development
===> Bounties
=> Internationalization
-----------------------------
International
-----------------------------
=> Nederlands
=> 普通話
=> Deutsch
=> Español
=> Français
=> Italiano
=> 日本語
=> Português
=> Русский язык
Loading...