Here ia s config from Cisco.com, YOu did not post your whole config. Next time post it all.
maui-soho-01#show running-config
Building configuration...
Current configuration : 1687 bytes
!
version 12.1
no service single-slot-reload-enable
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname maui-soho-01
!
logging rate-limit console 10 except errors
aaa new-model
aaa authentication login default local
aaa authentication login NO_AUTHEN none
aaa authentication ppp default local
!--- Basic AAA configuration for ppp calls.
enable secret 5 <deleted>
!
username maui-nas-05 password 0 cisco
!--- Username for remote router (maui-nas-05) and shared secret(used for
!--- CHAP authentication).
!--- Shared secret must be the same on both sides.
ip subnet-zero
no ip finger
!
isdn switch-type basic-ni
!
interface Loopback0
ip address 172.17.1.1 255.255.255.0
!--- The loopback address will be used by OSPF for the router ID.
!
interface Ethernet0
ip address 172.16.1.1 255.255.255.0
!
interface Serial0
!--- Primary Interface
backup delay 10 30
!--- Backup link will be activated 10 seconds after primary link goes down.
!--- Backup link will be deactivated 30 seconds after primary link is restored.
backup interface Dialer1
!--- Interface Dialer 1 will provide backup. Dialer 1 will be placed in Standby
!--- until the primary link goes down.
ip address 192.168.10.2 255.255.255.252
encapsulation ppp
no fair-queue
clockrate 64000
ppp authentication chap
!
interface BRI0
no ip address
encapsulation ppp
dialer pool-member 10
!--- Assign BRI0 as member of dialer pool 10.
!--- Dialer pool 10 is specified in interface Dialer 1.
isdn switch-type basic-ni
isdn spid1 51255511110101 5551111
isdn spid2 51255511120101 5551112
ppp authentication chap
!--- Use PPP CHAP authentication.
ppp multilink
!
interface Dialer1
!--- Dialer 1 provides backup for the serial link.
!--- This interface will be in standby until the primary link is down.
ip address 172.20.10.2 255.255.255.0
!--- Address for the dialer interface.
!--- The remote side dialer interface is in the same subnet.
encapsulation ppp
dialer pool 10
!--- Defines Dialer pool 10.
!--- BRI 0 is a member of this pool.
dialer remote-name maui-nas-05
!--- Specifies remote router name.
!--- This name must match that used by the remote router to authenticate itself.
dialer idle-timeout 900
!--- Idle timeout is set to 900 seconds (15 minutes).
!--- The link will be disconnected if there is no interesting traffic for 900 secs.
!--- Since OSPF hellos are interesting traffic, this will reset the idle timeout
!--- and cause the link to stay up until the primary link is restored and the dialer
!--- returns to standby mode.
dialer string 5552222
!--- Defines the destination routers phone number.
dialer load-threshold 80 outbound
!--- This sets the outbound load level for traffic at which
!--- additional connections will be added to the MP bundle load level.
!--- Values range from 1 (unloaded) to 255 (fully loaded). The threshold
!--- in this case is 80/255=32%.
dialer-group 1
!--- Apply interesting traffic definition from dialer-list 1.
ppp authentication chap
!--- Use PPP CHAP authentication.
ppp multilink
!
router ospf 5
!--- OSPF configuration. You can use any routing protocol here without any other
!--- changes to the configuration.
log-adjacency-changes
network 172.16.1.0 0.0.0.255 area 0
network 172.17.1.0 0.0.0.255 area 0
network 172.20.10.0 0.0.0.255 area 0
network 192.168.10.0 0.0.0.3 area 0
!
ip classless
no ip http server
!
dialer-list 1 protocol ip permit
!--- All IP traffic is designated as interesting.
!--- This is applied to Interface Dialer 1 using dialer-group 1.
!--- OSPF hello packets will trigger the dial.
!
line con 0
exec-timeout 0 0
login authentication NO_AUTHEN
transport input none
line vty 0 4
!
end