Documentation ¶
Index ¶
- Constants
- func ConvertMapToDialString(dialVars map[string]string) (string, bool)
- func CreateToken(jwtInfos JwtTokenInfos) (string, error)
- func DtmfSanity(number string) string
- func GenDialString(cr *models.CallRequest) string
- func Get(callSid string, restData map[string]interface{}, urls string) (int, []byte, error)
- func IsSipCall(dest string) bool
- func IsValidCallReason(reason string) bool
- func IsValidRecordValue(record string) bool
- func IsValidRecordingStatusCallbackEvent(event string) bool
- func IsValidRecordingTrack(track string) bool
- func IsValidRingTone(ringtone string) bool
- func IsValidTimeLimit(timeLimit string) bool
- func IsValidTimeOut(timeout string) bool
- func IsValidTrim(trim string) bool
- func NumberSanity(number string) string
- func Post(callSid string, restData map[string]interface{}, urls string) (int, []byte, error)
- func RemovePlus(number string) string
- type JwtTokenInfo
- type JwtTokenInfos
Constants ¶
View Source
const ( SipCallIdentityHeader = "sip_h_X-Tiniyo-Phone" ExportVars = "'tiniyo_accid\\,tiniyo_rate\\,tiniyo_pulse\\,parent_call_uuid\\,parent_call_sid'" DefaultCodecs = "'PCMU,PCMA'" DefaultCallerIdType = "pid" InstantRingback = "true" RingBack = "'%(2000\\,4000\\,440\\,480)'" )
Variables ¶
This section is empty.
Functions ¶
func ConvertMapToDialString ¶
generating the dial string from vars
func CreateToken ¶
func CreateToken(jwtInfos JwtTokenInfos) (string, error)
func DtmfSanity ¶
func IsValidCallReason ¶
func IsValidRecordValue ¶
func IsValidRecordingTrack ¶
func IsValidRingTone ¶
func IsValidTimeLimit ¶
func IsValidTimeOut ¶
func IsValidTrim ¶
func NumberSanity ¶
We will keep all phone number related utility here
func RemovePlus ¶
Types ¶
type JwtTokenInfo ¶
type JwtTokenInfos ¶
type JwtTokenInfos []JwtTokenInfo
Click to show internal directories.
Click to hide internal directories.