SIP: Implement GetSIPTrunkAuthentication. (#2244)

This commit is contained in:
Denys Smirnov
2023-11-15 15:29:36 -05:00
committed by GitHub
parent c6e467e903
commit 7bcd6d4df0
3 changed files with 20 additions and 17 deletions
+1 -5
View File
@@ -113,11 +113,7 @@ func TestSIPMatchTrunk(t *testing.T) {
for _, c := range cases {
c := c
t.Run(c.name, func(t *testing.T) {
req := &rpc.EvaluateSIPDispatchRulesRequest{
CallingNumber: sipNumber1,
CalledNumber: sipNumber2,
}
got, err := sipMatchTrunk(c.trunks, req)
got, err := sipMatchTrunk(c.trunks, sipNumber1, sipNumber2)
if c.expErr {
require.Error(t, err)
require.Nil(t, got)