Long distance call how to?

Sir,

We have configured asterisk in debian and ubandu. and able to call in between in local lan. How can this used to call long distance? does this handle proxy also.?