User Tools

Site Tools

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:


 <gateway name="sipgate-team-trunk">
  <param name="proxy" value=""/>
  <param name="outbound-proxy" value=""/>
  <param name="register-proxy" value=""/>
  <param name="username" value="1234567t0"/>
  <param name="auth-username" value="1234567t0"/>
  <param name="from-user" value="1234567t0"/>
  <param name="from-domain" value=""/>
  <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"/>


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


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


  <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}"/>
      <!-- <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> -->
      <action application="bridge" data="{sip_cid_type=pid}sofia/gateway/${default_gateway}/$1"/>


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

If you're having trouble to connect to 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 :(

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


testfe80:7cbe:8d0b:cd0f:015f:5be9:3475:1c7a, 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.

Enter your comment. Wiki syntax is allowed:
   ____   _  __  _____   __ __   __  ___
  /  _/  | |/_/ / ___/  / // /  /  |/  /
 _/ /   _>  <  / (_ /  / _  /  / /|_/ / 
/___/  /_/|_|  \___/  /_//_/  /_/  /_/