<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5346.5" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>My problem was that i didnt load pbx_config so i
guess it wasnt parsing the extensions.conf. Now i can get it to work if i
put..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[sortcalls]</FONT></DIV>
<DIV><FONT face=Arial size=2>switch => Realtime/@</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>but does not seam like a true solution, having to
create a context in teh extensions.conf for every context i want to put in mysql
sucks. Is there a way to tell asterisk that all extensions/contexts are in
mysql?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Somthing like </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[global]</FONT></DIV>
<DIV><FONT face=Arial size=2>switch => Realtime/@</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>even though i tryed that and it didnt
work?</FONT></DIV>
<DIV><BR>-- <BR><BR>~Shaun</DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Sharon Lim" <<A
href="mailto:limleechin2005@gmail.com">limleechin2005@gmail.com</A>> wrote
in message <A
href="news:9bd3e43a0608090056o12f4548as6586ed566dd6c2e0@mail.gmail.com">news:9bd3e43a0608090056o12f4548as6586ed566dd6c2e0@mail.gmail.com</A>...</DIV>Sorry
if i am wrong. <BR><BR>Did you add something in extensions.conf to identify
your context ? Something like this <A
href="http://www.voip-info.org/wiki/view/Asterisk+RealTime+Extensions">http://www.voip-info.org/wiki/view/Asterisk+RealTime+Extensions
</A><BR><BR>BTW, how come your extensions got <snip>? I taught extension
is a number that you dial?<BR><BR>
<DIV><SPAN class=gmail_quote>On 8/9/06, <B class=gmail_sendername>Shaun</B>
<<A href="mailto:mailinglists@unix-scripts.com">
mailinglists@unix-scripts.com</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial size=2>IAX is being read from the flat config like it
normally is. I can verify this because asterisk registers with my
provider.</FONT></DIV>
<DIV><BR>-- <BR><BR>~Shaun</DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Sharon Lim" <<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:limleechin2005@gmail.com"
target=_blank>limleechin2005@gmail.com</A>> wrote in message <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="news:9bd3e43a0608090005q3de6c0f6wc9ffac04a504a2c6@mail.gmail.com"
target=_blank>news:9bd3e43a0608090005q3de6c0f6wc9ffac04a504a2c6@mail.gmail.com
</A>...</DIV></BLOCKQUOTE></DIV>
<DIV><SPAN class=e id=q_10cf1e2852aa85f3_1>If i am not mistaken, you need to
have another IAX user tables to store all the iax users. HEre is some
example <A onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.voip-info.org/wiki/view/Asterisk+RealTime+IAX"
target=_blank>http://www.voip-info.org/wiki/view/Asterisk+RealTime+IAX
</A><BR>good luck!<BR><BR>
<DIV><SPAN class=gmail_quote>On 8/9/06, <B class=gmail_sendername>Shaun</B>
<<A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:mailinglists@unix-scripts.com"
target=_blank>mailinglists@unix-scripts.com</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">I'm
attempting to setup asterisk running real-time with
mysql. Right now I<BR>can get asterisk to start and run but a
show dialplan shows basically<BR>nothing other than parking
extensions. I'm watching the full log also for <BR>debug
messages and I can see that asterisk is connecting to mysql with out
a<BR>issue but for some reason it does not seam to read the extensions
table.<BR>Below is a few of my configs..<BR><BR>#My slimmed down
modules.conf <BR>[root@localhost asterisk]# cat
/etc/asterisk/modules.conf<BR>[modules]<BR>autoload=no<BR>load =>
res_config_mysql.so<BR>load => res_crypto.so<BR>load =>
res_features.so<BR>load => chan_features.so<BR>load => chan_iax2.so
<BR>load => pbx_realtime.so<BR>load => app_realtime.so<BR><BR>#My
extconfig.conf<BR>[root@localhost asterisk]# cat
/etc/asterisk/extconfig.conf<BR>[settings]<BR>extensions =>
mysql,asterisk,extensions<BR><BR>#mysqldump of my asterisk database
<BR><BR>DROP TABLE IF EXISTS `extensions`;<BR>CREATE TABLE `extensions`
(<BR> `context` varchar(20) NOT NULL default
'default',<BR> `extension` varchar(20) NOT NULL default
'',<BR> `priority` int(2) NOT NULL default '1',
<BR> `application` varchar(20) NOT NULL default
'',<BR> `args` varchar(50) default NULL,<BR> `descr`
text,<BR> `flags` int(1) NOT NULL default
'0',<BR> PRIMARY
KEY (`context`,`extension`,`priority`)<BR>) ENGINE=MyISAM
DEFAULT CHARSET=latin1; <BR><BR>--<BR>-- Dumping data for table
`extensions`<BR>--<BR><BR>INSERT INTO `extensions`
VALUES<BR>('sortcalls','1949265<snip>',1,'Wait','10','Wait(10)',0)<BR>INSERT
INTO `extensions`
VALUES<BR>('sortcalls','_1949265<snip>',1,'Wait','10','Wait(10)',0);
<BR><BR><BR>My iax.conf is setup to forward calls to sortcalls context...
this is what i<BR>get when a call comes in..<BR>Aug 8 22:47:58
NOTICE[10074]: chan_iax2.c:7303 socket_read: Rejected<BR>connect attempt
from <A onclick="return top.js.OpenExtLink(window,event,this)"
href="http://64.61.93.87" target=_blank>64.61.93.87</A>, request
'1949265<snip>@sortcalls' does not<BR>exist<BR>Aug 8
22:47:58 NOTICE[10074]: chan_iax2.c:7303 socket_read: Rejected<BR>connect
attempt from <A onclick="return top.js.OpenExtLink(window,event,this)"
href="http://64.61.93.90" target=_blank>64.61.93.90</A>, request
'1949265<snip>@sortcalls' does not <BR>exist<BR><BR><BR><BR>Anybody
know whats going wrong
here?<BR><BR>--<BR><BR>~Shaun<BR><BR><BR><BR>_______________________________________________<BR>--Bandwidth
and Colocation provided by <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://Easynews.com" target=_blank>Easynews.com</A>
--<BR><BR>asterisk-users mailing list<BR>To UNSUBSCRIBE or update options
visit:<BR> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target=_blank>http://lists.digium.com/mailman/listinfo/asterisk-users
</A><BR></BLOCKQUOTE></DIV><BR></SPAN></DIV>
<DIV>
<P></P>
<HR>
</DIV>
<DIV><SPAN class=q>
<P></P>_______________________________________________<BR>--Bandwidth and
Colocation provided by <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://Easynews.com" target=_blank>Easynews.com</A>
--<BR><BR>asterisk-users mailing list<BR>To UNSUBSCRIBE or update options
visit:<BR> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target=_blank>http://lists.digium.com/mailman/listinfo/asterisk-users</A><BR></SPAN></DIV>
<DIV>
<P></P></DIV></DIV><BR>_______________________________________________<BR>--Bandwidth
and Colocation provided by <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://Easynews.com" target=_blank>Easynews.com</A> --
<BR><BR>asterisk-users mailing list<BR>To UNSUBSCRIBE or update options
visit:<BR> <A onclick="return top.js.OpenExtLink(window,event,this)"
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target=_blank>http://lists.digium.com/mailman/listinfo/asterisk-users</A><BR><BR><BR></BLOCKQUOTE></DIV><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>--Bandwidth and
Colocation provided by Easynews.com --<BR><BR>asterisk-users mailing
list<BR>To UNSUBSCRIBE or update options visit:<BR>
http://lists.digium.com/mailman/listinfo/asterisk-users<BR></BLOCKQUOTE></BODY></HTML>