-
Notifications
You must be signed in to change notification settings - Fork 254
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
asterisk: (re)start asterisk in init script if pppoe-wan up after xDSL break #681
Comments
Can you make this work and send a pull request? |
I am not so good in this. |
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
#701 was the PR that tried to fix this. |
As mentioned in the PR, you can use hotplug events by setting up a file like /etc/hotplug.d/iface/99-asterisk and execute any command you want. I don't have a DSL connection to test, but something like this should work.
|
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
@micmac1
Seems to work as I want. |
Seems to work as I want.
The next thing is, how can I signalize if Asterisk has no registrations because of other issues?
Maybe a cron job that checks periodically and then acts accordingly. Asterisk users mailing list is maybe a better place for your question.
|
@dhewg Do you wanna try out my hotplug script? Or add that LED control in your init script? |
I'm still using my init script patch myself. I don't have a use for led control myself, but I think you can control the led state like you are with the standard OpenWrt led options? netdev state wan up something something? |
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
If set this now automatically re-registers all outbound registrations when the interface is becoming available. This ensures that no stale IPs are registered at the SIP trunk. Fixes openwrt#681 Signed-off-by: Andre Heider <[email protected]>
Maintainer: @jslachta
Description:
I have seen in
/etc/init.d/adblock https://github.com/openwrt/packages/blob/19fcff09107ab9b03331e433a1750c826c3747dd/net/adblock/files/adblock.init#L348-L371
you can use
procd_add_interface_trigger
to restart the service by status of network interfaces.Works for me with
in /etc/config/adblock
Would be nice to have that in /etc/init.d/asterisk and /etc/config/asterisk too.
That makes sure asterisk pjsip registrations are up to date and don´t use old IP number.
Otherwise it waits until pjsip expiration value is over.
The text was updated successfully, but these errors were encountered: