[Freeswitch-users] Call bridge problem

Chad Vogel cvogel at lyonl.com
Thu Oct 6 23:59:33 MSD 2011


Hello,

I'm having a problem bridging out calls, FS is sending 500 Internal Server Error to our gateway. Any thoughts why this is?


<include>
  <context name="public">
    <extension name="unloop">
      <condition field="${unroll_loops}" expression="^true$"/>
      <condition field="${sip_looped_call}" expression="^true$">
        <action application="deflect" data="${destination_number}"/>
      </condition>
    </extension>
    <extension name="outside_call" continue="true">
      <condition>
        <action application="set" data="outside_call=true"/>
        <action application="set" data="RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)}"/>
      </condition>
    </extension>

    <extension name="call_debug" continue="true">
      <condition field="${call_debug}" expression="^true$" break="never">
        <action application="info"/>
      </condition>
    </extension>
    <extension name="4142211800">
      <condition field="destination_number" expression="^(\+?14142211800)$">
        <action application="set" data="effective_caller_id_name=LyonL"/>
        <action application="set" data="effective_caller_id_number=+14142211800"/>
        <action application="bridge" data="sofia/gateway/L3CN/+15618911806"/>
      </condition>
    </extension>
  </context>
</include>



<profile name="external">
  <!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files -->
  <!-- This profile is only for outbound registrations to providers -->
  <gateways>
    <gateway name="L3CN">
      <param name="username" value="1-F2la9"/>
      <param name="password" value="password"/>
      <param name="realm" value="BroadWorks"/>
      <param name="proxy" value="4.55.35.60:5070"/>
      <param name="from-domain" value="69.65.114.181:5060"/>
      <param name="dtmf-type" value="rfc2833"/>
      <param name="extension-in-contact" value="true"/>
      <param name="caller-id-in-from" value="true"/>
      <param name="register" value="false"/>
    </gateway>
  </gateways>

  <aliases>
    <!--
    <alias name="outbound"/>
    <alias name="nat"/>
    -->
  </aliases>

  <domains>
    <domain name="all" alias="false" parse="true"/>
  </domains>

  <settings>
    <param name="debug" value="0"/>
    <!-- If you want FreeSWITCH to shutdown if this profile fails to load, uncomment the next line. -->
    <!-- <param name="shutdown-on-fail" value="true"/> -->
    <param name="sip-trace" value="no"/>
    <param name="sip-capture" value="no"/>
    <param name="rfc2833-pt" value="101"/>
    <param name="dialplan" value="XML"/>
    <param name="context" value="public"/>
    <param name="dtmf-duration" value="2000"/>
    <param name="inbound-codec-prefs" value="$${global_codec_prefs}"/>
    <param name="outbound-codec-prefs" value="$${outbound_codec_prefs}"/>
    <param name="hold-music" value="$${hold_music}"/>
    <param name="rtp-timer-name" value="soft"/>
    <!--<param name="enable-100rel" value="true"/>-->
    <!--<param name="disable-srv503" value="true"/>-->
    <!-- This could be set to "passive" -->
    <param name="local-network-acl" value="localnet.auto"/>
    <param name="manage-presence" value="false"/>

    <param name="user-agent-string" value="LyonL"/>

    <!-- used to share presence info across sofia profiles
manage-presence needs to be set to passive on this profile
if you want it to behave as if it were the internal profile
for presence.
    -->
    <!-- Name of the db to use for this profile -->
    <!--<param name="dbname" value="share_presence"/>-->
    <!--<param name="presence-hosts" value="$${domain}"/>-->
    <!--<param name="force-register-domain" value="$${domain}"/>-->
    <!--all inbound reg will stored in the db using this domain -->
    <!--<param name="force-register-db-domain" value="$${domain}"/>-->
    <!-- ************************************************* -->

    <!--<param name="aggressive-nat-detection" value="true"/>-->
    <param name="inbound-codec-negotiation" value="greedy"/>
    <param name="nonce-ttl" value="60"/>
    <param name="auth-calls" value="false"/>
    <param name="NDLB-force-rport" value="server-only"/>
    <!--
