Search code examples
asteriskvoipivr

Unable to get called number in extensions.conf during outgoing


I am applying an auto dial in asterisk using .call file My a.call

Channel: DAHDI/g0/09*********
MaxRetries: 1
RetryTime: 600
WaitTime: 30
Context: outgoing
Extension: 10
Priority: 1

My problem is that i want to retrieve the called number in my extensions.conf file. I am using CALLERID(dnid) but its showing null in my cli means i am unable to get called number.Is there any way to get called number in extensions? Thanks in advance.


Solution

  • Add Setvar: clid=$phone_no in your call file where $phone_no = 09*********, now you can get your clid by calling the variabl ${clid}. If you want to see this variable use NoOp(CALLERID(all)=${clid})