Re: [asterisk-users] Asterisk 1.4 or 1.6 automated install script for CentOS 5.3 or 5.4

2010-01-16 Thread Zhang Shukun
I suggest you install it from source, that way you can learn
more about asterisk.

2010/1/16 William Stillwell (Lists) :
> Here is the 1.4.x version on centos 5 walk through.
>
>
>
> http://www.voip-info.org/wiki/view/CentOS+5+and+Asterisk+1.4.x+installation
>
>
>
>
>
>
>
> From: asterisk-users-boun...@lists.digium.com
> [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Bruce Nik
> Sent: Friday, January 15, 2010 3:15 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] Asterisk 1.4 or 1.6 automated install script
> for CentOS 5.3 or 5.4
>
>
>
> Provided there is no comprehensive install guides (or is there?) yes I would
> like to see an easy install script which can install it all.
>
>
>
> On Fri, Jan 15, 2010 at 12:27 PM, Bruce Nik  wrote:
>
> Hi Guys,
>
>
>
> Other than than yum repository (which fails when installing freepbx with it)
> are there any automated install scripts out there that would install
> Asterisk 1.6 or 1.4 onto a CentOS LAMP system?
>
>
>
> If the script install FreePBX that would be a BONUS.
>
>
>
> Thanks,
>
> Bruce
>
>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Best regards,
Sucan

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Faxing: Anyone have a compiled executable?

2010-01-16 Thread Doug

 > > >app_fax.c from:
 > > >
 > > >https://agx-ast-addons.svn.sourceforge.net/svnroot/agx-ast-addons/trun
 > > >k/app-spandsp/

Compiled OK:
   /usr/src/asterisk/app_fax# ls -lta app_fax.*
   -rwxr-xr-x 1 root root 28869 Jan 13 00:25 app_fax.so
   -rw-r--r-- 1 root root 25242 Jan 13 00:24 app_fax.c

Copied to modules directory:

   cp -p app_fax.so  /usr/lib/asterisk/modules/

There it is:

   ls -lta /usr/lib/asterisk/modules/app_fax*

   -rwxr-xr-x 1 root root 28869 Jan 16 02:10 
/usr/lib/asterisk/modules/app_fax.so

Added a specific line in /etc/asterisk/modules.conf:

   load => app_fax.so

Rebooted.  No module loaded:

   # lsmod | grep fax
   #

Searched on the Web:

   

Found stuff about Zaptel and ztdummy.  I compiled them
previously:

   # find / -name "*zaptel*.*o"
   /usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/zaptel-base.o
   /usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/zaptel.mod.o
   /usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/zaptel.ko
   /usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/zaptel.o
   /lib/modules/2.6.18-128.7.1.el5PAE/misc/zaptel.ko


   # find / -name "*ztdummy*"
   /usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/.ztdummy.mod.o.cmd
   /usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/.tmp_versions/ztdummy.mod
   /usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/ztdummy.mod.o
   /usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/.ztdummy.ko.cmd
   /usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/ztdummy.o
   /usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/ztdummy.mod.c
   /usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/ztdummy.c
   /usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/ztdummy.h
   /usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/.ztdummy.o.cmd
   /usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/ztdummy.ko
   /lib/modules/2.6.18-128.7.1.el5PAE/misc/ztdummy.ko


Checking:

   # lsmod | grep zaptel
   #

   # lsmod | grep ztdummy
   #

Thought I loaded:

   # modprobe zaptel
   FATAL: Module zaptel not found.

   # modprobe ztdummy
   FATAL: Module ztdummy not found.

I seem to be missing some very important steps.  Anyone
care to point me in the proper direction?



-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] DAHDI and Analogue lines (UK)

2010-01-16 Thread listu...@spamomania.co.uk
On Fri, 2010-01-15 at 22:26 +, Gordon Henderson wrote:
> On Sat, 16 Jan 2010, Tzafrir Cohen wrote:
> 
> > On Fri, Jan 15, 2010 at 04:06:54PM +, Gordon Henderson wrote:
> >>
> >> Have an intersting issue whem migrating a site from Zap on 1.3 to DAHDI on
> >> 1.4.. Nothing special about the hardware - older TDM400 card, 2 red
> >> modules fitted...
> >>
> >> Both channels work fine under 1.2/Zaptel. With 1.4/DAHDI both channels
> >> still work OK, but only for one line - the 2nd line causes it to refuse to
> >> dial-out no matter which port it's plugged into.
> >>
> >> The Lines are bog-standard BT analogue lines and we're about 2Km from the
> >> exchange. Both sound good to me and dial out OK with a test phone
> >> connected to them, but only one will dial-out via the PBX.
> >>
> >> This is what I see:
> >>
> >> [Jan  1 05:14:14] WARNING[1200]: app_dial.c:1237 dial_exec_full: Unable to 
> >> create channel of type 'DAHDI' (cause 0 - Unknown)
> >>== Everyone is busy/congested at this time (1:0/0/1)
> >>
> >> And yet the line isn't busy or congested - nothing's using it.
> >>
> >> The output of dsx*CLI> dahdi show status
> >> Description  Alarms IRQbpviol 
> >> CRC4
> >> Wildcard TDM400P REV E/F Board 5 OK 0  0  0
> >>
> >> is fine, as is:
> >>
> >> dsx*CLI> dahdi show channels
> >> Chan Extension  Context Language   MOH Interpret
> >>   pseudodefaultdefault
> >>1incoming   default
> >>2incoming   default
> >>
> >> So I'm a bit stuck. Why doesn't DAHDI like that particular line? What does
> >> it do to it that Zap didn't?
> >
> > What version of Zaptel?
> 
> Oldish - Zaptel Version: 1.2.23
> 
> > What is the value of 'InAlarm' from 'dahdi show channel 2' ?
> 
> InAlarm: 1
> 
> That's not good, is it...
> 
> Doesn't explain why an analogue phone connected to the line works OK 
> though - or can it indicate another sort of fault, or is it just too 
> fussy?
> 
> The line itself is their FAX line, although I'm not using it for FAXes - 
> just as a second outgoing call line (I have it arranged to innore incoming 
> calls - which are detected) There is also another phone on the line, so 3 
> devices including the asterisk box, however I got the same result with it 
> plugged directly into the master socket with nothing else connected.
> 
> Gordon
> 
Just in passing Gordon - call that line from an external phone and see
if the alarm clears. I've had some DAHDI issues where the alarm is up
until the line takes an incomming call, but it still works.


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Digium Asterisk World at ITEXPO - Yahoo keynote update

