Add OnRegisterStateChange callback for SIP registration lifecycle#123
Add OnRegisterStateChange callback for SIP registration lifecycle#123kjagosz wants to merge 1 commit intoemiago:mainfrom
OnRegisterStateChange callback for SIP registration lifecycle#123Conversation
|
Hi @kjagosz . I really liked Idea, and I was actually avoiding this initially. You can see So the one thing I think we need to look this react on event change. I think you could have function that returns error as all other calbacks we mostly do. |
|
I've made it because i have app what making call's via Rest API and there is no method to get registration status so i decided to create callback |
|
ok, but I think I need to make this more usable. Still I may see first simplifies headache. I may propose better solution if you do not mind. What was reason consuming error? It mostly stops registration except for some responses? |
This change introduces a new optional callback: OnRegisterStateChange.
The callback allows callers to observe SIP registration state transitions
during the Register transaction lifecycle.
What’s included:
truewhen registration succeedsfalsewhen registration failsThis makes it easier to track registration status, react to failures,
and integrate external state handling without polling or custom hacks.