Main loop: how to schedule UPDATE/REINVITE on IP address change detected?

AA
Anthony Alba
Wed, Sep 27, 2017 12:42 AM

In the sample app pjsua legacy main loop, we have 300s reregistration
timer. The contact address may change

"IP address change detected for account..."

I would like to then send a REINVITE / UPDATE if in call; how do you
hook into the rereg timer:

something like:

rereg timer:
| regc_cb()
|-- acc_check_nat_addr()
Ooops: IP address has change
--- for all ongoing calls schedule a UPDATE or REINVITE --- HOW?

Is there a way took hook into this look?

Thanks
Anthony

In the sample app pjsua legacy main loop, we have 300s reregistration timer. The contact address may change "IP address change detected for account..." I would like to then send a REINVITE / UPDATE if in call; how do you hook into the rereg timer: something like: rereg timer: | regc_cb() |-- acc_check_nat_addr() Ooops: IP address has change --- for all ongoing calls schedule a UPDATE or REINVITE --- HOW? Is there a way took hook into this look? Thanks Anthony