<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://docs.yate.ro/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=Connecting_to_SAPO</id>
		<title>Connecting to SAPO - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=Connecting_to_SAPO"/>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Connecting_to_SAPO&amp;action=history"/>
		<updated>2026-05-18T15:33:00Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.1</generator>

	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Connecting_to_SAPO&amp;diff=7252&amp;oldid=prev</id>
		<title>Monica at 15:37, 31 October 2013</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Connecting_to_SAPO&amp;diff=7252&amp;oldid=prev"/>
				<updated>2013-10-31T15:37:08Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 15:37, 31 October 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 48:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 48:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Stopping and restarting Yate]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Stopping and restarting Yate]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Routing]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Routing]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; 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;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:SIP]] [[Category:Routing]] [[Category:Regexroute]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Monica</name></author>	</entry>

	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Connecting_to_SAPO&amp;diff=6974&amp;oldid=prev</id>
		<title>Monica at 14:12, 18 September 2013</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Connecting_to_SAPO&amp;diff=6974&amp;oldid=prev"/>
				<updated>2013-09-18T14:12:09Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 14:12, 18 September 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 44:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 44:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; Note: You can route more outgoing calls through SAPO by not restricting the pattern to &amp;quot;\+351.*&amp;quot;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; Note: You can route more outgoing calls through SAPO by not restricting the pattern to &amp;quot;\+351.*&amp;quot;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; 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;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;'''See also'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* [[Stopping and restarting Yate]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* [[Routing]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Monica</name></author>	</entry>

	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Connecting_to_SAPO&amp;diff=6971&amp;oldid=prev</id>
		<title>Monica: Created page with &quot;Go to [http://net.sapo.pt/extras/voip/ SAPO website] for more information about SAPO.   In this example:  *SAPO_number -the number that SAPO provides (9 digit, starts with a 3...&quot;</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Connecting_to_SAPO&amp;diff=6971&amp;oldid=prev"/>
				<updated>2013-09-18T14:09:56Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Go to [http://net.sapo.pt/extras/voip/ SAPO website] for more information about SAPO.   In this example:  *SAPO_number -the number that SAPO provides (9 digit, starts with a 3...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Go to [http://net.sapo.pt/extras/voip/ SAPO website] for more information about SAPO. &lt;br /&gt;
&lt;br /&gt;
In this example:&lt;br /&gt;
&lt;br /&gt;
*SAPO_number -the number that SAPO provides (9 digit, starts with a 3) &lt;br /&gt;
*SAPO_password - the password SAPO provides &lt;br /&gt;
&lt;br /&gt;
In your accfile.conf :&lt;br /&gt;
&lt;br /&gt;
 [sapo]&lt;br /&gt;
 enabled=yes&lt;br /&gt;
 protocol=sip&lt;br /&gt;
 username=+351SAPO_number&lt;br /&gt;
 description=SAPO SIP&lt;br /&gt;
 ;interval=600&lt;br /&gt;
 formats=ulaw&lt;br /&gt;
 authname=+351SAPO_number&lt;br /&gt;
 password=SAPO_password&lt;br /&gt;
 number=+351SAPO_number&lt;br /&gt;
 domain=voip.sapo.pt&lt;br /&gt;
 registrar=voip.sapo.pt:5070&lt;br /&gt;
 outbound=proxy.voip.sapo.pt&lt;br /&gt;
 localaddress=auto&lt;br /&gt;
&lt;br /&gt;
In your regexroute.conf :&lt;br /&gt;
 &lt;br /&gt;
 [default]&lt;br /&gt;
 ; Accept all incoming calls and route them to the general number&lt;br /&gt;
 ^\+351SAPO_number$=goto incoming&lt;br /&gt;
 &lt;br /&gt;
 ; Match +351 numbers&lt;br /&gt;
 ^\+351.*$=goto outgoing&lt;br /&gt;
 ; Match 9 digit numbers as if +351 prefixed&lt;br /&gt;
 ^[0-9]\{9\}$=goto outgoing;called=+351\0&lt;br /&gt;
 &lt;br /&gt;
 [outgoing]&lt;br /&gt;
 ;Send all outgoing calls through SAPO SIP&lt;br /&gt;
 ^.*$=sip/sip:\0;line=sapo;caller=+351SAPO_number;domain=voip.sapo.pt&lt;br /&gt;
 &lt;br /&gt;
 [incoming]&lt;br /&gt;
 ;Send all incoming calls to extension&lt;br /&gt;
 ^.*$=lateroute/myexten&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Note: You can route more outgoing calls through SAPO by not restricting the pattern to &amp;quot;\+351.*&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Monica</name></author>	</entry>

	</feed>