github.com/CyCoreSystems/ari@v4.8.4+incompatible/callerid.go (about) 1 package ari 2 3 import "errors" 4 5 //NOTE: Direct translation from ARI client 2.0 6 7 // CallerIDFromString interprets the provided string 8 // as a CallerID. Usually, this string will be of the following forms: 9 // - "Name" <number> 10 // - <number> 11 // - "Name" number 12 func CallerIDFromString(src string) (*CallerID, error) { 13 //TODO: implement complete callerid parser 14 return nil, errors.New("CallerIDFromString not yet implemented") 15 } 16 17 // String returns the stringified callerid 18 func (cid *CallerID) String() string { 19 return cid.Name + "<" + cid.Number + ">" 20 }