DO NOT USE HOSTNAMES, ONLY IP ADDRESSES IN THESE SETTINGS!
    -->
    <param name="rtp-ip" value="$${external_rtp_ip}"/>
    <param name="sip-ip" value="$${external_sip_ip}"/>
    <param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
    <param name="ext-sip-ip" value="$${external_sip_ip}"/>
    <param name="sip-port" value="$${external_sip_port}"/>
    <param name="rtp-timeout-sec" value="300"/>
    <param name="rtp-hold-timeout-sec" value="1800"/>
    <!--<param name="enable-3pcc" value="true"/>-->

    <!-- TLS: disabled by default, set to "true" to enable -->
    <param name="tls" value="$${external_ssl_enable}"/>
    <!-- additional bind parameters for TLS -->
    <param name="tls-bind-params" value="transport=tls"/>
    <!-- Port to listen on for TLS requests. (5081 will be used if unspecified) -->
    <param name="tls-sip-port" value="$${external_tls_port}"/>
    <!-- Location of the agent.pem and cafile.pem ssl certificates (needed for TLS server) -->
    <param name="tls-cert-dir" value="$${external_ssl_dir}"/>
    <!-- TLS version ("sslv23" (default), "tlsv1"). NOTE: Phones may not work with TLSv1 -->
    <param name="tls-version" value="$${sip_tls_version}"/>

  </settings>
</profile>


send 1283 bytes to udp/[4.55.35.60]:5070 at 19:50:28.998153:
   ------------------------------------------------------------------------
   INVITE sip:+15618911806 at 4.55.35.60:5070 SIP/2.0
   Via: SIP/2.0/UDP 69.65.114.181;rport;branch=z9hG4bK62S7Fr2Um459j
   Max-Forwards: 8
   From: "LyonL" <sip:+14142211800 at 69.65.114.181:5060>;tag=K0gUSK5HNr3US
   To: <sip:+15618911806 at 4.55.35.60:5070>
   Call-ID: 48a9a931-6af7-122f-a3bd-e5fc932e6276
   CSeq: 18629251 INVITE
   Contact: <sip:1-F2la9 at 69.65.114.181:5060;transport=udp;gw=L3CN>
   Expires: 3600
   User-Agent: LyonL
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, RE
FER, NOTIFY
   Supported: timer, precondition, path, replaces
   Allow-Events: talk, hold, refer
   Authorization: Digest username="1-F2la9", realm="BroadWorks", nonce="BroadWor
ksXgtg5vbouT4lpitdBW", cnonce="SKxoW2r3Ei+9o+X8ky5idg", algorithm=MD5, uri="sip:
+15618911806 at 4.55.35.60:5070", response="9f0325808936e22ae050921c176f2730", qop=
auth, nc=00000001
   Content-Type: application/sdp
   Content-Disposition: session
   Content-Length: 229
   X-FS-Support: update_display
   Remote-Party-ID: "LyonL" <sip:+14142211800 at 69.65.114.181:5060>;party=calling;
screen=yes;privacy=off

   v=0
   o=FreeSWITCH 1317910968 1317910969 IN IP4 69.65.114.181
   s=FreeSWITCH
   c=IN IP4 69.65.114.181
   t=0 0
   m=audio 19660 RTP/AVP 0 8 18 101 13
   a=fmtp:18 annexb=no
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-16
   a=ptime:20
   ------------------------------------------------------------------------
recv 297 bytes from udp/[4.55.35.60]:5070 at 19:50:29.002153:
   ------------------------------------------------------------------------
   SIP/2.0 100 Trying
   Via: SIP/2.0/UDP 69.65.114.181;received=69.65.114.181;branch=z9hG4bK62S7Fr2Um
459j;rport=5060
   From: "LyonL" <sip:+14142211800 at 69.65.114.181:5060>;tag=K0gUSK5HNr3US
   To: <sip:+15618911806 at 4.55.35.60:5070>
   Call-ID: 48a9a931-6af7-122f-a3bd-e5fc932e6276
   CSeq: 18629251 INVITE

   ------------------------------------------------------------------------