2010-01-16 Thread Hans Witvliet
On Fri, 2010-01-15 at 12:17 -0500, John Todd wrote:
> I don't know how many of you are going to be at ITEXPO/Digium Asterisk  
> World in Miami next week - I hope to see as many of you as possible,  
> though.
> 
A bit too far, i'll be at fosdem, Brussels

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk 1.4 or 1.6 automated install script for CentOS 5.3 or 5.4

2010-01-16 Thread Rob Hillis
On 01/16/10 04:27, Bruce Nik wrote:
> Hi Guys,
>
> Other than than yum repository (which fails when installing freepbx
> with it) are there any automated install scripts out there that would
> install Asterisk 1.6 or 1.4 onto a CentOS LAMP system?
>
> If the script install FreePBX that would be a BONUS.

Try PBX-in-a-Flash.  Undoubtedly it won't do everything you want out of
the box, but I suspect it will do /most/ of what you want out of the box.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] 10/100 voip phones and gigabit connection

2010-01-16 Thread Hans Witvliet
On Fri, 2010-01-15 at 19:10 -0700, Andrew Hakman wrote:

> 2 cables is definitely the best, followed by a cheap gig switch at each desk.
> 
GB lan for interconnecting computers would be optimal.
Seperate cabling for voip: ok, but i wouldn't put a switch at every
desktop: A 100MB switch with power-over-ethernet can be put on a UPS.

During my last blackout i found out that all but my switches were on the
UPS... bummer!
And i presume that Gb-p.o.e are even more expensive than 100Mb-p.o.e.

hw

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] 10/100 voip phones and gigabit connection

2010-01-16 Thread Thomas Kenyon
Jeff LaCoursiere wrote:
> 
> On Fri, 15 Jan 2010, Hans Witvliet wrote:
> 
>> If you connect your pc with GB-lan card to an dual-ported ip-phone, you
>> and up with an 100Mbps lan connection to your pc.
>>
>> Only way to avoid that, is to insert a cheap second lan-card in your pc,
>> and connect your phone to the second lan, so your pc will act as an
>> switch, instead of your phone...
> 
> I'm curious - how have you managed to connect a second LAN card and have 
> it bridge your (presumably onboard) ethernet?  Does Windows have such 
> capability?
 >
Right click on the interface and choose bridge connections.

>  But I guess the OP was running XUbuntu, and though relatively 
> complicated I guess you could get it to do that.
> 
Not all that complicated.

IIRC it's just.

brctl addbr br0
brctl addif eth0
brctl addif eth1

Then configure br0 as your interface.
> j
> 

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Howto regret blind transfer?

2010-01-16 Thread hbk
Hi,

Is it possible to "regret" blind transfer while its ringing (not answered)?

Thank you!

Best  regards
HB



-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk 1.4 or 1.6 automated install

2010-01-16 Thread Neeraj Chand
Use kickstart to configure your default packages, and then set up a
shell script to install the additional stuff you need. 

:)

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Hint for realtime peers

2010-01-16 Thread Deep D
Hello,

When I create a sip peer  in users.conf then a hint is automatically
created for that peer. But when I create a peer in sip.conf or a
realtime peer with the same values then this hint is not created.
Every time I add such peers I have to add a hint in extensions.conf.

Is it possible to have something like   exten =>
_XXX,hint,SIP/${EXTEN}   in extensions.conf so that I don't have to
add hint for each sip peer I create?

Thanks

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Howto regret blind transfer?

2010-01-16 Thread Doug Lytle
hbk wrote:
> Hi,
>
> Is it possible to "regret" blind transfer while its ringing (not answered)?
>
>

I'm guessing you mean recall or grab.

I haven't tried it myself, but I'm guessing that if the phone that did 
the blind transfer was in the same pickup group as destination phone, 
that you could probably grab that call using *8

Doug

-- 
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary 
Safety, deserve neither Liberty nor Safety."


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk 1.4 or 1.6 automated install script for CentOS 5.3 or 5.4

2010-01-16 Thread Tzafrir Cohen
On Sat, Jan 16, 2010 at 08:48:27PM +1100, Rob Hillis wrote:
> On 01/16/10 04:27, Bruce Nik wrote:
> > Hi Guys,
> >
> > Other than than yum repository (which fails when installing freepbx
> > with it) are there any automated install scripts out there that would
> > install Asterisk 1.6 or 1.4 onto a CentOS LAMP system?
> >
> > If the script install FreePBX that would be a BONUS.
> 
> Try PBX-in-a-Flash.  Undoubtedly it won't do everything you want out of
> the box, but I suspect it will do /most/ of what you want out of the box.

But will not let you debug that install script. I tend to distrust
running such a "hidden" script.

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk 1.4 or 1.6 automated install script for CentOS 5.3 or 5.4

2010-01-16 Thread Rob Hillis


On 01/17/10 01:15, Tzafrir Cohen wrote:
>> Try PBX-in-a-Flash.  Undoubtedly it won't do everything you want out of
>> the box, but I suspect it will do /most/ of what you want out of the box.
>> 
> But will not let you debug that install script. I tend to distrust
> running such a "hidden" script

What "hidden script" are you referring to?

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Hint for realtime peers

2010-01-16 Thread Tilghman Lesher
On Saturday 16 January 2010 06:04:01 Deep D wrote:
> When I create a sip peer  in users.conf then a hint is automatically
> created for that peer. But when I create a peer in sip.conf or a
> realtime peer with the same values then this hint is not created.
> Every time I add such peers I have to add a hint in extensions.conf.
>
> Is it possible to have something like   exten =>
> _XXX,hint,SIP/${EXTEN}   in extensions.conf so that I don't have to
> add hint for each sip peer I create?

Only in 1.6.1 and later.  The hints will grow, as phones subscribe to them,
one entry per hint, automatically.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Cross compiling Asterisk, Dahdi..

