Skip to content

Commit

Permalink
Merge pull request #3 from byoungdale/brandon/fix/options-carriage-re…
Browse files Browse the repository at this point in the history
…turn-issue

add extra carriage return example
  • Loading branch information
davehorton authored Jun 29, 2023
2 parents 0194dff + 18b828e commit b498788
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function(method, opts) {


var msg = {
'invite':
'invite':
'INVITE sip:5753606;[email protected] SIP/2.0\r\n' +
'Via: SIP/2.0/UDP 10.1.10.101;branch=z9hG4bKac619477600\r\n' +
'Via: SIP/2.0/UDP 10.1.10.103;branch=z9hG4bKac6194382828\r\n' +
Expand All @@ -31,7 +31,7 @@ var msg = {
'm=audio 6010 RTP/AVP 0\r\n' +
'a=rtpmap:0 PCMU/8000\r\n' +
'a=ptime:20\r\n' +
'a=sendrecv',
'a=sendrecv',

'invite-tls':
'INVITE sips:5753606;[email protected] SIP/2.0\r\n' +
Expand Down Expand Up @@ -60,7 +60,7 @@ var msg = {
'a=ptime:20\r\n' +
'a=sendrecv',

'invite-compact':
'invite-compact':
'INVITE sip:[email protected] SIP/2.0\r\n' +
'v: SIP/2.0/UDP 10.1.10.101;branch=z9hG4bKac619477600\r\n' +
'v: SIP/2.0/UDP 10.1.10.103;branch=z9hG4bKac6194382828\r\n' +
Expand All @@ -84,8 +84,8 @@ var msg = {
'm=audio 6010 RTP/AVP 0\r\n' +
'a=rtpmap:0 PCMU/8000\r\n' +
'a=ptime:20\r\n' +
'a=sendrecv',
'a=sendrecv',

'200ok': 'SIP/2.0 200 OK\r\n'+
'Via: SIP/2.0/UDP 10.1.10.3;rport;branch=z9hG4bK94U4tm2DStvvH;received=10.1.10.3\r\n' +
'Call-ID: 5eb456f6-7ea4-122f-8785-001143e3cdf2\r\n' +
Expand All @@ -110,7 +110,7 @@ var msg = {
'a=silenceSupp:off - - - -\r\n' +
'a=ptime:20',

'siprec':
'siprec':
'INVITE sip:[email protected]:5030 SIP/2.0\r\n' +
'Via: SIP/2.0/UDP 172.16.169.181:5060;branch=z9hG4bK04B0013f3db3e67f3b7\r\n' +
'From: "SIPREC-SRC" <sip:[email protected]>;tag=gK040028ac\r\n' +
Expand Down Expand Up @@ -207,7 +207,7 @@ var msg = {
'</tns:participantstreamassoc>\r\n' +
'</tns:recording>',

'siprec2':
'siprec2':
'INVITE sip:[email protected]:5030 SIP/2.0\r\n' +
'Via: SIP/2.0/UDP 172.16.169.181:5060;branch=z9hG4bK04B0013f3db3e67f3b7\r\n' +
'From: "SIPREC-SRC" <sip:[email protected]>;tag=gK040028ac\r\n' +
Expand Down Expand Up @@ -399,5 +399,16 @@ var msg = {
'<tns:send>ZjExNDNiMDQtNjk1MS0xMA==</tns:send>\r\n' +
'<tns:recv>ZjExNDNiMDUtNjk1MS0xMA==</tns:recv>\r\n' +
'</tns:participantstreamassoc>\r\n' +
'</tns:recording>'
} ;
'</tns:recording>',
'options-carriage-return': 'OPTIONS sip:[email protected] SIP/2.0\r\n' +
'Via: SIP/2.0/UDP 192.241.212.6:56500;branch=nGTWdf.1124599842;rport;alias\r\n' +
'From: sip:[email protected]:56500;tag=71186921\r\n' +
'To: sip:[email protected]\r\n' +
'Call-ID: [email protected]\r\n' +
'CSeq: 1 OPTIONS\r\n' +
'Contact: sip:[email protected]:56500\r\n' +
'Content-Length: 0\r\n' +
'Max-Forwards: 20\r\n' +
'User-Agent: wFkdhplQ\r\n' +
'Accept: text/plain\r\n'
} ;

0 comments on commit b498788

Please sign in to comment.