<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EstiloDeEmail17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=PT-BR link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Tá usando a sintaxe correta p/ postgre? Esse
type=MyISQM e para tabelas do MySQL...!!!!?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>De:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asteriskbrasil-bounces@listas.asteriskbrasil.org
[mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org] <st1:PersonName
ProductID="Em nome de Hugo" w:st="on"><b><span style='font-weight:bold'>Em nome
de </span></b>Hugo</st1:PersonName><br>
<b><span style='font-weight:bold'>Enviada em:</span></b> quarta-feira, 30 de
agosto de 2006 11:18<br>
<b><span style='font-weight:bold'>Para:</span></b> asteriskbrasil<br>
<b><span style='font-weight:bold'>Assunto:</span></b> [AsteriskBrasil] Static
Real Time (SIP.CONF)</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Consigo utilizar real RealTime com sucesso. Porem estou
precisando utilizar o Real Time Estatico (para SIP.CONF) e estou apanhando um
pouco. Alguem pode me dizer os campos necessarios em tabelas para carregar as
configuracoes do SIP.CONF no Postgres (Static Real time). <br>
No "<a href="http://voip-info.org/wiki/view/Asterisk+RealTime+Static">voip-info.org/wiki/view/Asterisk+RealTime+Static</a>"
achei a seguinte conf de BD:<br>
<br>
CREATE TABLE `ast_config` ( <br>
</span></font><font face="Courier New"><span style='font-family:"Courier New"'> `id` int(11) NOT NULL auto_increment,
</span></font><br>
<font face="Courier New"><span style='font-family:"Courier New"'> `cat_metric` int(11) NOT NULL default '0',
</span></font><br>
<font face="Courier New"><span style='font-family:"Courier New"'> `var_metric` int(11) NOT NULL default '0',
</span></font><br>
<font face="Courier New"><span style='font-family:"Courier New"'> `commented` int(11) NOT NULL default '0',
</span></font><br>
<font face="Courier New"><span style='font-family:"Courier New"'> `filename` varchar(128) NOT NULL default '',
</span></font><br>
<font face="Courier New"><span style='font-family:"Courier New"'> `category` varchar(128) NOT NULL default 'default',
</span></font><br>
<font face="Courier New"><span style='font-family:"Courier New"'> `var_name` varchar(128) NOT NULL default '',
</span></font><br>
<font face="Courier New"><span style='font-family:"Courier New"'> `var_val` varchar(128) NOT NULL default '',
</span></font><br>
<font face="Courier New"><span style='font-family:"Courier New"'> PRIMARY KEY (`id`),
</span></font><br>
<font face="Courier New"><span style='font-family:"Courier New"'> KEY `filename_comment` (`filename`,`commented`)
</span></font><br>
) TYPE=MyISAM;<br>
<br>
utilizei os campos acima em conjunto com campos que preciso no SIP.CONF. toda
vez que starto (ou recarrego) o Asterisk, tenho a mensagem:<br>
chan_sip.c:12780 reload_config: Section '' lacks type<br>
<br>
e, nada eh carregado <st1:PersonName ProductID="em peers do SIP." w:st="on">em
peers do SIP.<br>
</st1:PersonName><br>
OBS1) Com o SIP.CONF tudo eh normal.<br>
<br>
OBS2)Meu extconfig.conf:<br>
[settings]<br>
sip.conf => odbc,asterisk_dsn,tabelasip<br>
<br>
OBS3) Conexao com o BD(via unixodbc) OK<br>
VOIP*CLI> odbc show<br>
Name: asterisk_rt<br>
DSN: asterisk_dsn<br>
Connected: yes<br>
<br>
Qualquer ajuda ou comentario eh muito bem vindo<o:p></o:p></p>
</div>
</body>
</html>