2010-01-16 Thread Gordon Henderson

Is there a proper, documented way to cross compile DAHDI and Asterisk for 
a processor/system other than the one you're currently typing on?

Now.. I have been doing this for some time, but it's been really 
frustrating every time I change/upgrade, etc.

I've just tried to compile DAHDI for an AMD Geode system on my development 
system which is Intel Atom. Building the kernel is easy - been doing that 
for years, but DAHDI is just hard and does the wrong thing.

So I start by hardwiring HOTPLUG to no because my target device doesn't 
support nor need it. Then setting KVERS to be the correct thing, and this 
is picked up by the Makefile, but I really want -march=geode and the only 
way I've found to get this is to edit Kbuild directly. (And comment out 
all the modules I really don't want to build like torisa, xpp, etc. Even 
then it still barfed on the VPMADT032 loader, so I just commented that 
whole section out.

Now, at install time, it's fiddling with system files on my build box that 
it really should not be touching at all - output from make:

[ `id -u` = 0 ] && /sbin/depmod -a 2.6.32.3-dsx-geode || :
install -d /etc/udev/rules.d
build_tools/genudevrules > /etc/udev/rules.d/dahdi.rules
build_tools/genudevrules: line 3: udevinfo: command not found
build_tools/genudevrules: line 7: udevadm: command not found
install -m 644 drivers/dahdi/xpp/xpp.rules /etc/udev/rules.d/
for hdr in kernel.h user.h fasthdlc.h wctdm_user.h dahdi_config.h; do \
 install -D -m 644 include/dahdi/$hdr 
/usr/include/dahdi/$hdr; \
 done
