<?xml version="1.0" encoding="UTF-8" standalone=no ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<!-- This program is free software; you can redistribute it and/or      -->
<!-- modify it under the terms of the GNU General Public License as     -->
<!-- published by the Free Software Foundation; either version 2 of the -->
<!-- License, or (at your option) any later version.                    -->
<!--                                                                    -->
<!-- This program is distributed in the hope that it will be useful,    -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of     -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      -->
<!-- GNU General Public License for more details.                       -->
<!--                                                                    -->
<!-- You should have received a copy of the GNU General Public License  -->
<!-- along with this program; if not, write to the                      -->
<!-- Free Software Foundation, Inc.,                                    -->
<!-- 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA             -->
<!--                                                                    -->
<!--                 Sipp default 'uac' scenario.                       -->
<!--                                                                    -->

<scenario name="Basic Sipstone UAC info">
  <!-- In client mode (sipp placing calls), the Call-ID MUST be         -->
  <!-- generated by sipp. To do so, use sipp keyword.                -->
  <send retrans="500">
    <![CDATA[

      INVITE sip:[service]@[xc_ip] SIP/2.0
      From: [f_id] <sip:[f_id]@[xc_ip]>;tag=[call_number]
      To: <sip:[service]@[xc_ip]>
      Call-ID: [call_id]
      CSeq: 1 INVITE
      Contact: <sip:[f_id]@[inter_ip]:[local_port]>
      Content-Type: application/sdp
      Content-Length: [len]
      Max-Forwards: 70
      User-Agent:sipX/3.7.0 (linux)
      Accept-Language:en
      Allow:INVITE,ACK,CANCEL,BYE,REFER,OPTIONS,INFO,REGISTER,SUBSCRIBE,NOTIFY
      Supported:replaces
      Via: SIP/2.0/[transport] [inter_ip]:[local_port];branch=z9hG4bK[call_number][cseq]

      v=0
      o=sipX 5 5 IN IP4 [inter_ip]
      s=Session SDP
      c=IN IP4 [inter_ip]
      t=0 0
      m=audio [media_port] RTP/AVP 0 8 18
      a=rtpmap:0 PCMU/8000/1
      a=rtpmap:8 PCMU/8000/1
      a=rtpmap:18 PCMU/8000/1
      a=fmtp:18 PCMU/8000/1
      a=sendrecv
      m=video [media_port] RTP/AVP 109
      a=rtpmap:109 H264/90000/1
      a=fmtp:109 CIF=2
      a=sendrecv
      m=data [media_port] RTP/AVP 121 122 123 124 125 126
      a=rtpmap:121 WHITEBOARD/10000/0
      a=rtpmap:122 DESKTOPSHARE/10000/0
      a=rtpmap:123 APPLICATION/10000/0
      a=rtpmap:124 FILETRANS/10000/0
      a=rtpmap:125 MESSAGE/10000/0
      a=rtpmap:126 WEBSHARE/10000/0
      a=sendrecv

 

    ]]>
  </send>

  <recv response="100"
        optional="true">
  </recv>


  <recv response="180" optional="true">
  </recv>


  <recv response="200" crlf="true">
  </recv>

  <send>
    <![CDATA[

      ACK sip:[service]@[xc_ip] SIP/2.0
      From: [f_id] <sip:[f_id]@[xc_ip]>;tag=[call_number]
      To: <sip:[service]@[xc_ip]>[peer_tag_param]
      Call-ID: [call_id]
      CSeq: 1 ACK
      Max-Forwards: 70
      User-Agent:sipX/3.7.0 (linux)
      Accept-Language:en
      Via: SIP/2.0/[transport] [inter_ip]:[local_port];branch=z9hG4bK[call_number][cseq]
      Content-Length: [len]

    ]]>
  </send>

转载于:https://www.cnblogs.com/zhanglun1980/archive/2008/04/28/1173970.html

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