[Asterisk-Users] IAXphone -> ip address -> extension number.
Carlos Alperin
calperin at senecacom.net
Fri Jul 8 08:56:10 MST 2005
Put the IP addresses of each phone on the IAX.conf section.
Then we can check the rest.
Carlos
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Zoltan Szecsei
Sent: Friday, July 08, 2005 10:01 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] IAXphone -> ip address -> extension number.
Hi,
Sorry - just got back.
Here is what you wanted, but I am also concerned about the "unable to
open iax timing interface" - scan this email for "timing" to pick it up
below. Note the lsmod at the very end of this email, showing that
ztdummy is loaded.
I tried compiling and loading zaprtc after I sent the previous email,
but I could not successfully "make load" it.
Thanks for helping,
Zoltan.
+++++++++++++++++++++++++++++
== RTP Allocating from port range 10000 -> 20000
Asterisk Ready.
*CLI>
*CLI> iax2 show peers
Name/Username Host Mask Port Status
z2 (Unspecified) (D) 255.255.255.255 0 Unmonitored
z1 (Unspecified) (D) 255.255.255.255 0 Unmonitored
*CLI>
*CLI>
*CLI> stop now
Beginning asterisk shutdown....
Executing last minute cleanups
== Destroying any remaining musiconhold processes
Asterisk cleanly ending (0).
gl0:/home/zls #
+++++++++++++++++++++++++++++++++++++++++++++++
Carlos Alperin wrote:
>Zoltan,
>
>Ok. I believe that I know what is going on:
>
>Just for confirm can you go inside the system : run asterisk -r
>
>Then run IAX2 SHOW PEERS and tell me what you get?
>
>When you finish you can exit with quit.
>
>I think that the system doesn't know where are the phones located.
>
>Thanks,
>
>Carlos
>
>-----Original Message-----
>From: asterisk-users-bounces at lists.digium.com
>[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Zoltan
Szecsei
>Sent: Friday, July 08, 2005 6:17 AM
>To: Asterisk Users Mailing List - Non-Commercial Discussion
>Subject: Re: [Asterisk-Users] IAXphone -> ip address -> extension number.
>
>Carlos Alperin wrote:
>
>
>
>>The only reason for try SIP, is to find where the problem is.
>>
>>You can use what you prefer, if you can made it works.
>>
>>Any chance to see both SIP & IAX.conf?
>>
>>Thanks,
>>
>>Carlos
>>
>>
>>
>>
>>
>Hi Carlos,
>Thanks for you help thusfar.
>I have provided:
>
>iax.conf
>extensions.conf
>bits of log from asterisk -vvvvvvvvvvgc
>last bits from making zaptel
>modprobe/lsmod ztdummy.
>
>Note that I have renamed zaptel.conf and sip.conf because I am under the
>impression I do not need them. I dont want to add SIP until IAX works,
>and I have no special HW, so dont need zaptel.conf.
>
>Note also at this stage extensions.conf has only what I hope it needs to
>just make the other phone ring.
>
>The SuSE 9.3 box running asterisk 1.0.9 has IP 192.168.0.100 and phones
>z1 and z2 have 192.168.0.201 and 202 respectively.
>
>++++++++++++++++++++++++++++++++++
>gl0:/etc/asterisk # cat iax.conf
>[general]
>port=4569
>bindaddr=0.0.0.0
>bandwidth=medium
>disallow=LPC10
>;deny=all
>;all0w=ulaw
>;all0w=alaw
>;all0w=gsm
>jitterbuffer=yes
>
>; register => zoltan:geograph at iaxtel.com
>
>
>[z1]
>type=friend
>host=dynamic
>mailbox=1201
>context=geograph
>callerid="Zoltan1" <201>
>
>[z2]
>type=friend
>host=dynamic
>mailbox=1202
>context=geograph
>callerid="Zoltan2" <202>
>gl0:/etc/asterisk #
>
>++++++++++++++++++++++++++++++++++
>gl0:/etc/asterisk # cat extensions.conf
>[general]
>static=yes
>writeprotect=no
>
>[globals]
>CONSOLE=Console/dsp ; Console interface for
demo
>;CONSOLE=Zap/1
>;CONSOLE=Phone/phone0
>IAXINFO=guest ; IAXtel username/password
>;IAXINFO=myuser:mypass
>TRUNK=Zap/g2 ; Trunk interface
>TRUNKMSD=1 ; MSD digits to strip
>(usually 1 or 0)
>;TRUNK=IAX2/user:pass at provider
>
>[geograph]
>exten=> 201,1,Dial(IAX/z1,20,tr)
>exten=> 202,1,Dial(IAX/z2,20,tr)
>exten=> 1201,1,Dial(IAX/z1,20,tr) ; not relevant yet
>exten=> 1202,1,Dial(IAX/z2,20,tr) ; not relevant yet
>
>++++++++++++++++++++++++++++++++++
> From asterisk -vvvvvvvvvvvvvvvgc
>
>
>snip===8<===snip===8<===snip===8<===snip===
>
> [res_musiconhold.so] => (Music On Hold Resource)
> == Parsing '/etc/asterisk/musiconhold.conf': Found
>Jul 8 11:58:13 WARNING[32206]: res_musiconhold.c:565 moh_register:
>Unable to open pseudo channel for timing... Sound may be choppy.
> == Registered application 'MusicOnHold'
> == Registered application 'WaitMusicOnHold'
> == Registered application 'SetMusicOnHold'
> [pbx_config.so] => (Text Extension Configuration)
> == Parsing '/etc/asterisk/extensions.conf': Found
> -- Setting global variable 'CONSOLE' to 'Console/dsp'
> -- Setting global variable 'IAXINFO' to 'guest'
> -- Setting global variable 'TRUNK' to 'Zap/g2'
> -- Setting global variable 'TRUNKMSD' to '1'
> -- Registered extension context 'geograph'
> -- Added extension '201' priority 1 to geograph
> -- Added extension '202' priority 1 to geograph
> -- Added extension '1201' priority 1 to geograph
> -- Added extension '1202' priority 1 to geograph
> [pbx_spool.so] => (Outgoing Spool Support)
> [cdr_csv.so] => (Comma Separated Values CDR Backend)
> [cdr_manager.so] => (Asterisk Call Manager CDR Backend)
> == Parsing '/etc/asterisk/cdr_manager.conf': Found
> [chan_agent.so] => (Agent Proxy Channel)
> == Registered channel type 'Agent' (Call Agent Proxy Channel)
> == Registered application 'AgentLogin'
> == Registered application 'AgentCallbackLogin'
> == Registered application 'AgentMonitorOutgoing'
> == Parsing '/etc/asterisk/agents.conf': Found
> [chan_iax2.so] => (Inter Asterisk eXchange (Ver 2))
>Jul 8 11:58:13 WARNING[32206]: chan_iax2.c:7477 load_module: Unable to
>open IAX timing interface: No such file or directory
> == Manager registered action IAXpeers
> == Parsing '/etc/asterisk/iax.conf': Found
> == Registered channel type 'IAX2' (Inter Asterisk eXchange Driver (Ver
2))
> == Using TOS bits 0
> == IAX Ready and Listening on 0.0.0.0 port 4569
> == Loaded firmware 'iaxy.bin'
> == Parsing '/etc/asterisk/iaxprov.conf': Found
> -- Loaded provisioning template 'default'
> [chan_local.so] => (Local Proxy Channel)
> == Registered channel type 'Local' (Local Proxy Channel Driver)
>
>
>snip===8<===snip===8<===snip===8<===snip===
>
>
>[chan_sip.so] => (Session Initiation Protocol (SIP))
> == Parsing '/etc/asterisk/sip.conf': Not found (No such file or
directory)
>Jul 8 11:58:13 NOTICE[32206]: chan_sip.c:8679 reload_config: Unable to
>load config sip.conf, SIP disabled
> == Registered channel type 'SIP' (Session Initiation Protocol (SIP))
> == Registered application 'SIPDtmfMode'
> [chan_skinny.so]Jul 8 11:58:13 WARNING[32206]: chan_oss.c:257
>sound_thread: Read error on sound device: Resource temporarily unavailable
> => (Skinny Client Control Protocol (Skinny))
> == Parsing '/etc/asterisk/skinny.conf': Found
>Jul 8 11:58:13 WARNING[32206]: chan_skinny.c:2587 reload_config: Unable
>to get our IP address, Skinny disabled
> == Registered channel type 'Skinny' (Skinny Client Control Protocol
>(Skinny))
> [codec_a_mu.so] => (A-law and Mulaw direct Coder/Decoder)
> == Registered translator 'alawtoulaw' from format alaw to ulaw, cost 1
> == Registered translator 'ulawtoalaw' from format ulaw to alaw, cost 1
>
>
>snip===8<===snip===8<===snip===8<===snip===
>
> [app_zapateller.so] => (Block Telemarketers with Special Information Tone)
> == Registered application 'Zapateller'
> == Parsing '/etc/asterisk/enum.conf': Found
> == Parsing '/etc/asterisk/extconfig.conf': Found
> == Parsing '/etc/asterisk/logger.conf': Found
>Asterisk Event Logger restarted
> == Parsing '/etc/asterisk/manager.conf': Found
> == Parsing '/etc/asterisk/enum.conf': Found
> == Parsing '/etc/asterisk/rtp.conf': Found
> == RTP Allocating from port range 10000 -> 20000
>Asterisk Ready.
>*CLI> iax2 show users
>Username Secret Authen Def.Context
>A/C
>z2 -no secret- 000000000000003 geograph
>No
>z1 -no secret- 000000000000003 geograph
>No
>*CLI>
>*CLI>
>*CLI> iax2 show peers
>Name/Username Host Mask Port Status
>z2 (Unspecified) (D) 255.255.255.255 0
Unmonitored
>z1 (Unspecified) (D) 255.255.255.255 0
Unmonitored
>*CLI>
>*CLI>
>
>
>++++++++++++++++++++++++++++++++++
>
>/usr/src/zaptel-1.0.9 make clean ; make linux26 ; make install
>
>snip===8<===snip===8<===snip===8<===snip===
>
>install tor2 /sbin/modprobe --ignore-install tor2 && /sbin/ztcfg
>install torisa /sbin/modprobe --ignore-install torisa && /sbin/ztcfg
>install wcusb /sbin/modprobe --ignore-install wcusb && /sbin/ztcfg
>install wcfxo /sbin/modprobe --ignore-install wcfxo && /sbin/ztcfg
>install wcfxs /sbin/modprobe --ignore-install wcfxs && /sbin/ztcfg
>install ztdynamic /sbin/modprobe --ignore-install ztdynamic && /sbin/ztcfg
>install ztd-eth /sbin/modprobe --ignore-install ztd-eth && /sbin/ztcfg
>install wct1xxp /sbin/modprobe --ignore-install wct1xxp && /sbin/ztcfg
>install wct4xxp /sbin/modprobe --ignore-install wct4xxp && /sbin/ztcfg
>install wcte11xp /sbin/modprobe --ignore-install wcte11xp && /sbin/ztcfg
>install ztdummy /sbin/modprobe --ignore-install ztdummy && /sbin/ztcfg
>if ! grep "alias wctdm" /etc/modprobe.d/zaptel; then \
> echo "alias wctdm wcfxs" >> /etc/modprobe.d/zaptel; \
>fi \
>
>alias wctdm wcfxs
>if [ -d /etc/modutils ]; then \
> /sbin/update-modules ; \
>fi
>[ `id -u` = 0 ] && /sbin/depmod -a || :
>[ -f /etc/zaptel.conf ] || install -D -m 644 zaptel.conf.sample
>/etc/zaptel.conf
>gl0:/usr/src/zaptel-1.0.9 #
>
>
>++++++++++++++++++++++++++++++++++
>from modprobe ztdummy and lsmod | grep z
>
>gl0:/usr/src/zaptel-1.0.9 # modprobe ztdummy
>Notice: Configuration file is /etc/zaptel.conf
>line 142: Unable to open master device '/dev/zap/ctl'
>gl0:/usr/src/zaptel-1.0.9 # lsmod | grep z
>Module Size Used by
>ztdummy 7744 0
>zaptel 239620 1 ztdummy
>crc_ccitt 6144 1 zaptel
>gl0:/usr/src/zaptel-1.0.9 #
>
>++++++++++++++++++++++++++++++++++
>
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
>
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list