I think that what you really want is an 'outbound' route with a prefix of +4978455488
Either that or use the script from danielf, matching for +4978455488 rather than just +49
the custom script, from what I can see would match any number that comes from Germany, and peel off the first 10 digits (and the + for 11) -- which I don't think is what you actually want.