DUNDi help requested

OK ... I have 5 PBXs connected via DUNDi ... (sanitzied configs below)

I'm not having a problem making successful calls ... the problem is when it's not a valid extension "0000" or it's an external PSTN number (eg my cellphone) that is dialed ... in either case, asterisk doesn't want to give up using DUNDi, and keeps looping ... I'd like an invalid extension to result in "invalid number" and PSTN numbers to drop through to our primary SIP provider ... 

      • iax_custom.conf
        [DUNDI_IAX]
        type=friend
        dbsecret=dundi/secret
        context=dundi-in
        qualify=yes
        trunk=yes
        requirecalltoken=no
      • dundi.conf
        [general]
        department=pbx1
        organization=Company Name
        locality=City
        stateprov=State
        country=US
        [email protected]
        phone=+123456789
        entityid=08:60:6e:45:54:c4
        cachetime=5
        ttl=2
        autokill=yes
        [mappings]
        dundi-map => dundi-did,0,IAX2,DUNDI_IAX:${SECRET}@pbx1.domain.com/${NUMBER},nopartial
        dundi-map => dundi-ext,100,IAX2,DUNDI_IAX:${SECRET}@pbx1.domain.com/${NUMBER} ,nopartial

        [30:85:a9:a7:de:f3]
        model=symmetric
        host=pbx2.domain.com
        auth=rsa
        inkey=dundi
        outkey=dundi
        include=all
        permit=all
        qualify=yes
        order=primary
      • extenstions_custom.conf
        [dundi-in]
        include => dundi-did
        include => dundi-ext

        [dundi-did]
        include => ext-did

        [dundi-ext]
        include => ext-local
      • FreePBX Trunk
        TrunkName:Intraoffice
        DUNDi Mapping: dundi-map