<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Authentication Gateways</title>
		<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways</link>
		<description>Posts in the discussion thread &quot;Authentication Gateways&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Mon, 06 Feb 2012 00:43:51 +0000</lastBuildDate>
		
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-510763</guid>
				<title>Re: Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-510763</link>
				<description></description>
				<pubDate>Tue, 16 Jun 2009 22:35:46 +0000</pubDate>
				<wikidot:authorName>visuallinux</wikidot:authorName>				<wikidot:authorUserId>329579</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello</p> <p>On FS_CLI i get the following:</p> <p><a href="http://pastebin.freeswitch.org/9402">http://pastebin.freeswitch.org/9402</a></p> <p>I am not sure but i think the problem began before i add a new web user as admin.</p> <p>My sofia status is the follows:</p> <p>freeswitch@internal&gt; sofia status<br /> Name Type Data State</p> <div class="content-separator" style="display: none:"></div> <p>admin profile sip:<span class="wiki-email">442.891.111.002|aifos_dom#442.891.111.002|aifos_dom</span>:5060 RUNNING (0)<br /> ubb gateway sip:<span class="wiki-email">53.1.861.291|sf#53.1.861.291|sf</span> NOREG<br /> portales gateway sip:<span class="wiki-email">521.71.802.091|pis#521.71.802.091|pis</span> NOREG</p> <div class="content-separator" style="display: none:"></div> <p>1 profile 0 aliases</p> <p>sofia status profile admin :</p> <p><a href="http://pastebin.freeswitch.org/9403">http://pastebin.freeswitch.org/9403</a></p> <p>Fernando</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-510748</guid>
				<title>Re: Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-510748</link>
				<description></description>
				<pubDate>Tue, 16 Jun 2009 22:19:20 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You don't have a problem with codecs - the log states that G.729 is selected. What was the debug output before call hangup - looks like you've removed some of it?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-510721</guid>
				<title>Re: Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-510721</link>
				<description></description>
				<pubDate>Tue, 16 Jun 2009 21:52:24 +0000</pubDate>
				<wikidot:authorName>visuallinux</wikidot:authorName>				<wikidot:authorUserId>329579</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello.</p> <p>I solved the IP based authentication on wikipbx like this:</p> <p>&lt;action application="set" data="proxy_media=true"/&gt;<br /> &lt;action application="check_acl" data="${network_addr} test2 normal_clearing"/&gt;<br /> &lt;action application="bridge" data="sofia/gateway/ubb/$1$2$3"/&gt;</p> <p>But now return the problem of codecs:</p> <p>2009-06-16&nbsp;17:39:01 [NOTICE] switch_channel.c:602 switch_channel_set_name() New Channel sofia/admin/<span class="wiki-email">521.71.802.091|51925424#521.71.802.091|51925424</span> [1b4f93c2-5abe-11de-acfb-fda0ec915974]<br /> 2009-06-16&nbsp;17:39:01 [DEBUG] sofia.c:3037 sofia_handle_sip_i_state() Channel sofia/admin/<span class="wiki-email">521.71.802.091|51925424#521.71.802.091|51925424</span> entering state [received][100]<br /> 2009-06-16&nbsp;17:39:01 [DEBUG] sofia.c:3044 sofia_handle_sip_i_state() Remote SDP:<br /> v=0<br /> o=root 25643&nbsp;25643 IN IP4&nbsp;190.208.17.125<br /> s=session<br /> c=IN IP4&nbsp;190.208.17.125<br /> t=0&nbsp;0<br /> m=audio 13936 RTP/AVP 18&nbsp;101<br /> a=rtpmap:18 G729/8000<br /> a=fmtp:18 annexb=no<br /> a=rtpmap:101 telephone-event/8000<br /> a=fmtp:101&nbsp;0-16<br /> a=silenceSupp:off - - - -</p> <p>2009-06-16&nbsp;17:39:01 [DEBUG] sofia_glue.c:2955 sofia_glue_negotiate_sdp() Audio Codec Compare [G729:18:8000:0]/[PCMU:0:8000:20]<br /> 2009-06-16&nbsp;17:39:01 [DEBUG] sofia_glue.c:2955 sofia_glue_negotiate_sdp() Audio Codec Compare [G729:18:8000:0]/[G729:18:8000:20]<br /> 2009-06-16&nbsp;17:39:01 [DEBUG] sofia_glue.c:1913 sofia_glue_tech_set_codec() Set Codec sofia/admin/<span class="wiki-email">521.71.802.091|51925424#521.71.802.091|51925424</span> G729/8000&nbsp;20&nbsp;ms 160 samples<br /> ……..<br /> 2009-06-16&nbsp;17:39:02 [NOTICE] sofia.c:3597 sofia_handle_sip_i_state() Hangup sofia/admin/56968482060 [CS_CONSUME_MEDIA] [CALL_REJECTED]</p> <p>The calls are declined in any codecs g711 or g729, it's before was worked very well but i do not what happen now.</p> <p>I do not sure if the problem is codecs or not?</p> <p>In /usr/src/wikipbx/freeswitchxml/sofia.conf.xml i have:</p> <p>&lt;param name='codec-prefs' value='PCMU@20i,G729'/&gt;</p> <p>Before i add the codec G729 and the problem was solved but now the calls are declined</p> <p>Any idea?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-509871</guid>
				<title>Re: Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-509871</link>
				<description></description>
				<pubDate>Tue, 16 Jun 2009 00:02:05 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The problem is that it is hard to get help on the freeswitch list when you are using wikipbx. Once they realize that you are using wikipbx, they will refer you here, since they don't want to get stuck debugging wikipbx related issues, or freeswitch issues caused by incorrect configuration generated by wikipbx. I think if wikipbx had a "static xml export", then people could more easily go to the freeswitch people for help with problems, because wikipbx would really be out of the picture aside from the fact that it generated the configuration..</p> <blockquote> <p>I can include acl.conf.xml in directory /usr/src/wikipbx/freeswitchxml/ for deny or allow IP's?</p> </blockquote> <p>No, it will be ignored .. only things wikipbx knows/cares about from freeswitchxml will be used. Currently acl.conf.xml is not one of those things.</p> <blockquote> <p>I was testing the follow example too; if i register the IP of my Wikipbx system in any external gateway and this external Gateway is not added as gateway in Wikipbx, these external Gateway anyway can send treffic to my Wikipbx and this accepts always. So how i can restrict access ?</p> </blockquote> <p>I think one way to accomplish this is to tell the profile to authenticate all calls by default, and I believe the parameter name is auth-calls. There is no support in the DB/GUI yet, so you will have to edit the profile template in /usr/src/wikipbx/freeswitchxml/.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-509813</guid>
				<title>Re: Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-509813</link>
				<description></description>
				<pubDate>Mon, 15 Jun 2009 22:12:00 +0000</pubDate>
				<wikidot:authorName>visuallinux</wikidot:authorName>				<wikidot:authorUserId>329579</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello All.</p> <p>Thanks and excuse for off topic, i am know how working both and understandig FS and Wikipbx.</p> <p>Thank you for your help.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-508386</guid>
				<title>Re: Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-508386</link>
				<description></description>
				<pubDate>Sun, 14 Jun 2009 07:25:46 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>This is not really something that belongs to wikipbx forum since ACL is just not supported so far. Freeswitch users mailing list is a better place for asking out configuration questions.</p> <p>Make sure you're understanding <a href="http://wiki.freeswitch.org/wiki/ACL">Freeswitch ACL docs</a>, you may need to add dialplan checks to make it work or you may be missing a user profile parameter that activates ACLs.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-508162</guid>
				<title>Re: Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-508162</link>
				<description></description>
				<pubDate>Sat, 13 Jun 2009 21:37:03 +0000</pubDate>
				<wikidot:authorName>visuallinux</wikidot:authorName>				<wikidot:authorUserId>329579</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello.</p> <p>When i allow or deny IP in acl.conf.xml the changes are not availables.</p> <p>For example i deny the follow IP in the acl.conf.xml like this:</p> <p>&lt;configuration name="acl.conf" description="Network Lists"&gt;<br /> &lt;network-lists&gt;</p> <p>&lt;list name="dl-candidates" default="allow"&gt;<br /> &lt;node type="deny" cidr="190.208.XX.XXX"/&gt;<br /> &lt;node type="deny" cidr="10.0.0.0/8"/&gt;<br /> &lt;node type="deny" cidr="172.16.0.0/12"/&gt;<br /> &lt;node type="deny" cidr="192.168.0.0/16"/&gt;<br /> &lt;/list&gt;</p> <p>and i reloadxml or restart freeswitch and wikipbx, anyway accepts calls from gateway 190.208.XX.XXX why?</p> <p>I can include acl.conf.xml in directory /usr/src/wikipbx/freeswitchxml/ for deny or allow IP's?</p> <p>I was testing the follow example too; if i register the IP of my Wikipbx system in any external gateway and this external Gateway is not added as gateway in Wikipbx, these external Gateway anyway can send treffic to my Wikipbx and this accepts always. So how i can restrict access ?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-507267</guid>
				<title>Re: Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-507267</link>
				<description></description>
				<pubDate>Fri, 12 Jun 2009 17:13:36 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yes, exactly. In this case I'm pretty sure the account lookup was based on SIP port.</p> <p>If the CDR XML has a sip port of 5060 for example, it will lookup the Account object in the database that has a sip port of 5060 and then use that Account ID for the record stored in wikipbxweb_completedcall.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-506997</guid>
				<title>Re: Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-506997</link>
				<description></description>
				<pubDate>Fri, 12 Jun 2009 11:15:08 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>The IP 190.208.XX.XXX is in acl.conf.xml and send traffic to my FS ( Wikipbx) but this IP is not registered as Gateway in Wikipbx. So why in record id 442 assume account_id = 1?</p> </blockquote> <p>In order to detect which account receives the call wikipbx checks:</p> <p>1. SIP port</p> <p>2. freeswitch channel name or profile name</p> <p>So, the call probably came to the port that account uses.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-506613</guid>
				<title>Re: Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-506613</link>
				<description></description>
				<pubDate>Thu, 11 Jun 2009 22:56:32 +0000</pubDate>
				<wikidot:authorName>visuallinux</wikidot:authorName>				<wikidot:authorUserId>329579</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello,</p> <p>So i think the best config is in Machine-1 with FS and Wikipbx and Machine-2 with Database.</p> <p>Thank you for your answer.</p> <p>Fernando.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-506610</guid>
				<title>Re: Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-506610</link>
				<description></description>
				<pubDate>Thu, 11 Jun 2009 22:54:08 +0000</pubDate>
				<wikidot:authorName>visuallinux</wikidot:authorName>				<wikidot:authorUserId>329579</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello,</p> <p>Excuse my delay in my test.</p> <p>Today i testing received traffic from a IP based authentication ( acl.conf.xml); and Wikipbx works very well.<br /> The calls was registered in table wikipbx_completecall succesfully.</p> <p>wikipbx=&gt; select id,account_id,uuid,caller_id_number,destination_number,chan_name,answered_time,hangup_time from wikipbxweb_completedcall where id=443;<br /> id | account_id | uuid | caller_id_number | destination_number | chan_name | answered_time | hangup_time<br /> <span style="text-decoration: line-through;">-</span>+<span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">+</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span>-+<span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-+</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-+</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span>-+<span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">—+</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span>—<br /> 443 | 1 | c6b5e0da-56d7-11de-9370-97b8447cd6fa | 105 | 56968482060 | 56968482060 | 2009-06-11&nbsp;18:33:02-04 | 2009-06-11&nbsp;18:33:12-04<br /> (1 fila)</p> <p>wikipbx=&gt; select id,account_id,uuid,caller_id_number,destination_number,chan_name,answered_time,hangup_time from wikipbxweb_completedcall where id=442;<br /> id | account_id | uuid | caller_id_number | destination_number | chan_name | answered_time | hangup_time<br /> <span style="text-decoration: line-through;">-</span>+<span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">+</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span>-+<span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-+</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-+</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-+</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">+</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span><span style="text-decoration: line-through;">-</span>—<br /> 442 | 1 | c69696da-56d7-11de-9370-97b8447cd6fa | 105 | 56968482060 | <span class="wiki-email">XXX.XX.802.091|501#XXX.XX.802.091|501</span> | 2009-06-11&nbsp;18:33:02-04 | 2009-06-11&nbsp;18:33:12-04<br /> (1 fila)</p> <p>The IP 190.208.XX.XXX is in acl.conf.xml and send traffic to my FS ( Wikipbx) but this IP is not registered as Gateway in Wikipbx. So why in record id 442 assume account_id = 1?</p> <p>Regards.</p> <p>Fernando</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-503805</guid>
				<title>Re: Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-503805</link>
				<description></description>
				<pubDate>Tue, 09 Jun 2009 04:27:26 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It's possible to setup wikipbx like you desire. You need all wikipbx code and its dependencies on machine 2. If you're using mod_python IVRs that come with wikipbx, you should copy the wikipbx/ivr directory to machine 1 where your python will be able to find it. Also, soundclips (e.g. voicemail recordings) are saved by freeswitch but they should be available to wikipbx users over web too, so you'll have to use some kind of file synchronization solution or network file system in order for this to work.</p> <p>I'm not sure if wikipbx has been extensively tested in such setup, though.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-503664</guid>
				<title>Re: Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-503664</link>
				<description></description>
				<pubDate>Mon, 08 Jun 2009 23:31:03 +0000</pubDate>
				<wikidot:authorName>visuallinux</wikidot:authorName>				<wikidot:authorUserId>329579</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello, thanks for your answer.</p> <p>I did the follow test:</p> <p>I created a gateway with username and password xxxx and Register false; and i can received calls from this gateway anyway and works fine.</p> <p>I will test with update ac.conf.xml now.</p> <p>Another questions i want install the system in three diffrent machines; example:</p> <p>FreeSWITCH on Machine-1<br /> Wikipbx on Machine-2<br /> PostgreSQL on Machine-3</p> <p>It's possible?</p> <p>What libraries i need on Machine-1 and what libraries i need on Machine-2?</p> <p>Fernando.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-503334</guid>
				<title>Re: Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-503334</link>
				<description></description>
				<pubDate>Mon, 08 Jun 2009 17:18:17 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I'm pretty sure you will need to use Access Control Lists (ACL's) to accomplish that. There is currently no support for that in the WikiPBX GUI, but it might be possible to add it. Please try to make it work by modifying the xml configuration file directly. I think it is called acl.conf.xml and is in /usr/local/freeswitch/conf/autoload_configs.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-161324#post-502590</guid>
				<title>Authentication Gateways</title>
				<link>http://wikipbx.subwiki.com/forum/t-161324/authentication-gateways#post-502590</link>
				<description></description>
				<pubDate>Sun, 07 Jun 2009 22:46:33 +0000</pubDate>
				<wikidot:authorName>visuallinux</wikidot:authorName>				<wikidot:authorUserId>329579</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Dear All.</p> <p>In some cases someone of my customers (Gateway) can't put username and password for authentication for receive traffic from they on my FS; it has to be a IP based authentication.</p> <p>In Menu ADD SIP Gateway if possible add a gateway with username xxxx and password xxxx and Register False for receive traffic a ip based authentication?.</p> <p>Best regards,</p> <p>Fernando</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>
