namespace NEventSocket.Tests.TestSupport
{
    public class TestMessages
    {
        /// <summary>
        /// Represents the response to a "connect" command on an OutboundSocket
        /// </summary>
        /// <remarks>
        /// Special Case: This has the command/reply content-type, but the headers contain a CHANNEL_DATA event with information
        /// about the channel linked to the outbound socket instance.
        /// There is no body, hence no content-length header, all the info is in the headers.
        /// </remarks>
        public const string ConnectEvent = @"Event-Name: CHANNEL_DATA
Core-UUID: 2f5dcf01-d1c2-4b77-abe4-dca29127416b
FreeSWITCH-Hostname: dan-win8-dev
FreeSWITCH-Switchname: dan-win8-dev
FreeSWITCH-IPv4: 172.16.50.128
FreeSWITCH-IPv6: 2001%3A0%3A5ef5%3A79fd%3Ae6%3A1e3%3A53ef%3Acd7f
Event-Date-Local: 2014-03-07%2016%3A36%3A50
Event-Date-GMT: Fri,%2007%20Mar%202014%2016%3A36%3A50%20GMT
Event-Date-Timestamp: 1394210210800500
Event-Calling-File: mod_event_socket.c
Event-Calling-Function: parse_command
Event-Calling-Line-Number: 1875
Event-Sequence: 545
Channel-Direction: inbound
Channel-Username: 1005
Channel-Dialplan: XML
Channel-Caller-ID-Name: Dan%20X-Lite
Channel-Caller-ID-Number: 1005
Channel-Orig-Caller-ID-Number: 0000000000
Channel-Network-Addr: 172.16.50.1
Channel-ANI: 1005
Channel-Destination-Number: eventsocket
Channel-Unique-ID: ae4b8173-00ca-4c3e-a7e0-6fbb2a32a15d
Channel-Source: mod_sofia
Channel-Context: default
Channel-Channel-Name: sofia/internal/1005%40172.16.50.128
Channel-Profile-Index: 1
Channel-Profile-Created-Time: 1394210207540403
Channel-Channel-Created-Time: 1394210207540403
Channel-Channel-Answered-Time: 0
Channel-Channel-Progress-Time: 0
Channel-Channel-Progress-Media-Time: 0
Channel-Channel-Hangup-Time: 0
Channel-Channel-Transfer-Time: 0
Channel-Channel-Resurrect-Time: 0
Channel-Channel-Bridged-Time: 0
Channel-Channel-Last-Hold: 0
Channel-Channel-Hold-Accum: 0
Channel-Screen-Bit: true
Channel-Privacy-Hide-Name: false
Channel-Privacy-Hide-Number: false
Channel-State: CS_EXECUTE
Channel-Call-State: RINGING
Channel-State-Number: 4
Channel-Name: sofia/internal/1005%40172.16.50.128
Unique-ID: ae4b8173-00ca-4c3e-a7e0-6fbb2a32a15d
Call-Direction: inbound
Presence-Call-Direction: inbound
Channel-HIT-Dialplan: true
Channel-Presence-ID: 1005%40172.16.50.128
Channel-Call-UUID: ae4b8173-00ca-4c3e-a7e0-6fbb2a32a15d
Answer-State: ringing
Caller-Direction: inbound
Caller-Username: 1005
Caller-Dialplan: XML
Caller-Caller-ID-Name: Dan%20X-Lite
Caller-Caller-ID-Number: 1005
Caller-Orig-Caller-ID-Number: 0000000000
Caller-Network-Addr: 172.16.50.1
Caller-ANI: 1005
Caller-Destination-Number: eventsocket
Caller-Unique-ID: ae4b8173-00ca-4c3e-a7e0-6fbb2a32a15d
Caller-Source: mod_sofia
Caller-Context: default
Caller-Channel-Name: sofia/internal/1005%40172.16.50.128
Caller-Profile-Index: 1
Caller-Profile-Created-Time: 1394210207540403
Caller-Channel-Created-Time: 1394210207540403
Caller-Channel-Answered-Time: 0
Caller-Channel-Progress-Time: 0
Caller-Channel-Progress-Media-Time: 0
Caller-Channel-Hangup-Time: 0
Caller-Channel-Transfer-Time: 0
Caller-Channel-Resurrect-Time: 0
Caller-Channel-Bridged-Time: 0
Caller-Channel-Last-Hold: 0
Caller-Channel-Hold-Accum: 0
Caller-Screen-Bit: true
Caller-Privacy-Hide-Name: false
Caller-Privacy-Hide-Number: false
variable_direction: inbound
variable_uuid: ae4b8173-00ca-4c3e-a7e0-6fbb2a32a15d
variable_session_id: 1
variable_sip_from_user: 1005
variable_sip_from_uri: 1005%40172.16.50.128
variable_sip_from_host: 172.16.50.128
variable_channel_name: sofia/internal/1005%40172.16.50.128
variable_sip_call_id: Y2MwOGNjMTM3NDBiZWYyNDU0NzZkOGU3YjMyZDY1MGE
variable_sip_local_network_addr: 172.16.50.128
variable_sip_network_ip: 172.16.50.1
variable_sip_network_port: 32562
variable_sip_received_ip: 172.16.50.1
variable_sip_received_port: 32562
variable_sip_via_protocol: udp
variable_sip_authorized: true
variable_Event-Name: REQUEST_PARAMS
variable_Core-UUID: 2f5dcf01-d1c2-4b77-abe4-dca29127416b
variable_FreeSWITCH-Hostname: dan-win8-dev
variable_FreeSWITCH-Switchname: dan-win8-dev
variable_FreeSWITCH-IPv4: 172.16.50.128
variable_FreeSWITCH-IPv6: 2001%3A0%3A5ef5%3A79fd%3Ae6%3A1e3%3A53ef%3Acd7f
variable_Event-Date-Local: 2014-03-07%2016%3A36%3A47
variable_Event-Date-GMT: Fri,%2007%20Mar%202014%2016%3A36%3A47%20GMT
variable_Event-Date-Timestamp: 1394210207540403
variable_Event-Calling-File: sofia.c
variable_Event-Calling-Function: sofia_handle_sip_i_invite
variable_Event-Calling-Line-Number: 8043
variable_Event-Sequence: 532
variable_sip_number_alias: 1005
variable_sip_auth_username: 1005
variable_sip_auth_realm: 172.16.50.128
variable_number_alias: 1005
variable_requested_domain_name: dan-win8-dev.home
variable_record_stereo: true
variable_default_gateway: example.com
variable_default_areacode: 918
variable_transfer_fallback_extension: operator
variable_toll_allow: domestic,international,local
variable_accountcode: 1005
variable_user_context: default
variable_effective_caller_id_name: Extension%201005
variable_effective_caller_id_number: 1005
variable_outbound_caller_id_name: FreeSWITCH
variable_outbound_caller_id_number: 0000000000
variable_callgroup: techsupport
variable_user_name: 1005
variable_domain_name: dan-win8-dev.home
variable_sip_from_user_stripped: 1005
variable_sip_from_tag: 370d1856
variable_sofia_profile_name: internal
variable_recovery_profile_name: internal
variable_sip_full_via: SIP/2.0/UDP%20172.16.50.1%3A32562%3Bbranch%3Dz9hG4bK-d8754z-438f1d150f031a68-1---d8754z-%3Brport%3D32562
variable_sip_from_display: Dan%20X-Lite
variable_sip_full_from: %22Dan%20X-Lite%22%20%3Csip%3A1005%40172.16.50.128%3E%3Btag%3D370d1856
variable_sip_full_to: %3Csip%3Aeventsocket%40172.16.50.128%3E
variable_sip_req_user: eventsocket
variable_sip_req_uri: eventsocket%40172.16.50.128
variable_sip_req_host: 172.16.50.128
variable_sip_to_user: eventsocket
variable_sip_to_uri: eventsocket%40172.16.50.128
variable_sip_to_host: 172.16.50.128
variable_sip_contact_user: 1005
variable_sip_contact_port: 32562
variable_sip_contact_uri: 1005%40172.16.50.1%3A32562
variable_sip_contact_host: 172.16.50.1
variable_rtp_use_codec_string: G722,PCMU,PCMA,GSM
variable_sip_user_agent: X-Lite%20release%204.5.5%20%20stamp%2071236
variable_sip_via_host: 172.16.50.1
variable_sip_via_port: 32562
variable_sip_via_rport: 32562
variable_max_forwards: 70
variable_presence_id: 1005%40172.16.50.128
variable_switch_r_sdp: v%3D0%0D%0Ao%3D-%2013038683805609172%201%20IN%20IP4%20172.16.50.1%0D%0As%3DX-Lite%204%20release%204.5.5%20%20stamp%2071236%0D%0Ac%3DIN%20IP4%20172.16.50.1%0D%0At%3D0%200%0D%0Am%3Daudio%2049934%20RTP/AVP%208%20101%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0A
variable_ep_codec_string: PCMA%408000h%4020i%4064000b
variable_endpoint_disposition: DELAYED%20NEGOTIATION
variable_call_uuid: ae4b8173-00ca-4c3e-a7e0-6fbb2a32a15d
variable_current_application_data: 127.0.0.1%3A8084%20async%20full
variable_current_application: socket
variable_socket_host: 127.0.0.1
Content-Type: command/reply
Reply-Text: %2BOK%0A
Socket-Mode: async
Control: full";

        public const string CallState = @"Content-Length: 1751
Content-Type: text/event-plain

Event-Name: CHANNEL_CALLSTATE
Core-UUID: f852daae-6da9-4979-8dc8-fa11651a7891
FreeSWITCH-Hostname: test
FreeSWITCH-IPv4: 1.2.3.4
FreeSWITCH-IPv6: %3A%3A1
Event-Date-Local: 2010-12-21%2014%3A21%3A54
Event-Date-GMT: Tue,%2021%20Dec%202010%2013%3A21%3A54%20GMT
Event-Date-Timestamp: 1292937714788536
Event-Calling-File: switch_channel.c
Event-Calling-Function: switch_channel_perform_set_callstate
Event-Calling-Line-Number: 213
Original-Channel-Call-State: HANGUP
Channel-State: CS_DESTROY
Channel-Call-State: DOWN
Channel-State-Number: 12
Channel-Name: sofia/internal_et/8000%40sipdomain.de
Unique-ID: 005f03fa-c803-428e-92cb-10534ac780dd
Call-Direction: inbound
Presence-Call-Direction: inbound
Channel-Presence-ID: 8000%40sipdomain.de
Answer-State: hangup
Channel-Read-Codec-Name: G722
Channel-Read-Codec-Rate: 16000
Channel-Read-Codec-Bit-Rate: 64000
Channel-Write-Codec-Name: G722
Channel-Write-Codec-Rate: 16000
Channel-Write-Codec-Bit-Rate: 64000
Caller-Direction: inbound
Caller-Username: 8000
Caller-Dialplan: LUA
Caller-Caller-ID-Name: Helmut%20Kuper
Caller-Caller-ID-Number: 8000
Caller-Network-Addr: 2.2.2.2
Caller-ANI: 8000
Caller-Destination-Number: ***6
Caller-Unique-ID: 005f03fa-c803-428e-92cb-10534ac780dd
Caller-Source: mod_sofia
Caller-Context: internal.lua
Caller-Channel-Name: sofia/internal_et/8000%40sipdomain.de
Caller-Profile-Index: 1
Caller-Profile-Created-Time: 1292937711184483
Caller-Channel-Created-Time: 1292937711184483
Caller-Channel-Answered-Time: 1292937711200482
Caller-Channel-Progress-Time: 0
Caller-Channel-Progress-Media-Time: 1292937711200482
Caller-Channel-Hangup-Time: 1292937714786536
Caller-Channel-Transfer-Time: 0
Caller-Screen-Bit: true
Caller-Privacy-Hide-Name: false
Caller-Privacy-Hide-Number: false";

        public const string BackgroundJob = @"Content-Length: 584
Content-Type: text/event-plain

Job-UUID: 7f4db78a-17d7-11dd-b7a0-db4edd065621
Job-Command: originate
Job-Command-Arg: sofia/default/1005%20'%26park'
Event-Name: BACKGROUND_JOB
Core-UUID: 42bdf272-16e6-11dd-b7a0-db4edd065621
FreeSWITCH-Hostname: ser
FreeSWITCH-IPv4: 192.168.1.104
FreeSWITCH-IPv6: 127.0.0.1
Event-Date-Local: 2008-05-02%2007%3A37%3A03
Event-Date-GMT: Thu,%2001%20May%202008%2023%3A37%3A03%20GMT
Event-Date-timestamp: 1209685023894968
Event-Calling-File: mod_event_socket.c
Event-Calling-Function: api_exec
Event-Calling-Line-Number: 609
Content-Length: 41

+OK 7f4de4bc-17d7-11dd-b7a0-db4edd065621";

        public const string BackgroundJobError = @"Content-Length: 554
Content-Type: text/event-plain

Job-UUID: 7f4db78a-17d7-11dd-b7a0-db4edd065621
Job-Command: originate
Job-Command-Arg: sofia/default/1005%20'%26park'
Event-Name: BACKGROUND_JOB
Core-UUID: 42bdf272-16e6-11dd-b7a0-db4edd065621
FreeSWITCH-Hostname: ser
FreeSWITCH-IPv4: 192.168.1.104
FreeSWITCH-IPv6: 127.0.0.1
Event-Date-Local: 2008-05-02%2007%3A37%3A03
Event-Date-GMT: Thu,%2001%20May%202008%2023%3A37%3A03%20GMT
Event-Date-timestamp: 1209685023894968
Event-Calling-File: mod_event_socket.c
Event-Calling-Function: api_exec
Event-Calling-Line-Number: 609
Content-Length: 12

-ERR Error";

