Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Asterisk 1.0
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
smart
Guru
Guru


Joined: 19 Nov 2002
Posts: 455

PostPosted: Thu Sep 23, 2004 6:40 pm    Post subject: Asterisk 1.0 Reply with quote

Asterisk 1.0 is out.... somebody working on an ebuild update already ? :roll:
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Thu Sep 23, 2004 7:06 pm    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=63101

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
BigBaaadBob
Guru
Guru


Joined: 19 Apr 2003
Posts: 342
Location: Swampscott, MA USA

PostPosted: Thu Sep 23, 2004 8:03 pm    Post subject: Reply with quote

kashani wrote:
https://bugs.gentoo.org/show_bug.cgi?id=63101

Yes, there is a bug registered, but a lot of asterisk bugs seem to be accumulating in "new" state. Is there an active developer involvement currently with asterisk?
Back to top
View user's profile Send private message
rjreb
n00b
n00b


Joined: 19 Aug 2003
Posts: 40

PostPosted: Fri Sep 24, 2004 6:02 am    Post subject: Reply with quote

I'm a total newbie with this so no flames please. Am I required to buy a Digium card in order to use Asterisk? If not, could someone provide a brief breakdown how'd I set this up for home use.
Back to top
View user's profile Send private message
BigBaaadBob
Guru
Guru


Joined: 19 Apr 2003
Posts: 342
Location: Swampscott, MA USA

PostPosted: Fri Sep 24, 2004 11:00 am    Post subject: Reply with quote

rjreb wrote:
I'm a total newbie with this so no flames please. Am I required to buy a Digium card in order to use Asterisk? If not, could someone provide a brief breakdown how'd I set this up for home use.

It isn't all that hard, although editing the config files can be confusing.

First, you only need to buy additional hardware for the computer if you want to use analog phones, or want to access line banks or t1/e1 lines or other things like that. If you just want to use SIP phones and connect to services like VoicePulseConnect or something, no extra hardware is needed.

Second, go to the Asterisk Wiki and start reading: http://www.voip-info.org/wiki-Asterisk
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sun Sep 26, 2004 6:23 pm    Post subject: Reply with quote

rjreb wrote:
I'm a total newbie with this so no flames please. Am I required to buy a Digium card in order to use Asterisk? If not, could someone provide a brief breakdown how'd I set this up for home use.


If you need asterisk to answer you standard phone line I suggest go with Digium card; it might be a bit extra comparing to other hardware but Digium supports their hardware and you will be able to find answer on other forum.

Don't buy Sipura SPA-3000 units; I just got one and I can hardly get any support on configuration, their reseller wasn't able to help me either. I don't know if my unit is defective or not but it doesn't work as it suppose to.

#Joseph
Back to top
View user's profile Send private message
GamesBond
n00b
n00b


Joined: 15 Mar 2004
Posts: 66
Location: Amsterdam

PostPosted: Wed Oct 06, 2004 4:57 pm    Post subject: Reply with quote

Question about emerging asterisk:
When i try to emerge the lot I am a bit worried about the useflags it displays:
[ebuild N ] net-misc/zaptel-1.0.0 -devfs26 289 kB
[ebuild N ] media-sound/mpg123-0.59s-r4 -3dnow -esd -mmx -nas -oss 239 kB
[ebuild N ] net-libs/libpri-1.0.0 48 kB
[ebuild N ] net-libs/zapata-1.0.0 72 kB
[ebuild N ] net-misc/asterisk-1.0.0 -alsa +apache2 -doc -gtk -mmx -mysql -nopri -nozaptel 10,993 kB

Obviously it is emerging libpri and zapata and zaptel but the useflags for asterisk mention -nopri -nozaptel.

Why?? It should use either (or both)!
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Thu Oct 07, 2004 8:40 am    Post subject: Reply with quote

Do you really need libpri and zaptel if you're using an IP-only solution?
Back to top
View user's profile Send private message
GamesBond
n00b
n00b


Joined: 15 Mar 2004
Posts: 66
Location: Amsterdam

PostPosted: Thu Oct 07, 2004 8:58 am    Post subject: Reply with quote

Yes because I really want to use it as a PBX, not just as a variant of skype therefore I want to connect my PSTN line too.

But the problem was more of an e-build question / problem :)
Back to top
View user's profile Send private message
GamesBond
n00b
n00b


Joined: 15 Mar 2004
Posts: 66
Location: Amsterdam

PostPosted: Thu Oct 07, 2004 7:58 pm    Post subject: Reply with quote

