Add new span parameter to zapcard, removing the need for offset calculations #1

Merged
laforge merged 1 commits from Manawyrm/yate:manawyrm-span-calculations into master 2022-10-30 12:52:22 +00:00

1 Commits

Author SHA1 Message Date
Manawyrm 8c8078ca41 Add new span parameter to zapcard, removing the need for offset calculations
DAHDI has nice readable names for each span, there's no need to do any channel
calculations by hand. This change searches for a span with the specified name
and will use it's offset as the channel offset.

[octoi]
type=E1
offset=279

[auerswald]
type=E1
offset=31

becomes:

[octoi]
type=E1
span=trunkdev/octoi/0

[auerswald]
type=E1
span=TE8/0/2

which should be more reliable and less error-prone in the long run.
2022-10-26 16:26:07 +00:00