outgoing CID

I’ve got a problem with sipstation/ SIP provider and Asterisk 1.8.

Sipstation requires you to set your own outbound CID for calls; but when I make calls to the PTSN, my handset name shows up as the CID, not my phone number.

This is what I have in extension.conf:


exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@sipstation)
include => outside

exten => _1NXXNXXXXXX,1,Set(CALLERID(num)=1310xxxxxxx)
exten => _1NXXNXXXXXX,n,Dial(SIP/${EXTEN}@sipstation)

exten => 310xxxxxxx,1,Goto(mainmenu,0,1)

Am I formatting the CALLERID function wrong?

Solved the issue:

Outbound phone calls were not getting to my “outside” context that had the CALLERID function, instead outbound calls got picked up by the first “exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@sipstation)” .

Deleting that extension in the “inside” context fixed it.