<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;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EstiloDeEmail20
        {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'>Se for o que eu entendi ai esta:<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 lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>CREATE TABLE sip_conf (<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>id serial NOT NULL,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>name character
varying(80) DEFAULT '' NOT NULL,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>accountcode character
varying(20),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>amaflags character
varying(7),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>callgroup character
varying(10),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>callerid character
varying(80),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>canreinvite character
varying(3) DEFAULT 'yes',<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>context character
varying(80),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>defaultip character
varying(15),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>dtmfmode character
varying(7),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>fromuser character
varying(80),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>fromdomain character
varying(80),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>host character
varying(31) DEFAULT '' NOT NULL,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>insecure character
varying(4),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>"language"
character varying(2),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>mailbox character
varying(50),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>md5secret character
varying(80),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>nat character varying(5)
DEFAULT 'no' NOT NULL,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>permit character
varying(95),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>deny character
varying(95),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>mask character varying(95),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>pickupgroup character
varying(10),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>port character varying(5)
DEFAULT '' NOT NULL,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>qualify character
varying(3),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>restrictcid character
varying(1),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>rtptimeout character
varying(3),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>rtpholdtimeout character
varying(3),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>secret character
varying(80),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>"type"
character varying DEFAULT 'friend' NOT NULL,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>username character
varying(80) DEFAULT '' NOT NULL,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>disallow character
varying(100) DEFAULT 'all',<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>allow character
varying(100) DEFAULT 'g729;ilbc;gsm;ulaw;alaw',<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>musiconhold character
varying(100),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>regseconds bigint DEFAULT
0::bigint NOT NULL,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>ipaddr character
varying(15) DEFAULT '' NOT NULL,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>regexten character
varying(80) DEFAULT '' NOT NULL,<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'>cancallforward character varying(3)
DEFAULT 'yes'<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>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Uso o EMS p criar as tabelas..(crtl+c,
ctrl+v)...<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 18:07<br>
<b><span style='font-weight:bold'>Para:</span></b> <st1:PersonName w:st="on">asteriskbrasil@listas.asteriskbrasil.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Assunto:</span></b> Re: [AsteriskBrasil] RES:
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 style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Mas acho que o erro esta
em como componho a tabela. Voce poderia me informar os campos necessarios?
Valeu<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>2006/8/30, Hugo <<a
href="mailto:hugotodalista@gmail.com">hugotodalista@gmail.com </a>>:</span></font></span><o:p></o:p></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Junior, esqci de colocar, mas adaptei sima tabbela para Postgres
(somado com os campos de algumas entradas do sip.conf). A tabela é criada com
sucesso.<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Em 30/08/06, <b><span style='font-weight:bold'>j u n i
o u</span></b> <<a href="mailto:junior@dssnet.com.br" target="_blank">junior@dssnet.com.br</a>>
escreveu:</span></font></span><o:p></o:p></p>
<div><span id="q_10d614f566f772d0_1">
<div>
<div>
<p><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...!!!!?</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> </span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> </span></font><o:p></o:p></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>
</span></font></div>
<p><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'> <a
href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-bounces@listas.asteriskbrasil.org</a>
[mailto:<a href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org"
target="_blank">asteriskbrasil-bounces@listas.asteriskbrasil.org</a>] <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>
</div>
<div>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p>
<p><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"
target="_blank">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>
</div>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'></span><br>
_______________________________________________<br>
LIsta de discussões AsteriskBrasil.org<br>
<a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org" target="_blank">AsteriskBrasil@listas.asteriskbrasil.org
</a><br>
<a href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil"
target="_blank">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a>
<br>
<br>
_______________________________________________<br>
Acesse o wiki AsteriskBrasil.org:<br>
<a href="http://www.asteriskbrasil.org" target="_blank">http://www.asteriskbrasil.org
</a><o:p></o:p></span></font></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>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>