feat: add amd callback

This commit is contained in:
Sabiha Khan 2026-03-03 20:12:04 +05:30
parent aed5a782fb
commit fb08f56524
11 changed files with 308 additions and 137 deletions

View file

@ -352,3 +352,17 @@ class TelephonyProvider(ABC):
True if provider supports call transfers, False otherwise
"""
pass
@abstractmethod
async def hang_up(self, call_id: str, **kwargs: Any) -> Dict[str, Any]:
"""
Terminate an active call.
Args:
call_id: Provider-specific call identifier
**kwargs: Provider-specific additional parameters
Returns:
Dict containing hangup response (format varies by provider)
"""
pass