defadd_account_sip(sip:models.CreateSipAccount,account_name:str=Query(...,regex=models.PHONE_REGEX,name='Número',description='Cuenta SIP a recargar'),):
@app.get('/v2/sip/{caller_id}',response_model=models.SipAccount,name="Obtiene una Cuenta SIP",description="Devuelve los datos de conexión de la cuenta.",
tags=["SIP"],status_code=200)
defadd_account_sip(caller_id:str=Query(...,regex=models.PHONE_REGEX,name='Número',description='Cuenta SIP a consultar'),):
@app.post('/v2/sip/{caller_id}/transfer',response_model=models.SipAccount,name="Transfiere la Cuenta",description="Modifica al Propietario de la Cuenta",
tags=["SIP"],status_code=200)
defadd_account_sip(account:models.TransferSip,caller_id:str=Query(...,regex=models.PHONE_REGEX,name='Número',description='Cuenta SIP a consultar')):
tags=["SIP"],status_code=200)
defadd_account_sip(account:models.TransferSip,caller_id:str=Query(...,regex=models.PHONE_REGEX,name='Número',description='Cuenta SIP a consultar')):