rmdir: failed to remove `/usr/include/zaptel': No such file or directory
make: [install-include] Error 1 (ignored)

I don't use udev on my build system, nor my target systems so why is it 
bothering... But I feel there really ought to be a means to tell it that 
it's not building for the local system, so don't fiddle with local 
files...

Bah!

OK. I appreciate that probably no-one actually bothers to compile a custom 
kernel, nor tune dahdi/asterisk to the underlying hardware, and 
probably no-one does a "true" cross compile but even so...

It's just being a frustrating afternoon.

(Although I would appreciate hearing from people who do cross compile 
"properly" for other chips - eg. compile for ARM on an Intel, etc.)

Gordon

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Faxing: Anyone have a compiled executable?

2010-01-16 Thread Kevin P. Fleming
Doug wrote:
>  > > >app_fax.c from:
>  > > >
>  > > >https://agx-ast-addons.svn.sourceforge.net/svnroot/agx-ast-addons/trun
>  > > >k/app-spandsp/
> 
> Compiled OK:
>/usr/src/asterisk/app_fax# ls -lta app_fax.*
>-rwxr-xr-x 1 root root 28869 Jan 13 00:25 app_fax.so
>-rw-r--r-- 1 root root 25242 Jan 13 00:24 app_fax.c
> 
> Copied to modules directory:
> 
>cp -p app_fax.so  /usr/lib/asterisk/modules/
> 
> There it is:
> 
>ls -lta /usr/lib/asterisk/modules/app_fax*
> 
>-rwxr-xr-x 1 root root 28869 Jan 16 02:10 
> /usr/lib/asterisk/modules/app_fax.so
> 
> Added a specific line in /etc/asterisk/modules.conf:
> 
>load => app_fax.so
> 
> Rebooted.  No module loaded:
> 
># lsmod | grep fax
>#

app_fax is not a kernel module, it's an Asterisk module. 'lsmod' is
never going to show it.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpflem...@digium.com
Check us out at www.digium.com & www.asterisk.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Faxing: Anyone have a compiled executable?

2010-01-16 Thread Juan C. Villa
http://cloudsconnected.com/?p=57

On Sat, 2010-01-16 at 03:20 -0600, Doug wrote:
> > > >app_fax.c from:
>  > > >
>  > > >https://agx-ast-addons.svn.sourceforge.net/svnroot/agx-ast-addons/trun
>  > > >k/app-spandsp/
> 
> Compiled OK:
>/usr/src/asterisk/app_fax# ls -lta app_fax.*
>-rwxr-xr-x 1 root root 28869 Jan 13 00:25 app_fax.so
>-rw-r--r-- 1 root root 25242 Jan 13 00:24 app_fax.c
> 
> Copied to modules directory:
> 
>cp -p app_fax.so  /usr/lib/asterisk/modules/
> 
> There it is:
> 
>ls -lta /usr/lib/asterisk/modules/app_fax*
> 
>-rwxr-xr-x 1 root root 28869 Jan 16 02:10 
> /usr/lib/asterisk/modules/app_fax.so
> 
> Added a specific line in /etc/asterisk/modules.conf:
> 
>load => app_fax.so
> 
> Rebooted.  No module loaded:
> 
># lsmod | grep fax
>#
> 
> Searched on the Web:
> 
>
> 
> Found stuff about Zaptel and ztdummy.  I compiled them
> previously:
> 
># find / -name "*zaptel*.*o"
>/usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/zaptel-base.o
>/usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/zaptel.mod.o
>/usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/zaptel.ko
>/usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/zaptel.o
>/lib/modules/2.6.18-128.7.1.el5PAE/misc/zaptel.ko
> 
> 
># find / -name "*ztdummy*"
>/usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/.ztdummy.mod.o.cmd
>/usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/.tmp_versions/ztdummy.mod
>/usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/ztdummy.mod.o
>/usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/.ztdummy.ko.cmd
>/usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/ztdummy.o
>/usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/ztdummy.mod.c
>/usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/ztdummy.c
>/usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/ztdummy.h
>/usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/.ztdummy.o.cmd
>/usr/src/asterisk/zaptel/zaptel-1.4.12.1/kernel/ztdummy.ko
>/lib/modules/2.6.18-128.7.1.el5PAE/misc/ztdummy.ko
> 
> 
> Checking:
> 
># lsmod | grep zaptel
>#
> 
># lsmod | grep ztdummy
>#
> 
> Thought I loaded:
> 
># modprobe zaptel
>FATAL: Module zaptel not found.
> 
># modprobe ztdummy
>FATAL: Module ztdummy not found.
> 
> I seem to be missing some very important steps.  Anyone
> care to point me in the proper direction?
> 
> 
> 




-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Cross compiling Asterisk, Dahdi..

2010-01-16 Thread Jean-Denis Girard
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Gordon

Gordon Henderson a écrit :
> Is there a proper, documented way to cross compile DAHDI and Asterisk for 
> a processor/system other than the one you're currently typing on?

Here is what I'm doing for building dahdi modules on my x86_64 system,
for geode target. In dahdi linux directory:

make KVERS=2.6.33-rc3-git3-sysnux KSRC=/home/jdg/RPM/BUILD/linux

Then install in /tmp/dahdi:
make DESTDIR=/tmp/dahdi ARCH=i386 KVERS=2.6.33-rc3-git3-sysnux
KSRC=/home/jdg/RPM/BUILD/linux install-modules

Then I make a tar of /tmp/dahdi, and extract that archive on the geode
target.

I don't know if it's the proper way to do it, but it works fine for me.

Thanks,
- --
Jean-Denis Girard

SysNux  Systèmes  Linux  en Polynésie française
http://www.sysnux.pf/   Tél: +689 50 10 40 / GSM: +689 79 75 27
-BEGIN PGP SIGNATURE-

iEYEARECAAYFAktR8KoACgkQuu7Rv+oOo/jTVgCcDGNON+UlFwz59ykMFV1aQWEy
gpEAn1MNPrqYfUoTowdjUbMexGqTvkz9
=RD6g
-END PGP SIGNATURE-

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Hint for realtime peers

2010-01-16 Thread Deep D
Hello,

I tried this in asterisk 1.6.1.1 by adding the line exten =>
_XXX,hint,SIP/${EXTEN} to the default context, but it did not work.

I gave the following commands through the manager interface

action: extensionstate
exten: 777

and the response was

Response: Success
Message: Extension Status
Exten: 777
Context: default
Hint: SIP/${EXTEN}
Status: 0

I am always getting a Status: 0 for any value of exten. I think the
variable ${EXTEN} is not being evaluated to its value.


On Sat, Jan 16, 2010 at 9:21 PM, Tilghman Lesher  wrote:
> On Saturday 16 January 2010 06:04:01 Deep D wrote:
>> When I create a sip peer  in users.conf then a hint is automatically
>> created for that peer. But when I create a peer in sip.conf or a
>> realtime peer with the same values then this hint is not created.
>> Every time I add such peers I have to add a hint in extensions.conf.
>>
>> Is it possible to have something like   exten =>
>> _XXX,hint,SIP/${EXTEN}   in extensions.conf so that I don't have to
>> add hint for each sip peer I create?
>
> Only in 1.6.1 and later.  The hints will grow, as phones subscribe to them,
> one entry per hint, automatically.
>
> --
> Tilghman Lesher
> Digium, Inc. | Senior Software Developer
> twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
> Check us out at: www.digium.com & www.asterisk.org
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Hint for realtime peers

2010-01-16 Thread Tilghman Lesher
On Saturday 16 January 2010 11:02:52 Deep D wrote:
> On Sat, Jan 16, 2010 at 9:21 PM, Tilghman Lesher  wrote:
> > On Saturday 16 January 2010 06:04:01 Deep D wrote:
> >> When I create a sip peer  in users.conf then a hint is automatically
> >> created for that peer. But when I create a peer in sip.conf or a
> >> realtime peer with the same values then this hint is not created.
> >> Every time I add such peers I have to add a hint in extensions.conf.
> >>
> >> Is it possible to have something like   exten =>
> >> _XXX,hint,SIP/${EXTEN}   in extensions.conf so that I don't have to
> >> add hint for each sip peer I create?
> >
> > Only in 1.6.1 and later.  The hints will grow, as phones subscribe to
> > them, one entry per hint, automatically.
>
> I tried this in asterisk 1.6.1.1 by adding the line exten =>
> _XXX,hint,SIP/${EXTEN} to the default context, but it did not work.
>
> I gave the following commands through the manager interface
>
> action: extensionstate
> exten: 777
>
> and the response was
>
> Response: Success
> Message: Extension Status
> Exten: 777
> Context: default
> Hint: SIP/${EXTEN}
> Status: 0
>
> I am always getting a Status: 0 for any value of exten. I think the
> variable ${EXTEN} is not being evaluated to its value.

That's not a subscription.  You must actually get a phone to subscribe to
the hint before it is created.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Anyone have provisioning documentation for LeadTek devices?

2010-01-16 Thread Eric Chamberlain
Hi,

A friend has a few hundred deployed LeadTek BVA8055's and needs to bulk 
re-provision them.  There isn't much documentation on the web.  

Anyone have documentation explaining the LeadTek provisioning process and the 
provisioning file format?

--
Eric Chamberlain




-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Cross compiling Asterisk, Dahdi..

2010-01-16 Thread Gordon Henderson

On Sat, 16 Jan 2010, Jean-Denis Girard wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Gordon

Gordon Henderson a écrit :

Is there a proper, documented way to cross compile DAHDI and Asterisk for
a processor/system other than the one you're currently typing on?


Here is what I'm doing for building dahdi modules on my x86_64 system,
for geode target. In dahdi linux directory:

make KVERS=2.6.33-rc3-git3-sysnux KSRC=/home/jdg/RPM/BUILD/linux

Then install in /tmp/dahdi:
make DESTDIR=/tmp/dahdi ARCH=i386 KVERS=2.6.33-rc3-git3-sysnux
KSRC=/home/jdg/RPM/BUILD/linux install-modules


OK. I'll give that a go - I didn't think ARCH would be picked up.

And you ought to be able to use ARCH=geode as gcc recognises it. Whether 
it actually produces different code remains to be seen, but I feel it's 
good to make the effort.


Thanks,

Gordon-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Faxing: Anyone have a compiled executable?

2010-01-16 Thread Mr. James W. Laferriere
Hello Kevin & All ,

On Sat, 16 Jan 2010, Kevin P. Fleming wrote:
> Doug wrote:
>> >>>app_fax.c from:
>> >>>
>> >>>https://agx-ast-addons.svn.sourceforge.net/svnroot/agx-ast-addons/trun
>> >>>k/app-spandsp/
>>
>> Compiled OK:
>>/usr/src/asterisk/app_fax# ls -lta app_fax.*
>>-rwxr-xr-x 1 root root 28869 Jan 13 00:25 app_fax.so
>>-rw-r--r-- 1 root root 25242 Jan 13 00:24 app_fax.c
>>
>> Copied to modules directory:
>>
>>cp -p app_fax.so  /usr/lib/asterisk/modules/
>>
>> There it is:
>>
>>ls -lta /usr/lib/asterisk/modules/app_fax*
>>
>>-rwxr-xr-x 1 root root 28869 Jan 16 02:10
>> /usr/lib/asterisk/modules/app_fax.so
>>
>> Added a specific line in /etc/asterisk/modules.conf:
>>
>>load => app_fax.so
>>
>> Rebooted.  No module loaded:
>>
>># lsmod | grep fax
>>#
>
> app_fax is not a kernel module, it's an Asterisk module. 'lsmod' is
> never going to show it.

Kevin ,  Sometimes your about as helpful as passing wind .

How about telling him howto determine if Asterisk has loaded the module 
successfully ?

Maybe even a grep of /var/log/asterisk/debug or 
/var/log/asterisk/messages for app_fax .  Would have helped him more than that 
comment .  Sorry that reply just really rubbed me wrong .

I've found a 'visual only' way of seeing loaded modules under Asterisk 
1.4.21.2 ...

module reload ?  <  Should show those modules available for reload ,  
So 
I expect they have been loaded successfully .

Here's something that would be good a 'module show loaded' command 
showing the user the successfully loaded moduels !?

Hth ,  JimL
-- 
+--+
| James   W.   Laferriere | SystemTechniques | Give me VMS |
| Network&System Engineer | 3237 Holden Road |  Give me Linux  |
| bab...@baby-dragons.com | Fairbanks, AK. 99709 |   only  on  AXP |
+--+

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Faxing: Anyone have a compiled executable?

2010-01-16 Thread Steve Totaro
On Sat, Jan 16, 2010 at 1:16 PM, Mr. James W. Laferriere <
bab...@baby-dragons.com> wrote:

>Hello Kevin & All ,
>
> On Sat, 16 Jan 2010, Kevin P. Fleming wrote:
> > Doug wrote:
> >> >>>app_fax.c from:
> >> >>>
> >> >>>
> https://agx-ast-addons.svn.sourceforge.net/svnroot/agx-ast-addons/trun
> >> >>>k/app-spandsp/
> >>
> >> Compiled OK:
> >>/usr/src/asterisk/app_fax# ls -lta app_fax.*
> >>-rwxr-xr-x 1 root root 28869 Jan 13 00:25 app_fax.so
> >>-rw-r--r-- 1 root root 25242 Jan 13 00:24 app_fax.c
> >>
> >> Copied to modules directory:
> >>
> >>cp -p app_fax.so  /usr/lib/asterisk/modules/
> >>
> >> There it is:
> >>
> >>ls -lta /usr/lib/asterisk/modules/app_fax*
> >>
> >>-rwxr-xr-x 1 root root 28869 Jan 16 02:10
> >> /usr/lib/asterisk/modules/app_fax.so
> >>
> >> Added a specific line in /etc/asterisk/modules.conf:
> >>
> >>load => app_fax.so
> >>
> >> Rebooted.  No module loaded:
> >>
> >># lsmod | grep fax
> >>#
> >
> > app_fax is not a kernel module, it's an Asterisk module. 'lsmod' is
> > never going to show it.
>
> Kevin ,  Sometimes your about as helpful as passing wind .
>
>How about telling him howto determine if Asterisk has loaded the
> module
> successfully ?
>
>Maybe even a grep of /var/log/asterisk/debug or
> /var/log/asterisk/messages for app_fax .  Would have helped him more than
> that
> comment .  Sorry that reply just really rubbed me wrong .
>
>I've found a 'visual only' way of seeing loaded modules under
> Asterisk
> 1.4.21.2 ...
>
>module reload ?  <  Should show those modules available for reload ,
>  So
> I expect they have been loaded successfully .
>
>Here's something that would be good a 'module show loaded' command
> showing the user the successfully loaded moduels !?
>
>Hth ,  JimL
> --
> +--+
> | James   W.   Laferriere | SystemTechniques | Give me VMS |
> | Network&System Engineer | 3237 Holden Road |  Give me Linux  |
> | bab...@baby-dragons.com | Fairbanks, AK. 99709 |   only  on  AXP |
> +--+
>
> Try loading or reloading the module from the Asterisk CLI and see if it
complains.  Then check /var/log/asterisk/full or whatever.

You could try module show like and hit tab, if app_fax.so is not listed, it
isn't loaded.  Version 1.6, not sure if it works in 1.4.

Thanks,
Steve T
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Faxing: Anyone have a compiled executable?

2010-01-16 Thread Kevin P. Fleming
Mr. James W. Laferriere wrote:

>   Kevin ,  Sometimes your about as helpful as passing wind .

Thanks!

>   How about telling him howto determine if Asterisk has loaded the module 
> successfully ?

Users of Asterisk should be able to type 'help' at the Asterisk console
prompt, or do Google searches like "show asterisk modules".

>   Maybe even a grep of /var/log/asterisk/debug or 
> /var/log/asterisk/messages for app_fax .  Would have helped him more than 
> that 
> comment .  Sorry that reply just really rubbed me wrong .
> 
>   I've found a 'visual only' way of seeing loaded modules under Asterisk 
> 1.4.21.2 ...
> 
>   module reload ?  <  Should show those modules available for reload ,  
> So 
> I expect they have been loaded successfully .
> 
>   Here's something that would be good a 'module show loaded' command 
> showing the user the successfully loaded moduels !?

You mean like 'module show'? Or 'module show app_fax.so'? Those commands
already exist.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpflem...@digium.com
Check us out at www.digium.com & www.asterisk.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Faxing: Anyone have a compiled executable?

2010-01-16 Thread Fred Posner
On Jan 16, 2010, at 1:16 PM, Mr. James W. Laferriere wrote: [snip]
>   Kevin ,  Sometimes your about as helpful as passing wind .
> 

Hmmm... I do find passing wind to be quite helpful sometimes. Afraid I lost the 
reference.

---fred
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] 10/100 voip phones and gigabit connection

2010-01-16 Thread Leif Neland
Jeff LaCoursiere skrev:
> On Fri, 15 Jan 2010, Hans Witvliet wrote:
>
>   
>> If you connect your pc with GB-lan card to an dual-ported ip-phone, you
>> and up with an 100Mbps lan connection to your pc.
>>
>> Only way to avoid that, is to insert a cheap second lan-card in your pc,
>> and connect your phone to the second lan, so your pc will act as an
>> switch, instead of your phone...
>> 
>
> I'm curious - how have you managed to connect a second LAN card and have 
> it bridge your (presumably onboard) ethernet?  Does Windows have such 
> capability?  But I guess the OP was running XUbuntu, and though relatively 
> complicated I guess you could get it to do that.
>
> j
>
>   
On my laptop I just used the controlpanel -> network connections , 
marked wireless and build-in card, rightclicked and selected "bridge 
networks".
Then I plugged my ip-phone in the laptop, and my phone was connected via 
wlan.

So at least in Vista it's built in.

Leif


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] 10/100 voip phones and gigabit connection

2010-01-16 Thread Leif Neland
Hans Witvliet skrev:
> During my last blackout i found out that all but my switches were on the
> UPS... bummer!
>   
Coincidentially, in danish, "oops" is spelled "ups".

It also gives funny images when your packages are delivered by a company 
called "Oops"...

Leif

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Howto regret blind transfer?

2010-01-16 Thread Leif Neland
hbk skrev:
> Hi,
>
> Is it possible to "regret" blind transfer while its ringing (not answered)?
>
>   
Call pickup. If the phone is in your pickup-group.

Leif

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Faxing: Anyone have a compiled executable?

2010-01-16 Thread Mr. James W. Laferriere
Hello Kevin (& All) ,

On Sat, 16 Jan 2010, Kevin P. Fleming wrote:
> Mr. James W. Laferriere wrote:
>
>>  Kevin ,  Sometimes your about as helpful as passing wind .
>
> Thanks!
Like I said the response just rubbed me wrong ,  Sorry .

>>  How about telling him howto determine if Asterisk has loaded the module
>> successfully ?
>
> Users of Asterisk should be able to type 'help' at the Asterisk console
> prompt, or do Google searches like "show asterisk modules".
Will show the user a whole bunch of entries or even doing the same 
search at http://www.voip-info.org/ would probably be better .
This would have been a better response .

>>  Maybe even a grep of /var/log/asterisk/debug or
>> /var/log/asterisk/messages for app_fax .  Would have helped him more than 
>> that
>> comment .  Sorry that reply just really rubbed me wrong .
>>
>>  I've found a 'visual only' way of seeing loaded modules under Asterisk
>> 1.4.21.2 ...
>>
>>  module reload ?  <  Should show those modules available for reload ,  So
>> I expect they have been loaded successfully .
>>
>>  Here's something that would be good a 'module show loaded' command
>> showing the user the successfully loaded moduels !?
>
> You mean like 'module show'? Or 'module show app_fax.so'? Those commands
> already exist.
No ,  As far as I can tell .  'modules show' shows you the WHOLE list 
of 
available modules NOT just the ones in use .  At least that is what appears to 
be shown when I issue that command line .  when I do the 'module reload ?' 
trick I see those that match my asterisk/*.conf entries .

Now as far as the user was concerned the second one mentioned above 
would have shown him that it was either loaded or not .

And either of those lines is what the OP/User was looking for .

Twyl ,  JimL
-- 
+--+
| James   W.   Laferriere | SystemTechniques | Give me VMS |
| Network&System Engineer | 3237 Holden Road |  Give me Linux  |
| bab...@baby-dragons.com | Fairbanks, AK. 99709 |   only  on  AXP |
+--+

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Howto regret blind transfer?

2010-01-16 Thread Olivier
2010/1/16 hbk 

> Hi,
>
> Is it possible to "regret" blind transfer while its ringing (not answered)?
>
> Thank you!
>
> Best  regards
> HB
>
>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Howto regret blind transfer?

2010-01-16 Thread Olivier
2010/1/16 hbk 

> Hi,
>
> Is it possible to "regret" blind transfer while its ringing (not answered)?
>
*0 ? (see features.conf)

>
> Thank you!
>
> Best  regards
> HB
>
>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Hint for realtime peers

2010-01-16 Thread Leif Neland
Tilghman Lesher skrev:
> On Saturday 16 January 2010 11:02:52 Deep D wrote:
>   
>> On Sat, Jan 16, 2010 at 9:21 PM, Tilghman Lesher  wrote:
>> 
>>> On Saturday 16 January 2010 06:04:01 Deep D wrote:
>>>   
 When I create a sip peer  in users.conf then a hint is automatically
 created for that peer. But when I create a peer in sip.conf or a
 realtime peer with the same values then this hint is not created.
 Every time I add such peers I have to add a hint in extensions.conf.

 Is it possible to have something like   exten =>
 _XXX,hint,SIP/${EXTEN}   in extensions.conf so that I don't have to
 add hint for each sip peer I create?
 
>>> Only in 1.6.1 and later.  The hints will grow, as phones subscribe to
>>> them, one entry per hint, automatically.
>>>   
>> I tried this in asterisk 1.6.1.1 by adding the line exten =>
>> _XXX,hint,SIP/${EXTEN} to the default context, but it did not work.
>>
>> I gave the following commands through the manager interface
>>
>> action: extensionstate
>> exten: 777
>>
>> and the response was
>>
>> Response: Success
>> Message: Extension Status
>> Exten: 777
>> Context: default
>> Hint: SIP/${EXTEN}
>> Status: 0
>>
>> I am always getting a Status: 0 for any value of exten. I think the
>> variable ${EXTEN} is not being evaluated to its value.
>> 
>
> That's not a subscription.  You must actually get a phone to subscribe to
> the hint before it is created.
>
>   
Might be true for "dynamic" hints.
But for static hints it's not.

> arnold*CLI> core show hints
> arnold*CLI>
> -= Registered Asterisk Dial Plan Hints =-
>   6...@hintcontext : SIP/6 
> State:IdleWatchers  0
>   5...@hintcontext : SIP/jesperfon 
> State:IdleWatchers  1
I have several "unused" hints.

Leif


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Do any providers support speex codec?

2010-01-16 Thread Daniel Clark
Do any providers support speex codec?

I just searched for a while and couldn't find anything.

I'm looking for both SIP vendors (such as galaxyvoice) and IAX / IAX2
vendors (such as voipjet).

I'm looking for a company that would be cheap for low-volume use.

Thanks,
-- 
Daniel JB Clark | http://pobox.com/~dclark

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Cross compiling Asterisk, Dahdi..

2010-01-16 Thread Tzafrir Cohen
On Sat, Jan 16, 2010 at 03:54:44PM +, Gordon Henderson wrote:
> 
> Is there a proper, documented way to cross compile DAHDI and Asterisk for 
> a processor/system other than the one you're currently typing on?
> 
> Now.. I have been doing this for some time, but it's been really 
> frustrating every time I change/upgrade, etc.
> 
> I've just tried to compile DAHDI for an AMD Geode system on my development 
> system which is Intel Atom. Building the kernel is easy - been doing that 
> for years, but DAHDI is just hard and does the wrong thing.
> 
> So I start by hardwiring HOTPLUG to no because my target device doesn't 
> support nor need it. 

HOTPLUG is a slightly misleading name. If it is enabled, it means
firmware loading from userspace is enabled in the kernel. If so, drivers
for some digium cards will not include the firmware inside them.

Most system I know support firmware loading. If you don't use those
cards, those drivers will simply be smaller (as they don't include the
firmware blobs). In short: leave this one for automatic detection.

> Then setting KVERS to be the correct thing, 

Hmm... I'm not really sure if KVERS is still used (if you explicitly set
KSRC, that is).

> and this 
> is picked up by the Makefile, but I really want -march=geode and the only 
> way I've found to get this is to edit Kbuild directly. 

Kbuild should do that for you. Or rather: if you used that for building
the kernel, it should also be used for DAHDI. If this doesn't work, I
suspect your kernel tree is misconfigured.

Reminder: to make Kbuild print the full build lines, use:

  make V=1

> (And comment out 
> all the modules I really don't want to build like torisa, xpp, etc. Even 
> then it still barfed on the VPMADT032 loader, so I just commented that 
> whole section out.

What error did you get?

> 
> Now, at install time, it's fiddling with system files on my build box that 
> it really should not be touching at all - output from make:
> 
> [ `id -u` = 0 ] && /sbin/depmod -a 2.6.32.3-dsx-geode || :
> install -d /etc/udev/rules.d
> build_tools/genudevrules > /etc/udev/rules.d/dahdi.rules
> build_tools/genudevrules: line 3: udevinfo: command not found
> build_tools/genudevrules: line 7: udevadm: command not found
> install -m 644 drivers/dahdi/xpp/xpp.rules /etc/udev/rules.d/
> for hdr in kernel.h user.h fasthdlc.h wctdm_user.h dahdi_config.h; do \
>  install -D -m 644 include/dahdi/$hdr 
> /usr/include/dahdi/$hdr; \
>  done
> rmdir: failed to remove `/usr/include/zaptel': No such file or directory
> make: [install-include] Error 1 (ignored)
> 
> I don't use udev on my build system, nor my target systems so why is it 
> bothering... But I feel there really ought to be a means to tell it that 
> it's not building for the local system, so don't fiddle with local 
> files...

You don't use udev at all? In this case those static device files will
actually have to be created on the target system.

> 
> Bah!
> 
> OK. I appreciate that probably no-one actually bothers to compile a custom 
> kernel, nor tune dahdi/asterisk to the underlying hardware, and 
> probably no-one does a "true" cross compile but even so...
> 
> It's just being a frustrating afternoon.
> 
> (Although I would appreciate hearing from people who do cross compile 
> "properly" for other chips - eg. compile for ARM on an Intel, etc.)

I note you didn't really include the commands you used.

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Cross compiling Asterisk, Dahdi..

2010-01-16 Thread Tzafrir Cohen
On Sat, Jan 16, 2010 at 07:00:26AM -1000, Jean-Denis Girard wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hi Gordon
> 
> Gordon Henderson a écrit :
> > Is there a proper, documented way to cross compile DAHDI and Asterisk for 
> > a processor/system other than the one you're currently typing on?
> 
> Here is what I'm doing for building dahdi modules on my x86_64 system,
> for geode target. In dahdi linux directory:
> 
> make KVERS=2.6.33-rc3-git3-sysnux KSRC=/home/jdg/RPM/BUILD/linux
> 
> Then install in /tmp/dahdi:
> make DESTDIR=/tmp/dahdi ARCH=i386 KVERS=2.6.33-rc3-git3-sysnux
> KSRC=/home/jdg/RPM/BUILD/linux install-modules