recv 468 bytes from udp/[4.55.35.60]:5070 at 19:50:29.008153:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 69.65.114.181;received=69.65.114.181;branch=z9hG4bK62S7Fr2Um
459j;rport=5060
   From: "LyonL" <sip:+14142211800 at 69.65.114.181:5060>;tag=K0gUSK5HNr3US
   To: <sip:+15618911806 at 4.55.35.60:5070>;tag=SDcpmkf99-1282242359-1317930631679

   Call-ID: 48a9a931-6af7-122f-a3bd-e5fc932e6276
   CSeq: 18629251 INVITE
   WWW-Authenticate: DIGEST qop="auth",nonce="BroadWorksXgtg5vbpbTeh3n5wBW",algo
rithm=MD5,realm="BroadWorks"
   Content-Length: 0

   ------------------------------------------------------------------------
send 367 bytes to udp/[4.55.35.60]:5070 at 19:50:29.008153:
   ------------------------------------------------------------------------
   ACK sip:+15618911806 at 4.55.35.60:5070 SIP/2.0
   Via: SIP/2.0/UDP 69.65.114.181;rport;branch=z9hG4bK62S7Fr2Um459j
   Max-Forwards: 8
   From: "LyonL" <sip:+14142211800 at 69.65.114.181:5060>;tag=K0gUSK5HNr3US
   To: <sip:+15618911806 at 4.55.35.60:5070>;tag=SDcpmkf99-1282242359-1317930631679

   Call-ID: 48a9a931-6af7-122f-a3bd-e5fc932e6276
   CSeq: 18629251 ACK
   Content-Length: 0

   ------------------------------------------------------------------------
2011-10-06 19:50:28.979152 [NOTICE] sofia.c:5897 Hangup sofia/external/+15618911
806 [CS_CONSUME_MEDIA] [NORMAL_UNSPECIFIED]
2011-10-06 19:50:28.979152 [INFO] mod_dptools.c:2810 Originate Failed.  Cause: N
ORMAL_UNSPECIFIED
2011-10-06 19:50:28.979152 [NOTICE] mod_dptools.c:2929 Hangup sofia/external/+15
618911806 at 4.55.35.60<mailto:618911806 at 4.55.35.60> [CS_EXECUTE] [NORMAL_UNSPECIFIED]
send 380 bytes to udp/[4.55.35.60]:5070 at 19:50:29.010153:
   ------------------------------------------------------------------------
   SIP/2.0 500 Internal Server Error
   Via: SIP/2.0/UDP 4.55.35.60:5070;branch=z9hG4bKtil5pp004o3hvjs9n2c1.1
   From: <sip:+15618911806 at 4.55.35.60;user=phone>;tag=SDesfje01-1691283656-13179
30631601-
   To: "4142211800 4142211800" <sip:+14142211800 at 69.65.114.181>;tag=jQQ2QrmerFD9
D
   Call-ID: SDesfje01-bc0436bf1c3c496f2c13c86f66280e15-v3000i1
   CSeq: 761577689 INVITE
   Content-Length: 0

   ------------------------------------------------------------------------
2011-10-06 19:50:28.979152 [NOTICE] switch_core_session.c:1367 Session 19 (sofia
/external/+15618911806 at 4.55.35.60) Ended
2011-10-06 19:50:28.979152 [NOTICE] switch_core_session.c:1369 Close Channel sof
ia/external/+15618911806 at 4.55.35.60<mailto:ia/external/+15618911806 at 4.55.35.60> [CS_DESTROY]
2011-10-06 19:50:28.979152 [NOTICE] switch_core_session.c:1367 Session 20 (sofia
/external/+15618911806) Ended
2011-10-06 19:50:28.979152 [NOTICE] switch_core_session.c:1369 Close Channel sof
ia/external/+15618911806 [CS_DESTROY]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111006/5e76b6a7/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list