the behaviour of the dog is just a print out of the relationship, every bad mannered pup outside will come when called inside because normally there is something in it for the mutt,
somewhere in your relationship with the dog there's a kink in the works, could be confrontation in the past, or interactions with the pup are just not generating any interest for him,
whatever it is you need more positive interaction, play is ideal in bridging problems relationships, have the pup coming into your space more , handfeed the pup im not talking about treats here , make him work for his dinner make