You must to put the dialplan in the context assign it to your device. The most common context is from-internal