MT#7377 API: check for pilot primary_number.

Before adding pbx_extension, check if pilot has a primary number.