exten => 1002,n,Dial(PJSIP/1002)
That line should be:
exten => 1002,1,Dial(PJSIP/1002)
Also, I suspect you are making life more complex / difficult / confusing for
yourself by configuring both chan_sip and chan_pjsip.
chan_sip is deprecated and unmaintained. Stop using it (especially for a
new setup) and use chan_pjsip instead.
Antony.