-
Notifications
You must be signed in to change notification settings - Fork 30
Add 10DLC TCR status callbacks #760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for signalwire-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Updated based on notes from Eng (thanks @cassieemb) Event CategoriesEVENT_CATEGORIES = [
CAMPAIGN_EVENT = "campaign",
BRAND_EVENT = "brand",
NUMBER_ASSIGNMENT_EVENT = "number_assignment",
NUMBER_ASSIGNMENT_ORDER_EVENT = "number_assignment_order",
]Campaign Events
CAMPAIGN_EVENT_TYPES = [
CAMPAIGN_ACTIVATED = "campaign_activated",
CAMPAIGN_DEACTIVATED = "campaign_deactivated",
CAMPAIGN_MESSAGING_PROVIDER_MIGRATED = "messaging_provider_migrated",
]Campaign Activated (pending → active){
:project_id=>"014f540d-d524-4739-b7ad-35af0372b7f3",
:event_at=>"2024-06-27T19:11:25Z",
:event_category=>"campaign",
:event_type=>"campaign_activated",
:brand_id=>"cf2b56f7-b143-4ad5-b80c-152e6779b981",
:campaign_id=>"224ac3bb-9173-43c8-8cee-873c35cf9701",
:state=>"active"
}Campaign Deactivated (active → inactive){
:project_id=>"014f540d-d524-4739-b7ad-35af0372b7f3",
:event_at=>"2024-06-27T19:11:25Z",
:event_category=>"campaign",
:event_type=>"campaign_deactivated",
:brand_id=>"cf2b56f7-b143-4ad5-b80c-152e6779b981",
:campaign_id=>"224ac3bb-9273-43c8-8cee-873c35cf9701",
:state=>"inactive"
}Brand EventsThere are two brand event types: BRAND_EVENT_TYPES = [
BRAND_ACTIVATED = "brand_activated",
BRAND_UNVERIFIED = "brand_unverified",
]Brand ActivatedRepresents a transition from pending → active or unverified → active. {
:project_id=>"014f540d-d524-4739-b7ad-35af0372b7f3",
:event_at=>"2024-06-27T19:09:40Z",
:event_category=>"brand",
:event_type=>"brand_activated",
:brand_id=>"cf2b56f7-b143-4ad5-b80c-152e6779b981",
:state=>"completed"
}Brand UnverifiedRepresents a transition from pending → unverified. {
:project_id=>"014f540d-d524-4739-b7ad-35af0372b7f3",
:event_at=>"2024-06-27T19:09:40Z",
:event_category=>"brand",
:event_type=>"brand_unverified",
:brand_id=>"cf2b56f7-b143-4ad5-b80c-152e6779b981",
:state=>"unverified"
}Number Assignment Order EventsThere is one number assignment order event. Number Assignment Order ProcessedOccurs only after all assignments in the order have been processed (either completed or failed). {
:project_id=>"014f540d-d524-4739-b7ad-35af0372b7f3",
:event_at=>"2024-06-27T19:11:49Z",
:event_category=>"number_assignment_order",
:event_type=>"number_assignment_order_processed",
:brand_id=>"cf2b56f7-b143-4ad5-b80c-152e6779b981",
:campaign_id=>"224ac3bb-9173-43c8-8cee-873c35cf9701",
:number_assignment_order_id=>"a4894c34-eace-4561-9a2d-2f2c2bf7856c",
:state=>"processed"
}Number Assignment EventsThere are four number assignment event types, but NUMBER_ASSIGNMENT_EVENT_TYPES = [
ASSIGNMENT_PENDING = "number_assignment_pending",
ASSIGNMENT_FAILED = "number_assignment_failed",
ASSIGNMENT_ACTIVATED = "number_assignment_activated",
ASSIGNMENT_MESSAGING_PROVIDER_MIGRATED = "messaging_provider_migrated",
]Number Assignment PendingOnly occurs when a failed assignment is changed back to pending due to internal resubmission. {
:project_id=>"014f540d-d524-4739-b7ad-35af0372b7f3",
:event_at=>"2024-06-27T19:11:49Z",
:event_category=>"number_assignment",
:event_type=>"number_assignment_pending",
:brand_id=>"cf2b56f7-b143-4ad5-b80c-152e6779b981",
:campaign_id=>"224ac3bb-9173-43c8-8cee-873c35cf9701",
:number_assignment_order_id=>"a4894c34-eace-4561-9a2d-2f2c2bf7856c",
:number_assignment_id=>"0fc3189d-2008-472f-af7e-1bdc316d718a",
:phone_number_id=>"cfa3a91e-a584-42ca-b0b5-612a971e873d",
:phone_number=>"+15550101234",
:state=>"pending"
}Number Assignment Failed (pending → failed){
:project_id=>"014f540d-d524-4739-b7ad-35af0372b7f3",
:event_at=>"2024-06-27T19:11:49Z",
:event_category=>"number_assignment",
:event_type=>"number_assignment_failed",
:brand_id=>"cf2b56f7-b143-4ad5-b80c-152e6779b981",
:campaign_id=>"224ac3bb-9173-43c8-8cee-873c35cf9701",
:number_assignment_order_id=>"a4894c34-eace-4561-9a2d-2f2c2bf7856c",
:number_assignment_id=>"0fc3189d-2008-472f-af7e-1bdc316d718a",
:phone_number_id=>"cfa3a91e-a584-42ca-b0b5-612a971e873d",
:phone_number=>"+15550101234",
:state=>"failed"
}Number Assignment Activated (pending → active){
:project_id=>"014f540d-d524-4739-b7ad-35af0372b7f3",
:event_at=>"2024-06-27T19:11:49Z",
:event_category=>"number_assignment",
:event_type=>"number_assignment_activated",
:brand_id=>"cf2b56f7-b143-4ad5-b80c-152e6779b981",
:campaign_id=>"224ac3bb-9173-43c8-8cee-873c35cf9701",
:number_assignment_order_id=>"a4894c34-eace-4561-9a2d-2f2c2bf7856c",
:number_assignment_id=>"0fc3189d-2008-472f-af7e-1bdc316d718a",
:phone_number_id=>"cfa3a91e-a584-42ca-b0b5-612a971e873d",
:phone_number=>"+15550101234",
:state=>"completed"
}Notes
|
...in/home/platform/phone-numbers/guides/signalwire-status-callbacks/voice-status-callbacks.mdx
Outdated
Show resolved
Hide resolved
website/docs/main/home/platform/phone-numbers/guides/signalwire-status-callbacks/index.mdx
Outdated
Show resolved
Hide resolved
...platform/phone-numbers/guides/signalwire-status-callbacks/inbound-calls-status-callbacks.mdx
Outdated
Show resolved
Hide resolved
...platform/phone-numbers/guides/signalwire-status-callbacks/inbound-calls-status-callbacks.mdx
Outdated
Show resolved
Hide resolved
…e-status-callbacks/voice-status-callbacks.mdx
…e-status-callbacks/index.mdx
…e-status-callbacks/inbound-calls-status-callbacks.mdx
…e-status-callbacks/inbound-calls-status-callbacks.mdx
Co-authored-by: August <112662403+hey-august@users.noreply.github.com>

Documentation Update Pull Request
Description
Added 10DLC/TCR webhook description as per https://github.com/signalwire/cloud-product/issues/12594
Type of Change
Documentation Change Details
Checklist: