fix: number pool initialization in multi telephony setup

If there are multiple telephony configurations, the form number should be initialized from the campaigns given telephonic configuration rather than the organization default telephonic configuration.
This commit is contained in:
Abhishek Kumar 2026-05-08 14:48:53 +05:30
parent 81a363b06e
commit 6d93be3ef6
31 changed files with 1105 additions and 238 deletions

View file

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# filename: dograh-openapi-XXXXXX.json.x7226hNjaY
# timestamp: 2026-05-07T08:13:29+00:00
# filename: dograh-openapi-XXXXXX.json.k2orBArfVN
# timestamp: 2026-05-08T08:26:28+00:00
from __future__ import annotations
@ -111,6 +111,9 @@ class InitiateCallRequest(BaseModel):
telephony_configuration_id: Annotated[
int | None, Field(title='Telephony Configuration Id')
] = None
from_phone_number_id: Annotated[int | None, Field(title='From Phone Number Id')] = (
None
)
class NodeCategory(Enum):