Unrecognized prilocaldialplan TON modifier: D – Asterisk issue

Problem:  Unrecognized prilocaldialplan TON modifier: D

Solution: Set caller id into dialplan.

Dialplan Example:

exten => _55550XXXXXXXXXX,1,set(CALLERID(num)=4425100)
exten => _55550XXXXXXXXXX,n,Set(currenttime=${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)})
exten => _55550XXXXXXXXXX,n,Set(CALLFILENAME=${CHANNEL}-${CDR(accountcode)}-${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => _55550XXXXXXXXXX,n,MixMonitor(${CALLFILENAME}.wav)
exten => _55550XXXXXXXXXX,n,Dial(DAHDI/g0/0${EXTEN:5},,Ttg)
exten => _55550XXXXXXXXXX,n,NoOp( Dial Status: ${DIALSTATUS})
exten => _55550XXXXXXXXXX,n,Hungup()

Related Posts

  • 33
    We often require to do string manipulation on a variable. For example, a variable named phonenumber which represents a number we'd like to call, and we want to strip off the first 5 digit before dialing the number. Asterisk provides a special syntax for doing just that, which looks like ${variable[:skip[:length]} The…
    Tags: asterisk, $, example, dialplan

Satya Prakash

VOIP Expert: More than 8 years of experience in Asterisk Development and Call Center operation Management. Unique Combination of Skill Set as IT, Analytics and operation management.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: