[Resolved] Asterisk 1.4.1 + IAX + ztdummy


I have a problem with IAX trunking. I installed ztdummy from Zaptel 1.4.0 and it looks like asteriks dosn’t know that ztdummy is installed. I use debian with 2.6.8 kernel.

every time I load IAX module I get this warning:

CCPBX*CLI> module reload chan_iax2.so -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2)) == Parsing '/etc/asterisk/iax.conf': Found [Mar 20 18:33:30] WARNING[2502]: config.c:737 process_text_line: Unknown directive 'externip=' at line 15 of /etc/asterisk/iax.conf [Mar 20 18:33:30] WARNING[2502]: config.c:737 process_text_line: Unknown directive 'localnet=' at line 16 of /etc/asterisk/iax.conf == Parsing '/etc/asterisk/iax_trunk.conf': Found [Mar 20 18:33:30] NOTICE[2502]: chan_iax2.c:8858 set_config: Ignoring bindport on reload [Mar 20 18:33:30] NOTICE[2502]: chan_iax2.c:8917 set_config: Ignoring bindaddr on reload == Parsing '/etc/asterisk/users.conf': Found [Mar 20 18:33:30] WARNING[2502]: chan_iax2.c:8582 build_user: Unable to support trunking on user 'trunx-iax2-ccpbx' without zaptel timing [Mar 20 18:33:30] WARNING[2502]: chan_iax2.c:8344 build_peer: Unable to support trunking on peer 'trunx-iax2-ccpbx' without zaptel timing > doing dnsmgr_lookup for '' == Loaded firmware 'iaxy.bin' == Parsing '/etc/asterisk/iaxprov.conf': Found -- Loaded provisioning template 'default'

What am I doing wrong?

You will get what you need here from fantastic people that know the program inside out. As far as me I’m still learning and will try to help with the little I know.

You said you installed ztdummy, have you checked and see that it is istalled?
The following statement will tell you if it’s installed.

lsmod | grep ztdummy

Module Size Used by
ztdummy 3796 0
zaptel 201988 0 ztdummy

Zaptel is the first program you install, after installation I do a “make config” in zaptel directory and reload asterisk, this way it will load both zaptel and ztdummy automatically everytime you start asterisk.

Hope this help for tonight.


Yes ztdummy is 100% installed. I checked with lsmod. I allso made a startup file so this couldnt be the problem. I allso rebuild asterisk but the message is still there… Am I missing some module in asterisk? How does asterisk know that ztdummy is installed? Do I have to have zaptel.conf in /etc/asterisk?

Thanks for reply.

asteriskdocs.org/modules/tin … .php?id=11

This link will get you the one of the first asterisk books, around page 60 you will find all installation procedures for the main modules.

One thing I did once was not to install the sample files and with no experience this was a mistake.

Install zaptel and after you finish do a make config in the same directory then libpri then asterisk, after asterisk do the make samples and make config. from root do “/etc/rc.d/init.d/asterisk start” then start the cli by “asterisk -rvvvvvvvvv” and give it a try, should work with verbosity to 9 you will see on the cli what’s going on or the log files. Log files are found in /var/log/asterisk.

My potential is limited but I have mine working just fine. Hope this helps.

I followed the procedures by the book… The only thing is I installed asterisk first and zaptel second. Do I need libpri for ztdummy? I made make samples…the only thing I see in logs is

[Mar 22 18:19:11] WARNING[3042] chan_iax2.c: Unable to support trunking on user 'trunx-iax2-ccpbx' without zaptel timing [Mar 22 18:19:11] WARNING[3042] chan_iax2.c: Unable to support trunking on peer 'trunx-iax2-ccpbx' without zaptel timing

So what is missing?

Yes, you do. In the book page 50 Package Requirements, be sure to load the requirements they are all easy I do it via yum. If I’m not mistaken you may get them all in the following sytax.

yum install gcc libxml2-devel libtiff-devel mysql-server php-gd php-mysqlkernel-devel bison ncurses-devel audiofile-devel subversion libogg-devel openssl-devel

I sending you a link if need to uninstall asterisk and start over it’s simple and painless. The install process is zaptel, libpri, asterisk. If you read from page 50 on it’s all detailed but each module just do a make, make install if you are using 1.2 after you configure zaptel do a make config and the same after you install asterisk, reboot and it should all be ok. Here is the link look for remove asterisk.

OK I found the problem… When I start asterisk with user “asterisk” it doesn’t detect ztdummy…but when I start it with “root” it is ok… So I am missing rights someweare…

Well with the information at hand now it should be easy to find where. The chapter on the book starting with page fifty, has section where it tells you all the asterisk directories and another thing I noticed yesterday which I had forgott is that you are using 1.4. The link I sent you helps you set it up very nicely, the only thing is it makes reference to the beta and all you do is replace that with your version.

I’m glad you are getting it going and I really wish I could be of more help.

Yes yes I found it. All you have to do is [quote]chown asterisk:asterisk /dev/zap/pseudo[/quote]. The link helped a lot to! Thanks for all the help!

Hey fantanstic. While I was getting started had the luck of running into a couple of friends here that made things a lot easier. Sometimes when you are stuck and seems as there is no way out, it’s nice to get hope from someone. Like I said before, there is not much I can offer but I had to do a lot of searching and still save some of my notes.

Good for you and glad I was able to offer some help.

Actually some of your advise was great, even helped me out on some issues i was a little confused with, great too see the links as well, thanks for that :wink:

Rudolf, champ i don’t suppose you can modify your thread title and change it too [Resolved] Could you? i would have passed right be this thread as i usually scroll through pretty quick, however the ones that catch my eyes are the ones marked with [Resolved] it helps trust me :wink:



Sorry I was little late on this one TeleFone. I’m glad you benefit from it too. Thanks