Routing to internal extensions

I have a dialplan entry that needs to send the call to internal extension 1234, here is how it looks

exten => 1230,n,Dial(SIP/1234)

When this happens call never connects and I get “Purely numeric hostname (1234), and not a peer–rejecting!”

exten => 1234,1,Answer()
exten => 1234,n,Record(asr/mymessage.wav,1,4,nobeep)
exten => 1234,n,Playback(asr/mymessage)
exten => 1234,n,Hangup()

Seems like asterisk expects this extension to be registred user extension, but it is system extension.
I am sure I am just missing something due to lack of sleep.

Dial(SIP/1234) means “Dial 1234 using SIP”. If there is no peer then it would try to turn it into a hostname/IP address and dial.

You probably want to use Goto instead. Goto(1234) for example.

Goto(1234,1) worked, thank you