Is an explicit ARCH needed? It shouldn't have been there in the first
place. The ARCH is caculated by Kbuild from your config (in the kernel
tree) and there should be no need to provide it (at least as of dahdi
2.2).

Likewise: is KVERS really needed in that line?

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Cross compiling Asterisk, Dahdi..

2010-01-16 Thread Jean-Denis Girard
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tzafrir Cohen a écrit :
> On Sat, Jan 16, 2010 at 07:00:26AM -1000, Jean-Denis Girard wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Hi Gordon
>>
>> Gordon Henderson a écrit :
>>> Is there a proper, documented way to cross compile DAHDI and Asterisk for 
>>> a processor/system other than the one you're currently typing on?
>> Here is what I'm doing for building dahdi modules on my x86_64 system,
>> for geode target. In dahdi linux directory:
>>
>> make KVERS=2.6.33-rc3-git3-sysnux KSRC=/home/jdg/RPM/BUILD/linux
>>
>> Then install in /tmp/dahdi:
>> make DESTDIR=/tmp/dahdi ARCH=i386 KVERS=2.6.33-rc3-git3-sysnux
>> KSRC=/home/jdg/RPM/BUILD/linux install-modules
> 
> Is an explicit ARCH needed? It shouldn't have been there in the first
> place. The ARCH is caculated by Kbuild from your config (in the kernel
> tree) and there should be no need to provide it (at least as of dahdi
> 2.2).
> 
> Likewise: is KVERS really needed in that line?
> 

