As I see in your iax.conf, IAX Peer belogs to "special" context, which means 444 is allowed to make calls to extensions only on the same context (Extension 111), can you call extension 111 ?<div>may be the other extensions are in the " default context" and you can receive calls because extension 444 (dial IAX2/444) exists in that conext.</div>
<div><br></div><div>Try adding this in the [special] conext</div><div><br></div><div>;this will dial any 3 digit Extension to IAX</div><div>exten => _XXX,1,Dial(IAX2/${EXTEN})</div><div>exten => _XXX,n,hangup()</div>
<div><br></div><div>that may solve your problem<br><br><div class="gmail_quote">On Sat, Apr 23, 2011 at 3:38 AM, John Alexis <span dir="ltr"><<a href="mailto:kasterisk18@gmail.com">kasterisk18@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi, <br><br>Sorry to insist, but I still not have any solution. Does anybody have an idea ?<br>Thanks!<br><br><div class="gmail_quote">
2011/4/20 John Alexis <span dir="ltr"><<a href="mailto:kasterisk18@gmail.com" target="_blank">kasterisk18@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Hi, <br><br>I have a problem with IAX accounts...<br>I set up a few months ago an Asterisk server, with mysql support to load iax accounts. <br>
Settings seems fine because apparently the system works as expected. <br>Yesterday I tried to add another iax account in the iax.conf directly. And I have a problem with this new account (named 444).<br>
I can authenticate from 444 to the server, and I can receive calls from other softphones (which parameters are loaded from the mysql database iaxfriends).<br>BUT, i cannot call other softphones. I always got a message in the log saying "Everyone is busy/congested at this time (1:0/0/1)".<br>
So, i don't know where is the probleme : is it from iax accounts loaded from the database, or the new account 444 ???<br><br>Below are the conf files and verbose output.<br><br>Thank you very much for your help :)<br>
<br><br>---------<br>- iax.conf<br>---------<br><br>[general]<br>bindport=4569<br>delayreject=yes<br>language=fr<br>autokill = yes<br>calltokenoptional = <a href="http://0.0.0.0/0.0.0.0" target="_blank">0.0.0.0/0.0.0.0</a><br>
minregexpire = 60<br>
maxregexpire = 500<br>mohsuggest=default<br>careinvite=no<br>rtcachefriends=yes<br><br><br>[444]<br>type=friend<br>host=dynamic<br>context=special<br>secret=iop<br><br>---------<br>- extconfig.conf:<br>---------<br><br>[general]<br>
<br>[settings]<br>iaxusers => mysql,asterisk,iaxfriends<br>iaxpeers => mysql,asterisk,iaxfriends<br>voicemail => mysql,asterisk,voicemail<br><br><br>---------<br>- Mysqldump from iaxfriends<br>---------<br>INSERT INTO iaxfriends (name,type,phonenumber,username,mailbox,secret,dbsecret,context,regcontext,host,ipaddr,port,defaultip,sourceaddress,mask,regexten,regseconds,accountcode,mohinterpret,mohsuggest,inkeys,outkey,language,callerid,cid_number,sendani,fullname,trunk,auth,maxauthreq,requirecalltoken,encryption,transfer,jitterbuffer,forcejitterbuffer,disallow,allow,codecpriority,qualify,qualifysmoothing,qualifyfreqok,qualifyfreqnotok,timezone,adsi,amaflags,setvar) VALUES ('admin.my.domain','friend','100','admin@my.domain','123','','default','','dynamic','10.0.100.56','26564','','','','','0','','','','','','en','admin.my.domain','','','','','md5','','','','','','','all','gsm,ulaw,alaw','','','','','','','','','') ;<br>
INSERT INTO iaxfriends (name,type,phonenumber,username,mailbox,secret,dbsecret,context,regcontext,host,ipaddr,port,defaultip,sourceaddress,mask,regexten,regseconds,accountcode,mohinterpret,mohsuggest,inkeys,outkey,language,callerid,cid_number,sendani,fullname,trunk,auth,maxauthreq,requirecalltoken,encryption,transfer,jitterbuffer,forcejitterbuffer,disallow,allow,codecpriority,qualify,qualifysmoothing,qualifyfreqok,qualifyfreqnotok,timezone,adsi,amaflags,setvar) VALUES ('alice.my.domain','friend','111','admin@my.domain','','alice@my.domain','456','','default','','dynamic','10.0.100.221','42478','','','','','1303301760','','','','','','en','alice.my.domain','','','','','md5','','','','','','','all','gsm,ulaw,alaw','','','','','','','','','') ;<br>
<br><br>---------<br>- extensions.conf:<br>---------<br><br>[general]<br><br>[externe]<br>exten => 555,1,Dial(IAX2/111)<br>exten => 555,n,Hangup()<br><br><br>[special]<br>exten => 111,1,Dial(IAX2/111)<br>exten => 111,n,Hangup()<br>
<br>[default]<br><br>exten => 444,1,Dial(IAX2/444)<br>exten => 444,n,Hangup()<br><br><br><br><br>- Sip.conf (SIP server): <br><br>[general]<br>context=default<br>allowoverlap=no<br>udpbindaddr=0.0.0.0<br>tcpenable=no<br>
tcpbindaddr=0.0.0.0<br>srvlookup=yes<br><br><br>---------<br>- Logs server:<br>---------<br><br> -- Accepting AUTHENTICATED call from <a href="http://10.0.100.238" target="_blank">10.0.100.238</a>:<br> > requested format = gsm,<br>
> requested prefs = (),<br> > actual format = ulaw,<br> > host prefs = (),<br> > priority = mine<br> -- Executing [111@special:1] Dial("IAX2/444-436", "IAX2/111") in new stack<br>
== Everyone is busy/congested at this time (1:0/0/1)<br> -- Executing [111@special:2] Hangup("IAX2/444-436", "") in new stack<br> == Spawn extension (special, 111, 2) exited non-zero on 'IAX2/444-436'<br>
-- Hungup 'IAX2/444-436'<br> -- Accepting AUTHENTICATED call from <a href="http://10.0.100.50" target="_blank">10.0.100.50</a>:<br> > requested format = ulaw,<br> > requested prefs = (),<br>
> actual format = gsm,<br>
> host prefs = (gsm|ulaw|alaw),<br> > priority = mine<br> -- Executing [444@default:1] Dial("IAX2/alice.my.domain-8277", "IAX2/444") in new stack<br> -- Called 444<br> -- Call accepted by 10.0.100.238 (format gsm)<br>
-- Format for call is gsm<br> -- IAX2/444-4734 is ringing<br> -- IAX2/444-4734 answered IAX2/alice.my.domain-8277<br> -- Hungup 'IAX2/444-4734'<br> == Spawn extension (default, 444, 1) exited non-zero on 'IAX2/alice.my.domain-8277'<br>
-- Hungup 'IAX2/alice.my.domain-8277'<br><br>
</blockquote></div><br>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Camilo A. Echeverry J.<br>
301 7553789<br>---------------------------------<br>Y todo lo que hagáis, hacedlo de corazón, como para el Seńor y no para los hombres.<br><br>Colonences 3:23<br>
</div>