Provided your device supports EEM and has "logging event link-status" configured globally or on the dialer interface, you can set up an EEM applet along the lines of:
...
event syslog pattern "Interface Dialer1, changed state to up"
...
action 1.1 cli command "enable"
action 1.2 cli command "ping xx.xx.xx.xx"
...