Dial external number and PIN code

I want to connect to asterisk via port 5038, dial an external number via a SIP connection, and then dial a PIN code that the answering system requires.

So far, I have the connection via port 5038 working and I am able to dial out to the external number without issue. What I am not sure of, is how to proceed in having it also dial the PIN code that I need dialed.

Any assistance with this or pointing me to some documentation would be great.

Thanks,
Adam

Try using the senddtmf command: voip-info.org/wiki-Asterisk+cmd+SendDTMF