Advertisement
Guest User

Agent waiting for call

a guest
Jun 24th, 2014
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.70 KB | None | 0 0
  1.     <recv request="INVITE" rrs="true">
  2.     </recv>
  3.    
  4.     <send>
  5.         <![CDATA[
  6.             SIP/2.0 100 Trying
  7.             [last_Via:]
  8.             [last_From:]
  9.             [last_To:];tag=[pid]SIPpTag01[call_number]
  10.             [last_Call-ID:]
  11.             [last_CSeq:]
  12.             Contact: <sip:[service]@[local_ip]:[local_port]>
  13.             Content-Length: 0
  14.             [routes]
  15.         ]]>
  16.     </send>
  17.    
  18.     <send>
  19.         <![CDATA[
  20.        
  21.             SIP/2.0 180 Ringing
  22.             [last_Via:]
  23.             [last_From:]
  24.             [last_To:];tag=[pid]SIPpTag01[call_number]
  25.             [last_Call-ID:]
  26.             [last_CSeq:]
  27.             Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,SUBSCRIBE,NOTIFY,REFER,MESSAGE,INFO,PING
  28.             Content-Length: 0
  29.             [routes]
  30.         ]]>
  31.     </send>
  32.  
  33.     <send retrans="500">
  34.         <![CDATA[
  35.        
  36.             SIP/2.0 200 OK
  37.             [last_Via:]
  38.             [last_From:]
  39.             [last_To:];tag=[pid]SIPpTag01[call_number]
  40.             [last_Call-ID:]
  41.             [last_CSeq:]
  42.             Contact: <sip:[service]@[local_ip]:[local_port]>
  43.             Content-Type: application/sdp
  44.             Content-Length: [len]
  45.             [routes]
  46.            
  47.             v=0
  48.             o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
  49.             s=client
  50.             c=IN IP[media_ip_type] [media_ip]
  51.             t=0 0
  52.             m=audio [media_port] RTP/AVP 8 101
  53.             a=rtpmap:8 PCMA/8000
  54.             a=rtpmap:101 telephone-event/8000
  55.             a=fmtp:101 0-15
  56.             a=ptime:20
  57.             a=sendrecv
  58.         ]]>
  59.     </send>
  60.  
  61.     <recv request="ACK"></recv>
  62.    
  63.     <recv request="BYE">
  64.     </recv>
  65.  
  66.     <send>
  67.         <![CDATA[
  68.        
  69.             SIP/2.0 200 OK
  70.             [last_Via:]
  71.             [last_From:]
  72.             [last_To:]
  73.             [last_Call-ID:]
  74.             [last_CSeq:]
  75.             Contact: <sip:[service]@[local_ip]>
  76.             Content-Type: application/sdp
  77.             Content-Length: [len]
  78.         ]]>
  79.     </send>
  80.    
  81.     <!-- Keep the call open for a while in case the 200 is lost to be     -->
  82.     <!-- able to retransmit it if we receive the BYE again.               -->
  83.     <pause milliseconds="4000"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement