EvoluxBR / greenswitch

Battle proven FreeSWITCH Event Socket Protocol client implementation with Gevent
Other
126 stars 50 forks source link

split data with \n\n to parse body out of event #86

Open eschmidbauer opened 1 year ago

eschmidbauer commented 1 year ago

example event payload EVENTS PLAIN CUSTOM mod_audio_stream::json

Event-Name: CUSTOM
Core-UUID: 559e0a0a-1b58-4fb6-963c-572f706e0c57
FreeSWITCH-Hostname: 93ea90ab51a8
FreeSWITCH-Switchname: 93ea90ab51a8
FreeSWITCH-IPv4: 172.17.0.2
FreeSWITCH-IPv6: %3A%3A1
Event-Date-Local: 2023-08-25%2022%3A09%3A58
Event-Date-GMT: Fri,%2025%20Aug%202023%2022%3A09%3A58%20GMT
Event-Date-Timestamp: 1693001398921599
Event-Calling-File: mod_audio_stream.c
....
variable_result: %2BOK%20Success%0A
variable_current_application: park
Content-Length: 138

{"path": "b5a879f5-1d1a-4444-b560-d5a1517b7c64", "message_id": "a94ebf42-b554-430f-910c-65286a8bbac4", "final": false, "sentence": "test"}