post_type_link Filter – Too Few Arguments

I think you just have to do :

add_filter( 'post_type_link', 'phone_custom_permalink', 10, 2 );

To tell the hook that you are passing it 2 arguments.