Defines the database schema, statuses, and repository methods for tracking SIP VoIP calls in Go using GORM.
// Source: https://github.com/code-100-precent/LingEcho-App | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. package models import ( "time" "gorm.io/gorm" ) // SipCallStatus 通话状态 type SipCallStatus string const ( SipCallStatusCalling SipCallStatus = "calling" // 呼叫中 SipCallStatusRinging SipCallStatus = "ringing" // 响铃中 SipCallStatusAnswered SipCallStatus = "answered" // 已接通 SipCallStatusFailed SipCallStatus = "failed" // 失败 SipCallStatusCancelled SipCallStatus = "cancelled" // 已取消 SipCallStatusEnded SipCallStatus = "ended" // 已结束 ) // SipCallDirection 通话方向 type SipCallDirection string const ( SipCallDirectionInbound SipCallDirection = "inboun ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key