Customizing caller id

hi.

i know that this was discussed before and i heave searched an red all the forums and tutorials about this issue but could not figure it out.

the thing is that my voip provider sends the caller-id without the leading characters meaning without 0 for the local numbers so let’s say the number is 0722 xxx xxx it comes as 722 xxx xxx and for the international +353 xx xxx xxx becomes 353 xx xxx xxx. for the incoming on the locals i found a way and added that leading 0 but for the international i can’t quite get it.

now the second one i have an extension which forwards the calls to my mobile but because of this CID not coming correctly i get on my mobile + 722 xxx xxx instead of +40 722 xxx xxx.

i am using asterisk 1.8 and freepbx 2.11