I am trying to get the phone number customers dialed when calling in. I have tried all of the CALLERID options available but to no avail. Any ides?
I am trying to get the phone number customers dialed when calling in. I have tried all of the CALLERID options available but to no avail. Any ides?
You're looking for the ${DNIS} variable what it contains will depend on what your telecom provider is passing. Either 0,4, or 7 digits.
CallerID is the number that the person is calling FROM, DNIS is the number that the caller CALLED.
This is the NoOp we use to see what the DNIS is, put it into your "landing" for your telecom, open up the asterisk console and see what it comes up with:
exten => _.,1,NoOp("DNID is ${DNID}, DNIS is ${DNIS}, EXTEN is ${EXTEN}, Caller: ${CALLERID(num)}")
Also, check with your telecom provider and make sure they are actually passing the number sorry ... having a brain fart right now forget the exact term.
Have a look at your CDR's. It'll be either dst or a substring of dstcontext if I'm not wrong.