@@ -286,12 +286,14 @@ func listSipInboundTrunk(ctx context.Context, cmd *cli.Command) error {
286286 "SipTrunkID" , "Name" , "Numbers" ,
287287 "AllowedAddresses" , "AllowedNumbers" ,
288288 "Authentication" ,
289+ "Headers" ,
289290 "Metadata" ,
290291 }, func (item * livekit.SIPInboundTrunkInfo ) []string {
291292 return []string {
292293 item .SipTrunkId , item .Name , strings .Join (item .Numbers , "," ),
293294 strings .Join (item .AllowedAddresses , "," ), strings .Join (item .AllowedNumbers , "," ),
294295 userPass (item .AuthUsername , item .AuthPassword != "" ),
296+ fmt .Sprintf ("%v, %v" , item .Headers , item .HeadersToAttributes ),
295297 item .Metadata ,
296298 }
297299 })
@@ -307,13 +309,15 @@ func listSipOutboundTrunk(ctx context.Context, cmd *cli.Command) error {
307309 "Address" , "Transport" ,
308310 "Numbers" ,
309311 "Authentication" ,
312+ "Headers" ,
310313 "Metadata" ,
311314 }, func (item * livekit.SIPOutboundTrunkInfo ) []string {
312315 return []string {
313316 item .SipTrunkId , item .Name ,
314317 item .Address , strings .TrimPrefix (item .Transport .String (), "SIP_TRANSPORT_" ),
315318 strings .Join (item .Numbers , "," ),
316319 userPass (item .AuthUsername , item .AuthPassword != "" ),
320+ fmt .Sprintf ("%v, %v" , item .Headers , item .HeadersToAttributes ),
317321 item .Metadata ,
318322 }
319323 })
@@ -385,7 +389,8 @@ func listSipDispatchRule(ctx context.Context, cmd *cli.Command) error {
385389 return err
386390 }
387391 return listAndPrint (ctx , cmd , cli .ListSIPDispatchRule , & livekit.ListSIPDispatchRuleRequest {}, []string {
388- "SipDispatchRuleID" , "Name" , "SipTrunks" , "Type" , "RoomName" , "Pin" , "HidePhone" , "Metadata" ,
392+ "SipDispatchRuleID" , "Name" , "SipTrunks" , "Type" , "RoomName" , "Pin" , "HidePhone" ,
393+ "Attributes" , "Metadata" ,
389394 }, func (item * livekit.SIPDispatchRuleInfo ) []string {
390395 var room , typ , pin string
391396 switch r := item .GetRule ().GetRule ().(type ) {
@@ -409,7 +414,10 @@ func listSipDispatchRule(ctx context.Context, cmd *cli.Command) error {
409414 if trunks == "" {
410415 trunks = "<any>"
411416 }
412- return []string {item .SipDispatchRuleId , item .Name , trunks , typ , room , pin , strconv .FormatBool (item .HidePhoneNumber ), item .Metadata }
417+ return []string {
418+ item .SipDispatchRuleId , item .Name , trunks , typ , room , pin , strconv .FormatBool (item .HidePhoneNumber ),
419+ fmt .Sprintf ("%v" , item .Attributes ), item .Metadata ,
420+ }
413421 })
414422}
415423
0 commit comments