Hi all, I'm a newbie and I have a configuration problem with Asterisk. Seems that I'm not able to call an outbound number. I'm quite sure that it is a configuration problem, but I'm not able to find out where is the mistake, even reading several docs to www.voip-info.org. I do not have a good knowledge of Asterisk, I'm not very familiar with its configuration and I've a big confusion about it. Any help will be appreciated. When I try to call outside I got the following message: *CLI> -- Accepting AUTHENTICATED call from 192.168.0.55: > requested format = ilbc, > requested prefs = (), > actual format = gsm, > host prefs = (gsm|ilbc|speex), > priority = mine -- Executing Dial("IAX2/emi@emi/2", "IAX2/3479450772") in new stack Mar 12 16:15:36 WARNING[3149]: chan_iax2.c:2341 create_addr: No such host: 3479450800 Mar 12 16:15:36 NOTICE[3149]: app_dial.c:911 dial_exec_full: Unable to create channel of type 'IAX2' (cause 3) == Everyone is busy/congested at this time (1:0/1/0) Mar 12 16:15:47 WARNING[3149]: pbx.c:2028 ast_pbx_run: Timeout, but no rule 't' in context 'fullaccess' -- Hungup 'IAX2/emi@emi/2' My zapata.conf is: [channels] language=it context=fullaccess signalling=fxs_ks usecallerid=yes hidecallerid=no callwaiting=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=yes rxgain=0.0 txgain=0.0 group=1 pickupgroup=1 immediate=yes musiconhold=default channel => 1 channel=1 My iax.conf is: [general] bindaddr=0.0.0.0 context=noaccess group=1 callgroup=1 pickupgroup=1 amaflags=default bandwidth=low disallow=all ; same as bandwidth=high disallow=ulaw disallow=alaw allow=gsm allow=iLBC allow=Speex jitterbuffer=yes dropcount=2 maxjitterbuffer=500 maxexccessbuffer=400 tos=throughput [guest] type=user context=iaxguest callerid="Guest IAX User" [emi] type=friend username=emi secret=none auth=md5 host=dynamic context=fullaccess mailbox=101 callerid="Emi"<102> "iax.conf" 44L, 621C and my extension.conf is: [general] static=yes writeprotect=yes [fullaccess] include => parkedcalls include => local [local] exten => _XXXXXXXXXX,1,Dial(IAX2/${EXTEN}) Where is the mistake? Regards,
Martijn van Oosterhout
2005-Mar-12 09:35 UTC
[Asterisk-Users] Unable to create channel of type 'IAX2'
On Sat, Mar 12, 2005 at 04:04:29PM +0100, Androtech wrote:> Hi all, > I'm a newbie and I have a configuration problem with Asterisk. > Seems that I'm not able to call an outbound number. I'm quite sure that it > is a configuration problem, but I'm not able to find out where is the > mistake, even reading several docs to www.voip-info.org.You didn't read all the messages, see:> -- Executing Dial("IAX2/emi@emi/2", "IAX2/3479450772") in new stack > Mar 12 16:15:36 WARNING[3149]: chan_iax2.c:2341 create_addr: No such host: > 3479450800 > Mar 12 16:15:36 NOTICE[3149]: app_dial.c:911 dial_exec_full: Unable to > create channel of type 'IAX2' (cause 3)chan_iax2 says you have no section in your iax.conf telling it what 3479450772 is, *therefore* it couldn't create the channel. Always read *all* the messages, especially the first few since they may indicate something that may cause a failure later. FWIW, you probably wanted IAX2/target/3479450772. Hope this helps, -- Martijn van Oosterhout Ecomtel Pty Ltd
Wilson Pickett
2005-Mar-13 03:11 UTC
[Asterisk-Users] Unable to create channel of type 'IAX2'
> Where is the mistake?Right here> [local] > exten => _XXXXXXXXXX,1,Dial(IAX2/${EXTEN})You are telling it to dial ALL 10 digit numbers using IAX. What you need to do is have an extension that determines if a call is meany for the X100P and if so the dial would be> exten => _XXXXXXXXXX,1,Dial(ZAP/1/${EXTEN})ZAP/1 is your X100p FXO. Take a good look at http://www.asteriskdocs.org which was entirely written to help you understand channels, extensions and dialplans. These are the essential building blocks to get you going. You will need further knowledge to separate internal extensions from external phone numbers. Often internal extensions are numbered like 2000,2001,2002... example> exten => _2XXX,1,Dial(IAX2/${EXTEN}) ; hand all 4 digit numbers that begin with 2