00:00.38 | Sivana | start of that context |
00:00.38 | Sivana | or extension |
00:01.38 | Bentley42 | <--lol |
00:01.44 | Sivana | mr_monkey: check out http://asterisk.gnuinter.net/files/digium/asterisk-ng/configs/extensions.conf.sample |
00:02.05 | Deggy | start of the call |
00:02.32 | tessier | Anyone know how many people you can have waiting on hold at the same time with a Cisco 7960? |
00:03.37 | mr_monkey | does every context may contain a 's' ? |
00:04.26 | Sivana | mr_monkey: if you read that example, you'll see how it works |
00:04.27 | *** join/#asterisk rowter (~Drake@201.135.3.54) |
00:05.14 | Bentley42 | For some kinds of connections — such incoming calls from an outside telephone line — the user has not dialed an extension. In that case, Asterisk behaves as if the user had dialed a special extension named "s" (for Start). Asterisk will look for an extension "number" s in the definition of the context for that channel for instructions about what it should do to handle the call. |
00:07.51 | *** join/#asterisk [dpb] (~dpb@lexx.daves.net) |
00:08.15 | Bentley42 | hmm |
00:08.33 | *** join/#asterisk sd-tux (~Shadow@emasq.stusta.mhn.de) [NETSPLIT VICTIM] |
00:08.33 | *** join/#asterisk malcolmd (~malcolmd@snatch.digium.com) [NETSPLIT VICTIM] |
00:08.33 | *** join/#asterisk sneak (~sneak@198.22.65.197) [NETSPLIT VICTIM] |
00:11.11 | *** part/#asterisk chamba1 (~Chamba@64.119.40.170) |
00:11.19 | epoch | good old freenode |
00:16.27 | *** part/#asterisk ColinH (~colinh@203-79-92-34.cable.paradise.net.nz) |
00:17.59 | *** join/#asterisk ctooley (~ctooley@199.89.146.17) [NETSPLIT VICTIM] |
00:17.59 | *** join/#asterisk dealing_death (~dealing_d@h216-170-207-50.216-170.unk.tds.net) [NETSPLIT VICTIM] |
00:17.59 | *** join/#asterisk macTijn (martijn@linda.net.insecure.nl) [NETSPLIT VICTIM] |
00:18.52 | *** join/#asterisk cp5 (~cp5@dsl093-032-201.snd1.dsl.speakeasy.net) |
00:19.03 | cp5 | is there any way to see exactly why asterisk -r isn't connecting? |
00:19.27 | JunK-Y | cp5: asterisk -c ? |
00:20.10 | cp5 | -r..i need to connect to one that's already running |
00:20.59 | JunK-Y | but if ya say isnt connecting. it causes isnt running, probably due to an error, no? |
00:22.06 | JunK-Y | are ya sure safe_asterisk is running ? |
00:22.07 | JunK-Y | # ps aux|grep safe_asterisk |
00:22.18 | Moc | cp5 you maybe run * as another user |
00:22.35 | cp5 | no, it's running |
00:22.37 | cp5 | and working |
00:22.49 | *** part/#asterisk mr_monkey (~admin@201.133.119.89) |
00:22.53 | cp5 | and i'm running asterisk -r as the same user |
00:23.29 | *** join/#asterisk Alric (~nbowyer@masq.hyperusa.com) |
00:27.22 | Sivana | cp5: have you checked the asterisk logs? |
00:27.29 | JunK-Y | and which error are ya getting with the -r ? |
00:28.18 | cp5 | Unable to connect to remote asterisk |
00:28.19 | JunK-Y | try asterisk -c and see if ya're getting any error. |
00:28.55 | cp5 | ....Sep 6 17:28:35 WARNING[1076253312]: chan_mgcp.c:4055 reload_config: Failed to bind to 0.0.0.0:2727: Address already in use |
00:29.00 | cp5 | i get all the address in uses |
00:33.48 | JunK-Y | what happen if ya do: asterisk -rx "restart now" ? |
00:34.27 | *** join/#asterisk iCEBrkr (icebrkr@chrome.cyberdyne.org) |
00:34.46 | cp5 | same error |
00:34.58 | cp5 | note, i am running asterisk as a non-root user |
00:35.09 | twisted | there should be no problem there |
00:35.09 | JunK-Y | haaaaaa maybe that's the problem |
00:35.23 | twisted | as port 1024 and below are ports that only root can dish out |
00:35.25 | JunK-Y | twisted: there's no problem with this ? |
00:35.48 | twisted | i bet something's bound to port 2727 already |
00:36.11 | JunK-Y | cp5: kill -9 ur safe_asterisk and try it again |
00:36.12 | JunK-Y | :) |
00:36.26 | *** join/#asterisk OloBola (~not@h-66-134-67-154.snvacaid.covad.net) |
00:37.05 | cp5 | what needs to be owned by the user? /var/run/asterisk.[pid|ctl], /var/log/asterisk, /var/lib/asterisk, /var/spool/asterisk -- all owned by the user |
00:37.52 | cp5 | /usr/sbin/safe_asterisk: line 44: /dev/tty9: Permission denied |
00:38.05 | cp5 | asterisk -cvvv works fine |
00:38.07 | cp5 | loads fine |
00:38.09 | cp5 | runs fine |
00:38.10 | a888 | hey there, |
00:38.14 | cp5 | hi |
00:38.32 | JunK-Y | cp5: kill it as root. |
00:38.48 | twisted | yeah |
00:38.51 | cp5 | no, i'm running it |
00:38.53 | cp5 | i already killed it |
00:39.07 | twisted | you have to be the root user to use a tty device that's not mode 777 |
00:39.09 | cp5 | running safe_asterisk errors out, asterisk -c works fine however |
00:39.14 | twisted | or somethin |
00:39.34 | cp5 | ok |
00:39.42 | cp5 | then i won't use safe_asterisk |
00:39.43 | *** join/#asterisk greendisease (~jack@dsl081-200-011.nyc2.dsl.speakeasy.net) |
00:39.54 | twisted | well |
00:39.59 | twisted | safe_asterisk will restart * if it crashes |
00:40.08 | twisted | it's almost a must-have in production |
00:40.10 | cp5 | i can live without that |
00:40.12 | JunK-Y | ya should use safe_asterisk |
00:40.21 | *** join/#asterisk n0where (~ken@q040100.ppp.asahi-net.or.jp) |
00:40.37 | cp5 | i am not setting any tty's to 777 or chowning them...it's ridiculous to do so |
00:41.17 | a888 | I've got a simple DialPlan that works find on the lan but when I call in from the pstn line it no longer works right. In particular, the 1 background(generic-welcome) audio file starts playing but you can't hear it right away but it kicks in somewhere between 1/4 of the way through the greeting and 3/4 through the greeting. Aswell, when I type in extensions from the pstn line keypad nothing happens. Any ideas?? |
00:41.17 | JunK-Y | cp5: get the latest safe_asterisk version, it should run perfectly |
00:42.08 | JunK-Y | twisted: do ya've any idea who coded astxs ? |
00:42.20 | epoch | a888: you might want to put a Wait command in before your Background command |
00:42.35 | epoch | a888: as for the dtmf issues, that could be anything... |
00:42.42 | twisted | JunK-Y, yes, anthm |
00:43.20 | JunK-Y | oky |
00:44.09 | cp5 | ok |
00:44.14 | cp5 | regardless of if i use safe_asterisk or not |
00:44.20 | cp5 | i need to be able to connect to it! |
00:45.15 | JunK-Y | ya said ya don't care to run it with -c |
00:45.39 | epoch | cp5: what's wrong with -r? |
00:45.41 | cp5 | wyeh? |
00:45.43 | cp5 | when? |
00:45.48 | cp5 | epoch, it will not connect |
00:45.59 | epoch | oh. |
00:46.09 | JunK-Y | when ya start it with -c, ya're connected to ur CLI. |
00:47.54 | *** join/#asterisk aslhk (~aslhk@015-808-260.area5.spcsdns.net) |
00:48.19 | cp5 | yes i know |
00:48.21 | cp5 | but i don't want to |
00:48.24 | cp5 | i want to run it |
00:48.28 | cp5 | then come back later and reconnect |
00:48.47 | epoch | so run it in screen |
00:49.30 | JunK-Y | the better solution is to run safe_asterisk (in my mind) |
00:49.43 | cp5 | that's kinda stupid to use screen if it already had the functionality built in |
00:49.51 | cp5 | junk-y, how does safe_asterisk help at all? |
00:50.30 | JunK-Y | cp5: its running asterisk in the background |
00:50.33 | JunK-Y | so ya can do -r |
00:50.47 | JunK-Y | get the latest safe_asterisk version |
00:51.17 | cp5 | listen, i can run asterisk in the background |
00:51.19 | cp5 | that is no problem |
00:51.22 | cp5 | i cannot reconnect! |
00:51.24 | cp5 | that is the problem |
00:51.41 | JunK-Y | [20:36:55] <cp5> /usr/sbin/safe_asterisk: line 44: /dev/tty9: Permission denied |
00:51.45 | JunK-Y | whats that ? |
00:52.15 | cp5 | that's when i try to run safe_asterisk to start asterisk as you recommended |
00:52.32 | JunK-Y | so there's a problem with safe_asterisk |
00:52.34 | cp5 | i can run `asterisk` and it will run in the background fine |
00:52.38 | cp5 | no, there's no problem |
00:52.44 | JunK-Y | if ya say so. |
00:52.45 | cp5 | forget about safe_asterisk for a moment |
00:52.49 | *** join/#asterisk rowter (~Drake@201.135.3.54) |
00:53.01 | cp5 | all i want to do is reconnect to asterisk |
00:53.03 | cp5 | it's already running |
00:53.09 | cp5 | the problem is reconnecting |
00:53.18 | epoch | and -r isn't working? |
00:53.22 | cp5 | correct |
00:53.31 | epoch | that shouldn't be |
00:53.33 | cp5 | asterisk is running fine in the background, i can make calls and all |
00:53.39 | cp5 | you are correct epoch |
00:53.41 | epoch | ;) |
00:53.42 | cp5 | which is why i'm here |
00:53.45 | epoch | I'm a big help |