How can I change phone field mask? International numbers are being trim()

I am using the api to insert my contact numbers that come in the format
+52 (81)-81-51-7000
where +52 country code
(81) is our state code and then the rest of the number

seems like the default phone field trys to get

(528)181570

cutting the number and doing a masking as if the number where a US number

any way around this? all my customers are from mexico not from US

thanks in advance
Guillermo Dewey