Page 1 of 1

How to Put caller id in this dialplan

PostPosted: Tue Jun 24, 2014 11:55 am
by rajal
exten => _81XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _81XXXXXXXXXX,2,Dial(SIP/${EXTEN:1}@rashid,,tTo)
exten => _81XXXXXXXXXX,3,Hangup

Re: How to Put caller id in this dialplan

PostPosted: Tue Jun 24, 2014 6:31 pm
by karenjade23
try this....might help

Code: Select all
exten => _81XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _81XXXXXXXXXX,n,Set(CALLERID(number)=callerID#)
exten => _81XXXXXXXXXX,n,Dial(SIP/${EXTEN:1}@rashid,,tTo)
exten => _81XXXXXXXXXX,n,Hangup

Re: How to Put caller id in this dialplan

PostPosted: Wed Jun 25, 2014 1:48 am
by striker
if you are using asterisk version 1.2 then use CALLERID(number)

if you are using asterisk version 1.4 or 1.8 then use CALLERID(num)


exten => _81XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _81XXXXXXXXXX,n,Set(CALLERID(num)=yourcalleridnumber)
exten => _81XXXXXXXXXX,n,Dial(SIP/${EXTEN:1}@rashid,,tTo)
exten => _81XXXXXXXXXX,n,Hangup

Re: How to Put caller id in this dialplan

PostPosted: Wed Jun 25, 2014 12:44 pm
by rajal
it worked thanks