        public const string DisconnectEvent = @"Content-Type: text/disconnect-notice
Controlled-Session-UUID: ae4b8173-00ca-4c3e-a7e0-6fbb2a32a15d
Content-Disposition: disconnect
Content-Length: 67

Disconnected, goodbye.
See you at ClueCon! http://www.cluecon.com/";


        public const string PlaybackComplete = @"Content-Length: 7209
Content-Type: text/event-plain

Event-Name: CHANNEL_EXECUTE_COMPLETE
Core-UUID: 2f5dcf01-d1c2-4b77-abe4-dca29127416b
FreeSWITCH-Hostname: dan-win8-dev
FreeSWITCH-Switchname: dan-win8-dev
FreeSWITCH-IPv4: 172.16.50.128
FreeSWITCH-IPv6: 2001%3A0%3A5ef5%3A79fd%3Ae6%3A1e3%3A53ef%3Acd7f
Event-Date-Local: 2014-03-07%2016%3A42%3A57
Event-Date-GMT: Fri,%2007%20Mar%202014%2016%3A42%3A57%20GMT
Event-Date-Timestamp: 1394210577020164
Event-Calling-File: switch_core_session.c
Event-Calling-Function: switch_core_session_exec
Event-Calling-Line-Number: 2749
Event-Sequence: 649
Channel-State: CS_EXECUTE
Channel-Call-State: ACTIVE
Channel-State-Number: 4
Channel-Name: sofia/internal/1005%40172.16.50.128
Unique-ID: 4e1cfa50-4c2f-44c9-aaf3-8ca590bed0e4
Call-Direction: inbound
Presence-Call-Direction: inbound
Channel-HIT-Dialplan: true
Channel-Presence-ID: 1005%40172.16.50.128
Channel-Call-UUID: 4e1cfa50-4c2f-44c9-aaf3-8ca590bed0e4
Answer-State: answered
Channel-Read-Codec-Name: PCMA
Channel-Read-Codec-Rate: 8000
Channel-Read-Codec-Bit-Rate: 64000
Channel-Write-Codec-Name: PCMA
Channel-Write-Codec-Rate: 8000
Channel-Write-Codec-Bit-Rate: 64000
Caller-Direction: inbound
Caller-Username: 1005
Caller-Dialplan: XML
Caller-Caller-ID-Name: Dan%20X-Lite
Caller-Caller-ID-Number: 1005
Caller-Orig-Caller-ID-Number: 0000000000
Caller-Network-Addr: 172.16.50.1
Caller-ANI: 1005
Caller-Destination-Number: eventsocket
Caller-Unique-ID: 4e1cfa50-4c2f-44c9-aaf3-8ca590bed0e4
Caller-Source: mod_sofia
Caller-Context: default
Caller-Channel-Name: sofia/internal/1005%40172.16.50.128
Caller-Profile-Index: 1
Caller-Profile-Created-Time: 1394210453960193
Caller-Channel-Created-Time: 1394210453960193
Caller-Channel-Answered-Time: 1394210535960322
Caller-Channel-Progress-Time: 0
Caller-Channel-Progress-Media-Time: 1394210519820459
Caller-Channel-Hangup-Time: 0
Caller-Channel-Transfer-Time: 0
Caller-Channel-Resurrect-Time: 0
Caller-Channel-Bridged-Time: 0
Caller-Channel-Last-Hold: 0
Caller-Channel-Hold-Accum: 0
Caller-Screen-Bit: true
Caller-Privacy-Hide-Name: false
Caller-Privacy-Hide-Number: false
variable_direction: inbound
variable_uuid: 4e1cfa50-4c2f-44c9-aaf3-8ca590bed0e4
variable_session_id: 2
variable_sip_from_user: 1005
variable_sip_from_uri: 1005%40172.16.50.128
variable_sip_from_host: 172.16.50.128
variable_channel_name: sofia/internal/1005%40172.16.50.128
variable_sip_local_network_addr: 172.16.50.128
variable_sip_network_ip: 172.16.50.1
variable_sip_network_port: 32562
variable_sip_received_ip: 172.16.50.1
variable_sip_received_port: 32562
variable_sip_via_protocol: udp
variable_sip_authorized: true
variable_Event-Name: REQUEST_PARAMS
variable_Core-UUID: 2f5dcf01-d1c2-4b77-abe4-dca29127416b
variable_FreeSWITCH-Hostname: dan-win8-dev
variable_FreeSWITCH-Switchname: dan-win8-dev
variable_FreeSWITCH-IPv4: 172.16.50.128
variable_FreeSWITCH-IPv6: 2001%3A0%3A5ef5%3A79fd%3Ae6%3A1e3%3A53ef%3Acd7f
variable_Event-Date-Local: 2014-03-07%2016%3A40%3A53
variable_Event-Date-GMT: Fri,%2007%20Mar%202014%2016%3A40%3A53%20GMT
variable_Event-Date-Timestamp: 1394210453960193
variable_Event-Calling-File: sofia.c
variable_Event-Calling-Function: sofia_handle_sip_i_invite
variable_Event-Calling-Line-Number: 8043
variable_Event-Sequence: 602
variable_sip_number_alias: 1005
variable_sip_auth_username: 1005
variable_sip_auth_realm: 172.16.50.128
variable_number_alias: 1005
variable_requested_domain_name: dan-win8-dev.home
variable_record_stereo: true
variable_default_gateway: example.com
variable_default_areacode: 918
variable_transfer_fallback_extension: operator
variable_toll_allow: domestic,international,local
variable_accountcode: 1005
variable_user_context: default
variable_effective_caller_id_name: Extension%201005
variable_effective_caller_id_number: 1005
variable_outbound_caller_id_name: FreeSWITCH
variable_outbound_caller_id_number: 0000000000
variable_callgroup: techsupport
variable_user_name: 1005
variable_domain_name: dan-win8-dev.home
variable_sip_from_user_stripped: 1005
variable_sofia_profile_name: internal
variable_recovery_profile_name: internal
variable_sip_req_user: eventsocket
variable_sip_req_uri: eventsocket%40172.16.50.128
variable_sip_req_host: 172.16.50.128
variable_sip_to_user: eventsocket
variable_sip_to_uri: eventsocket%40172.16.50.128
variable_sip_to_host: 172.16.50.128
variable_sip_contact_user: 1005
variable_sip_contact_port: 32562
variable_sip_contact_uri: 1005%40172.16.50.1%3A32562
variable_sip_contact_host: 172.16.50.1
variable_sip_user_agent: X-Lite%20release%204.5.5%20%20stamp%2071236
variable_sip_via_host: 172.16.50.1
variable_sip_via_port: 32562
variable_sip_via_rport: 32562
variable_max_forwards: 70
variable_presence_id: 1005%40172.16.50.128
variable_switch_r_sdp: v%3D0%0D%0Ao%3D-%2013038684052073816%201%20IN%20IP4%20172.16.50.1%0D%0As%3DX-Lite%204%20release%204.5.5%20%20stamp%2071236%0D%0Ac%3DIN%20IP4%20172.16.50.1%0D%0At%3D0%200%0D%0Am%3Daudio%2061610%20RTP/AVP%208%20101%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0A
variable_ep_codec_string: PCMA%408000h%4020i%4064000b
variable_call_uuid: 4e1cfa50-4c2f-44c9-aaf3-8ca590bed0e4
variable_socket_host: 127.0.0.1
variable_rtp_use_codec_string: G722,PCMU,PCMA,GSM
variable_rtp_audio_recv_pt: 8
variable_rtp_use_codec_name: PCMA
variable_rtp_use_codec_rate: 8000
variable_rtp_use_codec_ptime: 20
variable_rtp_last_audio_codec_string: PCMA%408000h%4020i
variable_read_codec: PCMA
variable_read_rate: 8000
variable_write_codec: PCMA
variable_write_rate: 8000
variable_dtmf_type: rfc2833
variable_local_media_ip: 172.16.50.128
variable_local_media_port: 18644
variable_advertised_media_ip: 172.16.50.128
variable_rtp_use_pt: 8
variable_rtp_use_ssrc: 1438052085
variable_rtp_2833_send_payload: 101
variable_rtp_2833_recv_payload: 101
variable_remote_media_ip: 172.16.50.1
variable_remote_media_port: 61610
variable_zrtp_secure_media_confirmed_audio: false
variable_rtp_local_sdp_str: v%3D0%0Ao%3DFreeSWITCH%201394191875%201394191877%20IN%20IP4%20172.16.50.128%0As%3DFreeSWITCH%0Ac%3DIN%20IP4%20172.16.50.128%0At%3D0%200%0Am%3Daudio%2018644%20RTP/AVP%208%20101%0Aa%3Drtpmap%3A8%20PCMA/8000%0Aa%3Drtpmap%3A101%20telephone-event/8000%0Aa%3Dfmtp%3A101%200-16%0Aa%3DsilenceSupp%3Aoff%20-%20-%20-%20-%0Aa%3Dptime%3A20%0Aa%3Dsendrecv%0A
variable_endpoint_disposition: ANSWER
variable_sip_to_tag: yDZ9jDHtcU2rm
variable_sip_from_tag: 7691c065
variable_sip_cseq: 2
variable_sip_call_id: MzM0MzU0ZTUxZDE2OTBlNTU2YWEwMDg1NDA4ZTBjODU
variable_sip_full_via: SIP/2.0/UDP%20172.16.50.1%3A32562%3Bbranch%3Dz9hG4bK-d8754z-ae63bb2deafbd149-1---d8754z-%3Brport%3D32562
variable_sip_from_display: Dan%20X-Lite
variable_sip_full_from: %22Dan%20X-Lite%22%20%3Csip%3A1005%40172.16.50.128%3E%3Btag%3D7691c065
variable_sip_full_to: %3Csip%3Aeventsocket%40172.16.50.128%3E%3Btag%3DyDZ9jDHtcU2rm
variable_current_application_data: tone_stream%3A//%25(2000,4000,480,440)
variable_current_application: playback
variable_playback_seconds: 6
variable_playback_ms: 6000
variable_playback_samples: 48000
variable_current_application_response: FILE%20PLAYED
Application: playback
Application-Data: tone_stream%3A//%25(2000,4000,480,440)
Application-Response: FILE%20PLAYED
Application-UUID: fd3ababd-ad60-4582-8c6c-609064d55fe7";
    }
}