ARCH seems to be  needed:

[...@tiare dahdi-linux.svn]$ make DESTDIR=/tmp/dahdi
KSRC=/home/jdg/RPM/BUILD/linux


  CC [M]
/home/jdg/RPM/BUILD/dahdi-linux.svn/drivers/dahdi/dahdi_echocan_mg2.o
  LD [M]
/home/jdg/RPM/BUILD/dahdi-linux.svn/drivers/dahdi/dahdi_vpmadt032_loader.o
ld: Relocatable linking with relocations from format elf64-x86-64
(/home/jdg/RPM/BUILD/dahdi-linux.svn/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_64.o)
to format elf32-i386
(/home/jdg/RPM/BUILD/dahdi-linux.svn/drivers/dahdi/dahdi_vpmadt032_loader.o)
is not supported
make[2]: ***
[/home/jdg/RPM/BUILD/dahdi-linux.svn/drivers/dahdi/dahdi_vpmadt032_loader.o]
Erreur 1
make[1]: *** [_module_/home/jdg/RPM/BUILD/dahdi-linux.svn/drivers/dahdi]
Erreur 2
make[1]: quittant le répertoire « /home/jdg/RPM/BUILD/linux-2.6 »
make: *** [modules] Erreur 2


KVERS is not needed.

This is with today svn tree.
[...@tiare dahdi-linux.svn]$ svnversion
7918


