User Tools

Site Tools


Navigation Menu

Flight-Control

  • StatusClosed
  • OP-ModePre-Launch
  • LocationN48 - E11
  • Localtime22:28
  • CountdownT-00D 00:00

Hot Projects

SEEDStack

SEEDStack - Open 3D printable seed/sprouting systemDIY Food Hacking

UCSSPM

UCSSPM - Unified Clear-Sky Solar Prediction ModelOpen Solar Power

picoReflow

picoReflow - DIY PID Reflow Oven Controller based on RaspberryPiDIY Reflow Soldering

PiGI

PiGI - DIY Geiger Counter based on RaspberryPiRasPi Geiger Counter

DIY ARA-2000

Active Wideband Receiver Antenna for SDR - ARA-2000Wideband Antenna

DSpace

DSPace - Map everythingMap everything!

Mission-Tags

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

<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>

conf/vars.xml

<X-PRE-PROCESS cmd="set" data="default_provider=sipgate-team-trunk"/>

conf/dialplan/sipgate-outbound.xml

In order to get valid outgoing CID's sipgate needs another header:

<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>

Where ${outbound_caller_id_number} is defined in the directory as 491234567890 without a + or 00.

If you're having trouble to connect to sipconnect.sipgate.de and get some DNS (503) or Authentication Error Messages (401) while trying to REG, make sure you have IPv6 disabled locally, since sipgate's v6 configuration is really broken :(

Mission-Log entry created by chrono on 2012/09/20 08:12 UTC

Discussion

Pete
2013/02/02 22:49

You are the best Apollo. I searched a long time for a basic configuration. You saved my weekend !!! Thanks a lot ! Pete

chrono
2013/02/03 01:22

Hi Pete, thanks for the feedback :) I'm glad, that the time I've spent to keep this spare documentation public, already was worthwhile.

Comment text

Please type the letters you see on the left into the box on the right:

   __ __   _  __   ____   ____   __ 
  / //_/  / |/ /  / __/  / __/  / / 
 / ,<    /    /  _\ \   / _/   / /__
/_/|_|  /_/|_/  /___/  /___/  /____/