[Asterisk-Users] Query: IAXModem

sanchal.singh at alliance-infotech.com sanchal.singh at alliance-infotech.com
Tue Jun 6 00:57:19 MST 2006


Hi,

I am in a problem. Can anybody help me out.

	I am trying to establish connection using hyperterminal through IAXsoft
modem using asterisk PBX. I have done the following settings in the
configuraion files of asterisk.

1) iax.conf file:
	[iaxmodem]
		type=friend 
		;username=iaxmodem
		;secret=n19d19
		host=dynamic
		qualify=yes
		;trunk=yes
		;context=in-fax 
		disallow=all
		allow=ulaw
		allow=alaw
		allow=gsm

	[iaxmodem1]
		type=friend ;type=peer
		;username=iaxmodem
		;secret=n19d19
		host=dynamic
		qualify=yes
		;trunk=yes
		;context=in-fax ;not required
		allow=ulaw
		allow=alaw
		allow=gsm


2)extensions.conf file

	exten => 12,1,Dial(IAX2/iaxmodem1) 

	//for dialing to modem2 with extension number 12 through modem1 using
hyperterminal


3) created ttyIAX0 and ttyIAX1 file in path /etc/iaxmodem

	ttyIAX0 file:
		device /dev/ttyIAX0
		owner uucp:uucp
		mode 660
		port 4571
		refresh 100
		server 127.0.0.1
		peername iaxmodem
		secret password
		#Cidname John0
		#Cidnumber 8005551212
		codec slinear
	
	ttyIAX1 file:
		device /dev/ttyIAX1
		owner sanchal:uucp
		mode 660
		port 4572
		refresh 300
		server 127.0.0.1
		peername iaxmodem1
		#secret password
		cidname John2
		cidnumber 8005551231
		codec slinear


4)Now using hyper terminal send atdt12 from one side it sends ring to
other side . On replying ATA from other side, it sends connect but not
in accordance with class1 format.


	Client 			other end

	at+fclass=1 -->		 <-- at+fclass=1 

	OK <--			  --> OK 

         atdt12 --> 		     --> ring

	connect <--                      <-- ATA

	--> connect

	NOCARRIER <--		       -->ERROR 

	Can anybody give me the guidelines how to proceed further to transfer a
file after establishing a successful connection. 


Regards
sanchal





More information about the asterisk-users mailing list