Skip to content
RobertSchuster edited this page Jul 24, 2015 · 15 revisions

Gemeinschaft 5.0

Die Datei /opt/GS5/misc/freeswitch/scripts/ini/gateways.ini enthält die Konfiguration mit der Sie Ihre Telefonanlage z.B. mit einem externen SIP-Provider anschliessen können. Die Datei muss von Ihnen manuell angelegt werden. Nach einer Änderung müssen Sie FreeSWITCH mit sudo /etc/init.d/freeswitch reload reloaden.

sipgate.de:

/opt/GS5/misc/freeswitch/scripts/ini/gateways.ini

[sipgate_1234567]
profile = gemeinschaft
name = sipgate
username = 1234567
password = AB1CDE
proxy = sipgate.de
register = true
extension = +4930123456

sipgate.com

/opt/GS5/misc/freeswitch/scripts/ini/gateways.ini

[sipgate_1234500e0]
profile = gemeinschaft
name = sipgate
username = 1234500e0
password = A1BCDE
proxy = sipgate.com
register = true
extension = +15551234567

sipgate trunk

/opt/GS5/misc/freeswitch/scripts/ini/gateways.ini

[sipgate_1234500e0]
profile = gemeinschaft
name = sipgate-trunk
username = 1234500e0
password = XXXYYY
proxy = sipconnect.sipgate.de
from-user = 1234500e0
from-domain = sipconnect.sipgate.de
register = true
expire-seconds = 600
ping = 25
extension = {sip_to_user}

##routes.ini: /opt/GS5/misc/freeswitch/scripts/ini/routes.ini

[outbound]
^%+49(%d+)$               , class=gateway, endpoint=sipgate_1234567, 0%1
^%+(%d+)$                 , class=gateway, endpoint=sipgate_1234567, 00%1

Gemeinschaft 5.1

Gateway Konfiguration

Sipgate Trunk

<gateway description="Sipgate Trunk" identifier="gateway1" inbound="true" name="Sipgate Trunk" outbound="true" technology="sip">
	<gateway_settings count="6">
		<setting class_type="String" description="" name="domain" value="sipconnect.sipgate.de"/>
		<setting class_type="String" description="" name="username" value="1234567t0"/>
		<setting class_type="String" description="" name="password" value="ABC123"/>
		<setting class_type="String" description="" name="number_source" value="sip_to_user"/>
		<setting class_type="String" description="" name="auth_source" value="sip_gateway"/>
		<setting class_type="String" description="" name="auth_pattern" value="^gateway1"/>
	</gateway_settings>
	<gateway_parameters count="5">
		<parameter class_type="String" description="" name="from-user" value="1234567t0"/>
		<parameter class_type="String" description="" name="from-domain" value="sipconnect.sipgate.de"/>
		<parameter class_type="String" description="" name="proxy" value="sipconnect.sipgate.de"/>
		<parameter class_type="String" description="" name="expire-seconds" value="600"/>
		<parameter class_type="String" description="" name="ping" value="25"/>
	</gateway_parameters>
	<call_routes count="2">
		<call_route name="Sipgate Trunk" position="1" routing_table="outbound">
			<route_elements count="4">
				<route_element action="set" mandatory="true" pattern="^%+(49.+)$" position="1" replacement="%1" var_in="val:caller_id_numbers" var_out="caller_id_number"/>
				<route_element action="match" mandatory="true" pattern="^%+(%d+)$" position="2" replacement="+%1" var_in="destination_number" var_out="destination_number"/>
				<route_element action="set" mandatory="false" pattern="" position="3" replacement=""{caller_id_name}" <sip:{caller_id_number}@{domain}>" var_in="" var_out="hdr:P-Preferred-Identity"/>
				<route_element action="set" mandatory="false" pattern="^true" position="4" replacement="id" var_in="clir" var_out="hdr:Privacy"/>
			</route_elements>
		</call_route>
		<call_route endpoint_type="phonenumber" name="strip international prefix" position="1" routing_table="inbound">
			<route_elements count="3">
				<route_element action="match" mandatory="true" pattern="^00([1-9]%d+)$" position="1" replacement="+%1" var_in="destination_number" var_out="destination_number"/>
				<route_element action="set" mandatory="false" pattern="^00([1-9]%d+)$" position="2" replacement="+%1" var_in="caller_id_number" var_out="caller_id_number"/>
				<route_element action="set" mandatory="false" pattern="^0([1-9]%d+)$" position="3" replacement="+49%1" var_in="caller_id_number" var_out="caller_id_number"/>
			</route_elements>
		</call_route>
	</call_routes>
</gateway>

Gemeinschaft 5.2

In der Version GS 5.2 werden keine Konfigurationsdateien mehr editiert, sondern es können alle Einstellungen über die GUI vorgenommen werden. Ich gehe in der folgenden Anleitung von einem "frischen" System aus, auf dem bisher lediglich die Grundeinstellungen wie Firma etc. vorgenommen wurden. Sollte das Setup für die von Sipgate angebotene 30-tägige Testphase genutzt werden so muss unbedingt die lokale Vorwahl auf 221 gesetzt werden (die Test-Nummern von Sipgate sind aus dem Ortsnetz Düsseldorf).

Gateway Konfiguration

Sipgate Trunk

Clone this wiki locally