<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="it">
	<id>https://www.raspibo.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Asterisk_configurazione</id>
	<title>Asterisk configurazione - Cronologia</title>
	<link rel="self" type="application/atom+xml" href="https://www.raspibo.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Asterisk_configurazione"/>
	<link rel="alternate" type="text/html" href="https://www.raspibo.org/wiki/index.php?title=Asterisk_configurazione&amp;action=history"/>
	<updated>2026-04-30T20:22:57Z</updated>
	<subtitle>Cronologia della pagina su questo sito</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://www.raspibo.org/wiki/index.php?title=Asterisk_configurazione&amp;diff=760&amp;oldid=prev</id>
		<title>Dancast78 il 20:31, 15 mag 2013</title>
		<link rel="alternate" type="text/html" href="https://www.raspibo.org/wiki/index.php?title=Asterisk_configurazione&amp;diff=760&amp;oldid=prev"/>
		<updated>2013-05-15T20:31:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;it&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versione delle 20:31, 15 mag 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l172&quot; &gt;Riga 172:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 172:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ricaricare la configurazione: si usano i comandi visti in [[Asterisk_installazione_base precedenza]]: sip reload, dialplan reload .&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ricaricare la configurazione: si usano i comandi visti in [[Asterisk_installazione_base precedenza]]: sip reload, dialplan reload .&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Attenzione, ci &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;potrabbero &lt;/del&gt;essere problemi di registrazione sul provider esterno, vedi [[Debug di Asterisk]].'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Attenzione, ci &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;potrebbero &lt;/ins&gt;essere problemi di registrazione sul provider esterno, vedi [[Debug di Asterisk]].'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dancast78</name></author>
	</entry>
	<entry>
		<id>https://www.raspibo.org/wiki/index.php?title=Asterisk_configurazione&amp;diff=759&amp;oldid=prev</id>
		<title>Dancast78 il 20:31, 15 mag 2013</title>
		<link rel="alternate" type="text/html" href="https://www.raspibo.org/wiki/index.php?title=Asterisk_configurazione&amp;diff=759&amp;oldid=prev"/>
		<updated>2013-05-15T20:31:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;it&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versione delle 20:31, 15 mag 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l169&quot; &gt;Riga 169:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 169:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  exten =&amp;gt; _0510NNNNNN,1,Dial(SIP/2001,30,tTr)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  exten =&amp;gt; _0510NNNNNN,1,Dial(SIP/2001,30,tTr)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Per ricaricare la configurazione: si usano i comandi visti in [[Asterisk_installazione_base precedenza]]: sip reload, dialplan reload .&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'''Attenzione, ci potrabbero essere problemi di registrazione sul provider esterno, vedi [[Debug di Asterisk]].'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dancast78</name></author>
	</entry>
	<entry>
		<id>https://www.raspibo.org/wiki/index.php?title=Asterisk_configurazione&amp;diff=746&amp;oldid=prev</id>
		<title>Dancast78 il 16:39, 7 mag 2013</title>
		<link rel="alternate" type="text/html" href="https://www.raspibo.org/wiki/index.php?title=Asterisk_configurazione&amp;diff=746&amp;oldid=prev"/>
		<updated>2013-05-07T16:39:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;it&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versione delle 16:39, 7 mag 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l153&quot; &gt;Riga 153:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 153:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  exten =&amp;gt; 1234,n(menu),BackGround(custom/menu001) ; Play a congratulatory message&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  exten =&amp;gt; 1234,n(menu),BackGround(custom/menu001) ; Play a congratulatory message&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;NB: i files audio devono rispettare il formato usato dal codec in uso per la comunicazione in questo caso wav a 8KHz, per convertire un file audio si può usare il comando sox con i seguenti parametri: &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; sox file_origine.wav -r 8k -c 1 -e wav menu001.wav&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;come in questo caso in cui la fonia viene riprodotta ciclicamente:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;come in questo caso in cui la fonia viene riprodotta ciclicamente:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dancast78</name></author>
	</entry>
	<entry>
		<id>https://www.raspibo.org/wiki/index.php?title=Asterisk_configurazione&amp;diff=738&amp;oldid=prev</id>
		<title>Dancast78: Creata pagina con 'Per ampliare le funzionalità di Asterisk è possibile aggiungere degli interni ed anche un numero voip per l'interfacciamento con la rete telefonica tradizionale (registrazio...'</title>
		<link rel="alternate" type="text/html" href="https://www.raspibo.org/wiki/index.php?title=Asterisk_configurazione&amp;diff=738&amp;oldid=prev"/>
		<updated>2013-05-05T17:17:25Z</updated>

		<summary type="html">&lt;p&gt;Creata pagina con &amp;#039;Per ampliare le funzionalità di Asterisk è possibile aggiungere degli interni ed anche un numero voip per l&amp;#039;interfacciamento con la rete telefonica tradizionale (registrazio...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nuova pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Per ampliare le funzionalità di Asterisk è possibile aggiungere degli interni ed anche un numero voip per l'interfacciamento con la rete telefonica tradizionale (registrazione gratuita ad esempio messagenet.it, viene assegnato un numero geografico è ed possibile da subito ricevere chiamate, va ricaricato un minimo di credito per effettuarle).&lt;br /&gt;
&lt;br /&gt;
I files di configurazione si trovano nella dir /etc/asterisk/&lt;br /&gt;
&lt;br /&gt;
Qui di seguito la configurazione del file sip.conf viene divisa a blocchi per maggiore dettaglio (le righe che seguono possono essere inserite in un file vuoto):&lt;br /&gt;
&lt;br /&gt;
Nella configurazione generale vanno inseriti i dati di rete compreso l'ip o il dominio del nostro modem più i dati di accesso per un provider voip&lt;br /&gt;
&lt;br /&gt;
 [general]&lt;br /&gt;
 context=default                 ; Default context for incoming calls&lt;br /&gt;
 allowoverlap=no                 ; Disable overlap dialing support. (Default is yes)&lt;br /&gt;
 udpbindaddr=0.0.0.0             ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)&lt;br /&gt;
 tcpenable=no                    ; Enable server for incoming TCP connections (default is no)&lt;br /&gt;
 tcpbindaddr=0.0.0.0             ; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces)&lt;br /&gt;
 transport=udp                   ; Set the default transports.  The order determines the primary default transport.&lt;br /&gt;
 srvlookup=yes                   ; Enable DNS SRV lookups on outbound calls&lt;br /&gt;
 register =&amp;gt; 5xxxxxx:********@sip.messagenet.it:5061/0510NNNNNN	;MESSAGENET vedi sotto per i parametri&lt;br /&gt;
 ;5xxxxxx=URI (identificativo client SIP): vedi mail con oggetto Messagenet - attivazione FreeNumber (Servizio VoIP)&lt;br /&gt;
 ;********=Password: 8CA9QQBd vedi mail con oggetto Messagenet - attivazione FreeNumber (Servizio VoIP)&lt;br /&gt;
 ;0510NNNNNN=numero telefonico vedi mail con oggetto Messagenet - attivazione FreeNumber (Servizio VoIP)&lt;br /&gt;
 nat=yes&lt;br /&gt;
 externip=asterisk.raspibo.org	;nome dominio oppure ip pubblico &lt;br /&gt;
 externrefresh=120		;tempo di aggiornamento del dominio sul provider&lt;br /&gt;
 localnet=192.168.1.0/255.255.255.0	;configurazione della sottorete&lt;br /&gt;
&lt;br /&gt;
Questa parte non è stata modificata rispetto alla configurazione di default&lt;br /&gt;
&lt;br /&gt;
 [authentication]&lt;br /&gt;
 [basic-options](!)                ; a template&lt;br /&gt;
        dtmfmode=rfc2833&lt;br /&gt;
        context=from-office&lt;br /&gt;
        type=friend&lt;br /&gt;
 [natted-phone](!,basic-options)   ; another template inheriting basic-options&lt;br /&gt;
        directmedia=no&lt;br /&gt;
        host=dynamic&lt;br /&gt;
 [public-phone](!,basic-options)   ; another template inheriting basic-options&lt;br /&gt;
        directmedia=yes&lt;br /&gt;
 [my-codecs](!)                    ; a template for my preferred codecs&lt;br /&gt;
        disallow=all&lt;br /&gt;
        allow=ilbc&lt;br /&gt;
        allow=g729&lt;br /&gt;
        allow=gsm&lt;br /&gt;
        allow=g723&lt;br /&gt;
        allow=ulaw&lt;br /&gt;
 [ulaw-phone](!)                   ; and another one for ulaw-only&lt;br /&gt;
        disallow=all&lt;br /&gt;
        allow=ulaw&lt;br /&gt;
&lt;br /&gt;
In questa sezione vengono configurati i numeri di telefono:&lt;br /&gt;
&lt;br /&gt;
 [2000]&lt;br /&gt;
 type=friend&lt;br /&gt;
 secret=noncorso                 ; Password &lt;br /&gt;
 host=dynamic&lt;br /&gt;
 insecure=port                   ; Allow matching of peer by IP address without&lt;br /&gt;
 context=noncorso                                 ; matching port number&lt;br /&gt;
 insecure=invite                 ; Do not require authentication of incoming INVITEs&lt;br /&gt;
 insecure=port,invite            ; (both)&lt;br /&gt;
 qualify=1000                    ; Consider it down if it's 1 second to reply&lt;br /&gt;
 qualifyfreq=60                  ; Qualification: How often to check for the&lt;br /&gt;
 [2001]&lt;br /&gt;
 type=friend&lt;br /&gt;
 secret=noncorso&lt;br /&gt;
 host=dynamic&lt;br /&gt;
 insecure=port                   ; Allow matching of peer by IP address without&lt;br /&gt;
 context=noncorso                                 ; matching port number&lt;br /&gt;
 insecure=invite                 ; Do not require authentication of incoming INVITEs&lt;br /&gt;
 insecure=port,invite            ; (both)&lt;br /&gt;
 qualify=1000                    ; Consider it down if it's 1 second to reply&lt;br /&gt;
 qualifyfreq=60                  ; Qualification: How often to check for the&lt;br /&gt;
 [2002]&lt;br /&gt;
 type=friend&lt;br /&gt;
 secret=noncorso&lt;br /&gt;
 host=dynamic&lt;br /&gt;
 insecure=port                   ; Allow matching of peer by IP address without&lt;br /&gt;
 context=noncorso                                 ; matching port number&lt;br /&gt;
 insecure=invite                 ; Do not require authentication of incoming INVITEs&lt;br /&gt;
 insecure=port,invite            ; (both)&lt;br /&gt;
 qualify=1000                    ; Consider it down if it's 1 second to reply&lt;br /&gt;
 qualifyfreq=60                  ; Qualification: How often to check for the&lt;br /&gt;
 [2003]&lt;br /&gt;
 type=friend&lt;br /&gt;
 secret=noncorso&lt;br /&gt;
 host=dynamic&lt;br /&gt;
 insecure=port                   ; Allow matching of peer by IP address without&lt;br /&gt;
 context=noncorso                                 ; matching port number&lt;br /&gt;
 insecure=invite                 ; Do not require authentication of incoming INVITEs&lt;br /&gt;
 insecure=port,invite            ; (both)&lt;br /&gt;
 qualify=1000                    ; Consider it down if it's 1 second to reply&lt;br /&gt;
 qualifyfreq=60                  ; Qualification: How often to check for the&lt;br /&gt;
 [sip.messagenet.it] &lt;br /&gt;
 type=friend &lt;br /&gt;
 auth=md5&lt;br /&gt;
 username=5xxxxxx 		;Vedi nota sopra&lt;br /&gt;
 fromuser=5xxxxxx		;Vedi nota sopra&lt;br /&gt;
 secret=********		        ;Vedi nota sopra&lt;br /&gt;
 host=sip.messagenet.it&lt;br /&gt;
 port=5061&lt;br /&gt;
 qualify=yes&lt;br /&gt;
 insecure=invite&lt;br /&gt;
 context=da_messagenet&lt;br /&gt;
 nat=yes&lt;br /&gt;
 canreinvite=no&lt;br /&gt;
&lt;br /&gt;
Proseguiamo con la configurazione del file extensions.conf (le righe che seguono vanno aggiunte al file esistente che è molto lungo e non viene riportato integralmente):&lt;br /&gt;
&lt;br /&gt;
 [noncorso]&lt;br /&gt;
 ;Risponditore automatico sull'interno 1234 che recita una fonia e attende una post selezione per eseguire uno script bash&lt;br /&gt;
 exten =&amp;gt; 1234,1,Wait(1)                   	  ; Wait a second, just for fun&lt;br /&gt;
 exten =&amp;gt; 1234,n,Answer                    	  ; Answer the line&lt;br /&gt;
 exten =&amp;gt; 1234,n(menu),BackGround(custom/menu001) ; Play a congratulatory message&lt;br /&gt;
 exten =&amp;gt; 1234,n,WaitExten(5)&lt;br /&gt;
 exten =&amp;gt; 1234,n,Goto(1234,menu)&lt;br /&gt;
 ;digitando 51 sulla tastiera viene eseguito uno script che accende un rele&lt;br /&gt;
 exten =&amp;gt; 51,1,Noop(accendo)&lt;br /&gt;
 exten =&amp;gt; 51,n,System(/var/sys/Scripts/astrasp.sh 1)&lt;br /&gt;
 exten =&amp;gt; 51,n,Goto(1234,menu)&lt;br /&gt;
 ;digitando 52 sulla tastiera viene eseguito uno script che spegne un rele&lt;br /&gt;
 exten =&amp;gt; 52,1,NoOp(spengo)&lt;br /&gt;
 exten =&amp;gt; 52,n,System(/var/sys/Scripts/astrasp.sh 0)&lt;br /&gt;
 exten =&amp;gt; 52,n,Goto(1234,menu)&lt;br /&gt;
 ;gestione delle chiamate fra interni&lt;br /&gt;
 exten =&amp;gt; 2000,1,Dial(SIP/2000)&lt;br /&gt;
 exten =&amp;gt; 2000,n,Hangup&lt;br /&gt;
 exten =&amp;gt; 2002,1,Dial(SIP/2002)&lt;br /&gt;
 exten =&amp;gt; 2003,n,Hangup&lt;br /&gt;
 exten =&amp;gt; 2003,1,Dial(SIP/2003)&lt;br /&gt;
 exten =&amp;gt; 2003,n,Hangup&lt;br /&gt;
 exten =&amp;gt; _9.,1,Dial(SIP/${EXTEN:1}@sip.messagenet.it) ;Per chiamare l'esteno si antepone 9 davanti al numero _ indica una espressione regolare(tutto quello che inizia con 9&lt;br /&gt;
 [da_messagenet]&lt;br /&gt;
 exten =&amp;gt; _0510NNNNNN,1,Dial(SIP/2001,30,tTr)            ;Vedi nota su sip.conf&lt;br /&gt;
 exten =&amp;gt; _0510NNNNNN,n,Hangup				 ;Vedi nota su sip.conf&lt;br /&gt;
&lt;br /&gt;
Per completezza un dettaglio sulla configurazione:&lt;br /&gt;
&lt;br /&gt;
 [noncorso] indica il contesto&lt;br /&gt;
&lt;br /&gt;
le righe che iniziano con exten indicano le esetensioni cioè regole legate ad ogni linea con il seguente formato:&lt;br /&gt;
&lt;br /&gt;
 exten =&amp;gt; destinazione,priorità,applicazione(argomenti) &lt;br /&gt;
&lt;br /&gt;
quindi la riga: &lt;br /&gt;
&lt;br /&gt;
 exten =&amp;gt; 2000,1,Dial(SIP/2000)&lt;br /&gt;
&lt;br /&gt;
indica che quando viene chiamato l'interno 2000 per prima cosa (1) deve essere girata la chiamata verso l'interno 2000&lt;br /&gt;
&lt;br /&gt;
 exten =&amp;gt; 2000,n,Hangup&lt;br /&gt;
&lt;br /&gt;
all'istruzione successiva (n, etichetta, potrebbe essere indicata come 2, ma richiederebbe che eventuali modifiche tengano conto della sequenzialità delle istruzioni) quando la chiamata termina viene fatto un riaggancio della linea&lt;br /&gt;
&lt;br /&gt;
E' possibile anche creare delle etichette a cui fare goto ad esempio quando viene riprodotta una fonia:&lt;br /&gt;
&lt;br /&gt;
 exten =&amp;gt; 1234,n(menu),BackGround(custom/menu001) ; Play a congratulatory message&lt;br /&gt;
&lt;br /&gt;
come in questo caso in cui la fonia viene riprodotta ciclicamente:&lt;br /&gt;
&lt;br /&gt;
 exten =&amp;gt; 1234,n,Goto(1234,menu)&lt;br /&gt;
&lt;br /&gt;
E' anche possibile lanciare script di shell&lt;br /&gt;
&lt;br /&gt;
 exten =&amp;gt; 51,n,System(/var/sys/Scripts/astrasp.sh 1)&lt;br /&gt;
&lt;br /&gt;
In questo caso una chiamata in arrivo dall'esterno viene girata verso il numero 2001:&lt;br /&gt;
&lt;br /&gt;
 exten =&amp;gt; _0510NNNNNN,1,Dial(SIP/2001,30,tTr)&lt;/div&gt;</summary>
		<author><name>Dancast78</name></author>
	</entry>
</feed>