Does anybody know how can I send credentials to a gateway?

For example: I forward a call using forward(uri:host, uri:port);but my gateway needs authentication.

Tks,
D.K.