Thanks,
- --
Jean-Denis Girard

SysNux  Systèmes  Linux  en Polynésie française
http://www.sysnux.pf/   Tél: +689 50 10 40 / GSM: +689 79 75 27
-BEGIN PGP SIGNATURE-

iEYEARECAAYFAktSVksACgkQuu7Rv+oOo/gxEQCeJSJDm9LwbYqaNN/3rSmvES11
QqUAnRuMY7NNRAIJcwlZMTvxJuuJ7KFx
=E+1B
-END PGP SIGNATURE-

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Hint for realtime peers

2010-01-16 Thread Tilghman Lesher
On Saturday 16 January 2010 14:28:14 Leif Neland wrote:
> Tilghman Lesher skrev:
> > On Saturday 16 January 2010 11:02:52 Deep D wrote:
> >> On Sat, Jan 16, 2010 at 9:21 PM, Tilghman Lesher  
wrote:
> >>> On Saturday 16 January 2010 06:04:01 Deep D wrote:
>  When I create a sip peer  in users.conf then a hint is automatically
>  created for that peer. But when I create a peer in sip.conf or a
>  realtime peer with the same values then this hint is not created.
>  Every time I add such peers I have to add a hint in extensions.conf.
> 
>  Is it possible to have something like   exten =>
>  _XXX,hint,SIP/${EXTEN}   in extensions.conf so that I don't have to
>  add hint for each sip peer I create?
> >>>
> >>> Only in 1.6.1 and later.  The hints will grow, as phones subscribe to
> >>> them, one entry per hint, automatically.
> >>
> >> I tried this in asterisk 1.6.1.1 by adding the line exten =>
> >> _XXX,hint,SIP/${EXTEN} to the default context, but it did not work.
> >>
> >> I gave the following commands through the manager interface
> >>
> >> action: extensionstate
> >> exten: 777
> >>
> >> and the response was
> >>
> >> Response: Success
> >> Message: Extension Status
> >> Exten: 777
> >> Context: default
> >> Hint: SIP/${EXTEN}
> >> Status: 0
> >>
> >> I am always getting a Status: 0 for any value of exten. I think the
> >> variable ${EXTEN} is not being evaluated to its value.
> >
> > That's not a subscription.  You must actually get a phone to subscribe to
> > the hint before it is created.
>
> Might be true for "dynamic" hints.
> But for static hints it's not.

Thank you, Captain Obvious.  I am trying to explain to the OP what he did
wrong and how to make it work correctly.  He is not using static hints; he
is attempting to use dynamic hints, so an explanation of how static hints
work is not warranted, unless you're going to explain the difference.

> > arnold*CLI> core show hints
> > arnold*CLI>
> > -= Registered Asterisk Dial Plan Hints =-
> >   6...@hintcontext : SIP/6
> > State:IdleWatchers  0
> >   5...@hintcontext : SIP/jesperfon
> > State:IdleWatchers  1
>
> I have several "unused" hints.

If he had a phone subscribe to the dynamic hints and unsubscribe, the hint
would continue to exist until he performed a reload.  This is how dynamic
hints work -- they are created as needed and disappear on reload, if they are
no longer being watched.

If, on the other hand, you are saying that the behavior needs more explanation
or documentation or perhaps the hint needs to be evaluated in more places,
that was not clear.  Were someone to make such a suggestion AFTER
understanding what makes dynamic hints work, that would be a welcome
suggestion, and I also think it would be quite doable.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Faxing: Anyone have a compiled executable?

2010-01-16 Thread Tilghman Lesher
On Saturday 16 January 2010 14:23:16 Mr. James W. Laferriere wrote:
> On Sat, 16 Jan 2010, Kevin P. Fleming wrote:
> > Mr. James W. Laferriere wrote:
> >>Here's something that would be good a 'module show loaded' command
> >> showing the user the successfully loaded moduels !?
> >
> > You mean like 'module show'? Or 'module show app_fax.so'? Those commands
> > already exist.
>
>   No ,  As far as I can tell .  'modules show' shows you the WHOLE list of
> available modules NOT just the ones in use .  At least that is what appears
> to be shown when I issue that command line .  when I do the 'module reload
> ?' trick I see those that match my asterisk/*.conf entries .

That's incorrect.  "module show" shows only those modules which are currently
loaded.  BTW, there is also the command "module show like fax", which is much
easier than typing out the whole module name, may show you more modules than
you were aware of, and might be extremely helpful by showing you other
related modules that are already loaded.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users