User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
mission:log:2012:09:20:freeswitch-and-sipgate-team-trunking [2012/09/20 08:12] – created chronomission:log:2012:09:20:freeswitch-and-sipgate-team-trunking [2013/06/05 14:34] – external edit 127.0.0.1
Line 1: Line 1:
 +====== Freeswitch and Sipgate-Team Trunking ======
  
 +Just a quickie and not really Apollo related but it took me a while to figure out how to implement Sipgate-Team trunks into Freeswitch, since the wiki only covers the single user sipgate accounts:
 +
 +
 +===== conf/sip-profiles/external/sipgate-team-trunk.xml =====
 +
 +<code>
 +<include>
 + <gateway name="sipgate-team-trunk">
 +  <param name="proxy" value="sipconnect.sipgate.de"/>
 +  <param name="outbound-proxy" value="sipconnect.sipgate.de"/>
 +  <param name="register-proxy" value="sipconnect.sipgate.de"/>
 +  <param name="username" value="1234567t0"/>
 +  <param name="auth-username" value="1234567t0"/>
 +  <param name="from-user" value="1234567t0"/>
 +  <param name="from-domain" value="sipconnect.sipgate.de"/>
 +  <param name="password" value="654321"/>
 +  <param name="ping" value="25"/>
 +  <param name="context" value="public"/>
 +  <param name="register" value="true"/>
 +  <param name="register-transport" value="udp"/>
 + </gateway>
 +</include>
 +</code>
 +
 +
 +===== conf/vars.xml =====
 +
 +<code>
 +<X-PRE-PROCESS cmd="set" data="default_provider=sipgate-team-trunk"/>
 +</code>
 +
 +===== conf/dialplan/sipgate-outbound.xml =====
 +
 +In order to get valid outgoing CID's sipgate needs another header:
 +
 +<code>
 +<include>
 +
 +  <extension name="sipgate-outbound">
 +    <condition field="destination_number" expression="^(\d+)$">
 +      <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
 +      <!-- <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> -->
 +      <action application="set" data="sip_h_P-Preferred-Identity=sip:${outbound_caller_id_number}@sipconnect.sipgate.de"/>
 +      <!-- <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> -->
 +      <action application="bridge" data="{sip_cid_type=pid}sofia/gateway/${default_gateway}/$1"/>
 +    </condition>
 +  </extension>
 +
 +</include>
 +</code>
 +
 +Where ${outbound_caller_id_number} is defined in the directory as 491234567890 without a + or 00.
 +
 +{{tag>sipgate team trunk freeswitch voip sip}}
 +
 +{{keywords>Apollo-NG apollo next generation hackerspace hacker space development makerspace fablab diy community open-resource open resource mobile hackbus sipgate team trunk freeswitch voip sip}}
 +
 +~~DISCUSSION~~