Is anybody running Asterisk on a 2.6 kernel? Zaptel generated several warnings about running kernel 2.6:
* You're using zaptel with linux-2.6:
* Zaptel doesn't support devfs with 2.6, you'll need to use udev or
* disable devfs
* or use devfs and write a script which re-creates the device nodes for
* you

I looked through some topics on the forum and to use udev it seems I must make a sheer endless numer of modifications to the box incl. the kernel (not happy with that) but it could also be fixed using a script or a patch?

I guess this error is caused by zaptel & kernel 2.6
asterisk # ztcfg
Notice: Configuration file is /etc/zaptel.conf
line 141: Unable to open master device '/dev/zap/ctl'

While this device does in fact exist and also I am unable to mobprobe the module zaptel.

I emerged udev and then tried to re-emerge zaptel which fails with about 6-7 pages of errors! Some small snippets:
include/linux/types.h:18: error: syntax error before "__kernel_dev_t"
include/linux/types.h:18: warning: type defaults to `int' in declaration of `__kernel_dev_t'
include/linux/types.h:18: warning: data definition has no type or storage class
include/linux/types.h:21: error: syntax error before "dev_t"

include/linux/types.h:152: warning: type defaults to `int' in declaration of `f_tinode'
include/linux/types.h:152: warning: data definition has no type or storage class
include/linux/types.h:155: error: syntax error before '}' token
In file included from /var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/zaptel.c:42:
include/linux/kernel.h:15:27: asm/byteorder.h: No such file or directory
include/linux/kernel.h:16:21: asm/bug.h: No such file or directory
In file included from /var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/zaptel.c:42:
include/linux/kernel.h:81: error: syntax error before "size_t"
include/linux/kernel.h:82: warning: function declaration isn't a prototype
include/linux/kernel.h:82: warning: conflicting types for built-in function `snprintf'
include/linux/kernel.h:83: error: syntax error before "size_t"
include/linux/kernel.h:83: warning: function declaration isn't a prototype

include/linux/time.h:145:31: division by zero in #if
include/linux/time.h:145:31: division by zero in #if
include/linux/time.h:145:31: division by zero in #if
include/linux/time.h:145:31: division by zero in #if

include/linux/fs.h:356: error: storage size of `bd_sem' isn't known
include/linux/fs.h:357: error: storage size of `bd_mount_sem' isn't known
include/linux/fs.h:431: error: storage size of `i_atime' isn't known
include/linux/fs.h:432: error: storage size of `i_mtime' isn't known
Back to top
View user's profile Send private message
RageX^NZ
n00b
n00b


Joined: 26 May 2003
Posts: 58
Location: Mount Maunganui, NEW ZEALAND

PostPosted: Fri Oct 08, 2004 1:55 am    Post subject: Reply with quote

I too am trying to get Asterisk working on a 2.6.8-gentoo-r3 kernel with UDEV and have come to the same problem that you have.

When executing ztcfg I get

linux05 etc # ztcfg
Notice: Configuration file is /etc/zaptel.conf
line 140: Unable to open master device '/dev/zap/ctl'
linux05 etc #


And when I run asterisk -c I get


linux05 etc # asterisk -c
Asterisk 1.0.0, Copyright (C) 1999-2004 Digium.
Written by Mark Spencer <markster@digium.com>
=========================================================================
[ Booting......Oct 8 09:55:05 WARNING[16384]: res_musiconhold.c:561 moh_register: Unable to open pseudo channel for timing... Sound may be choppy.
...........Found new ID3 Header
.Warning, flexible rate not heavily tested!
...linux05 etc # Ouch ... error while writing audio data: : Broken pipe



I have no damn idea why it's doing this and would really like to get to the bottom of it.

As a side note, I dont have ANY FXO/FXS interfaces in the machine so the need for Zaptel was eluding me a bit.
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Fri Oct 08, 2004 2:24 pm    Post subject: Reply with quote

I have a simmilar problem, but asterisk just exists :

....
Asterisk Dynamic Loader Starting:
== Parsing '/etc/asterisk/modules.conf': Found
[res_musiconhold.so] => (Music On Hold Resource)
== Parsing '/etc/asterisk/musiconhold.conf': Found
Oct 8 16:04:23 WARNING[16384]: res_musiconhold.c:561 moh_register: Unable to open pseudo channel for timing... Sound may be choppy.
== Registered application 'MusicOnHold'
== Registered application 'WaitMusicOnHold'
== Registered application 'SetMusicOnHold'
[chan_capi.so] => (Common ISDN API for Asterisk)
== Parsing '/etc/asterisk/capi.conf': Found
Found new ID3 Header
Beginning asterisk shutdown....
Executing last minute cleanups
== Destroying any remaining musiconhold processes
Asterisk cleanly ending (2).


Why does it beginn with shutdown ?
Back to top
View user's profile Send private message
BigBaaadBob
Guru
Guru


Joined: 19 Apr 2003
Posts: 342
Location: Swampscott, MA USA

PostPosted: Fri Oct 08, 2004 2:33 pm    Post subject: Reply with quote

mglauche wrote:
Why does it beginn with shutdown ?

Asterisk is multithreaded.

The problem here is with music on hold. I've temorarily commented out the stuff in the music on hold conf file to get * up. I suspect we are using the wrong version of MPG123.
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Sat Oct 09, 2004 11:00 am    Post subject: Reply with quote

I changed the default in musiconhold.conf to quietunbuf, now asterisk starts :D
Back to top
View user's profile Send private message
GamesBond
n00b
n00b


Joined: 15 Mar 2004
Posts: 66
Location: Amsterdam

PostPosted: Sat Oct 09, 2004 2:14 pm    Post subject: Reply with quote

Did you find a solution for the zaptel compilation problem?

Asterisk still won't start here because of the zaptel problem.
Back to top
View user's profile Send private message
GamesBond
n00b
n00b


Joined: 15 Mar 2004
Posts: 66
Location: Amsterdam

PostPosted: Sun Oct 10, 2004 8:39 pm    Post subject: Reply with quote

OK, I got a little further. I don't know why but after re-emerging zapata finally zaptel will build. It is not working however and I still get too many erros during the build. It's now complaining about:

*** Warning: "zt_register" [/var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/ztdynamic.ko] has no CRC!
*** Warning: "zt_transmit" [/var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/ztdynamic.ko] has no CRC!
*** Warning: "zt_receive" [/var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/ztdynamic.ko] has no CRC!
*** Warning: "zt_ec_chunk" [/var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/ztdynamic.ko] has no CRC!
*** Warning: "zt_set_dynamic_ioctl" [/var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/ztdynamic.ko] has no CRC!
*** Warning: "zt_unregister" [/var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/ztdynamic.ko] has no CRC!
*** Warning: "zt_alarm_notify" [/var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/ztdynamic.ko] has no CRC!
*** Warning: "zt_rbsbits" [/var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/ztdynamic.ko] has no CRC!
*** Warning: "zt_transmit" [/var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/ztdummy.ko] has no CRC!
*** Warning: "zt_receive" [/var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/ztdummy.ko] has no CRC!
*** Warning: "zt_unregister" [/var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/ztdummy.ko] has no CRC!
*** Warning: "zt_register" [/var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/ztdummy.ko] has no CRC!
*** Warning: "zt_dynamic_unregister" [/var/tmp/portage/zaptel-1.0.0/work/zaptel-1.0.0/ztd-eth.ko] has no CRC!

etc
etc
etc
Back to top
View user's profile Send private message
RageX^NZ
n00b
n00b


Joined: 26 May 2003
Posts: 58
Location: Mount Maunganui, NEW ZEALAND

PostPosted: Mon Oct 11, 2004 4:36 am    Post subject: Reply with quote

That musiconhold unbuf thing has asterisk running sweet for me.

My plan of attack is to get all the extensions working how I want them then tackle getting my BRI ISDN card working which unfortunately requires building from CVS.

God damn, cant see why they dont just make a seperate module like libpri
Back to top
View user's profile Send private message
rjreb
n00b
n00b


Joined: 19 Aug 2003
Posts: 40

PostPosted: Tue Oct 12, 2004 2:36 am    Post subject: Reply with quote

I've tried to set up Asterisk but regardless if it's .90 or 1.0 my phone won't connect. Also I cannot telnet to port 5060.

Here's what I'm getting from my startup:

[app_db.so] => (Database access functions for Asterisk extension logic)
== Registered application 'DBget'
== Registered application 'DBput'
== Registered application 'DBdel'
== Registered application 'DBdeltree'
[chan_sip.so] => (Session Initiation Protocol (SIP))
== Parsing '/etc/asterisk/sip.conf': Found
Oct 11 19:20:30 WARNING[16384]: config.c:593 cfg_process: No '=' (equal sign) in line 54 of sip.conf
== SIP Listening on 0.0.0.0:5060
== Using TOS bits 0
== Registered channel type 'SIP' (Session Initiation Protocol (SIP))
== Registered application 'SIPDtmfMode'
== Parsing '/etc/asterisk/enum.conf': Found
Asterisk Ready.



But if I try to telnet I get:

telnet localhost 5060
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused


Here's my emerge settings if it's of any use:

[ebuild R ] net-misc/asterisk-0.9.0 -alsa -apache2 -doc -gtk -mmx -mysql +nopri +nozaptel

I'm missing something obvious but I'm starting to repeat myself so I figure it's time to ask for some assistance. Any help would be appreciated.
Back to top
View user's profile Send private message
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 441

PostPosted: Tue Oct 12, 2004 11:25 am    Post subject: Reply with quote

asterisk only supports SIP on UDP 5060 and not TCP 5060 hence, you cannot telnet to that port. You need to configure a account and soft/hard phone to the asterisk

xming
Back to top
View user's profile Send private message
GamesBond
n00b
n00b


Joined: 15 Mar 2004
Posts: 66
Location: Amsterdam

PostPosted: Tue Oct 12, 2004 2:43 pm    Post subject: Reply with quote

I'm a dumbass.

modprobing the modules revealed that the modules are working and my X100P is found......

Is this something I should be worried about:
Oct 12 16:42:12 WARNING[16384]: chan_skinny.c:2584 reload_config: Unable to get our IP address, Skinny disabled

Oct 12 16:42:12 WARNING[16384]: chan_oss.c:434 soundcard_init: Unable to open /dev/dsp: No such file or directory
Back to top
View user's profile Send private message
GamesBond
n00b
n00b


Joined: 15 Mar 2004
Posts: 66
Location: Amsterdam

PostPosted: Tue Oct 12, 2004 7:57 pm    Post subject: Reply with quote

Did anyone get music on hold working?

I specified unbuffered too but everytime musiconhold is supposed to kick in (or when testing it using the suggested addition to extensions.conf on voip-info.org) i get this message:

WARNING[294927]: res_musiconhold.c:366 moh1_exec: Unable to start music on hold (class '30') on channel SIP/101-8168
Back to top
View user's profile Send private message
RageX^NZ
n00b
n00b


Joined: 26 May 2003
Posts: 58
Location: Mount Maunganui, NEW ZEALAND

PostPosted: Tue Oct 12, 2004 8:58 pm    Post subject: Reply with quote

Ok My problem now is that conference calls do not work, I get

Oct 13 09:55:16 WARNING[245775]: chan_zap.c:755 zt_open: Unable to open '/dev/zap/pseudo': No such file or directory
Oct 13 09:55:16 ERROR[245775]: chan_zap.c:6663 chandup: Unable to dup channel: No such file or directory
Oct 13 09:55:16 WARNING[245775]: app_meetme.c:227 build_conf: Unable to open pseudo channel - trying device
Oct 13 09:55:16 WARNING[245775]: app_meetme.c:230 build_conf: Unable to open pseudo device


in the asterisk log, and when I start zaptel it seems to start but apon stopping it I get:

linux05 root # /etc/init.d/zaptel start
linux05 root # /etc/init.d/zaptel stop
* Stopping zaptel...
Notice: Configuration file is /etc/zaptel.conf
line 140: Unable to open master device '/dev/zap/ctl' [ ok ]
linux05 root #


The machine has NO FXO/FXS cards, it's VoIP only at this point, so any pointers on how to get this working are much appreciated.
Back to top
View user's profile Send private message
GamesBond
n00b
n00b


Joined: 15 Mar 2004
Posts: 66
Location: Amsterdam

PostPosted: Tue Oct 12, 2004 9:05 pm    Post subject: Reply with quote

Did you install udev already? Or are you still on devfs? My guess is that devfs is the problem. http://www.gentoo.org/doc/en/udev-guide.xml
Back to top
View user's profile Send private message
RageX^NZ
n00b
n00b


Joined: 26 May 2003
Posts: 58
Location: Mount Maunganui, NEW ZEALAND

PostPosted: Tue Oct 12, 2004 9:08 pm    Post subject: Reply with quote

Heh, yep still on devfs, just before I saw this reply I started installing UDEV so once the kernel recompiles I will hopefully be away.
Back to top
View user's profile Send private message
RageX^NZ
n00b
n00b


Joined: 26 May 2003
Posts: 58
Location: Mount Maunganui, NEW ZEALAND

PostPosted: Tue Oct 12, 2004 9:21 pm    Post subject: Reply with quote

OK even with udev and the following rules:


# Section for zaptel device
KERNEL="zapctl", NAME="zap/ctl"
KERNEL="zaptimer", NAME="zap/timer"
KERNEL="zapchannel", NAME="zap/channel"
KERNEL="zappseudo", NAME="zap/pseudo"
KERNEL="zap[0-9]*", NAME="zap/%n"


It does not create the /dev/zap nodes.

Perhaps it needs to have a module loaded to do this??
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum