asterisk


How to get the phone number(callerID) in asterisk


We've been using VICIDIAL for the past 4 years and we're updating our asterisk now. Can you please assist me on the below query?
Once the call has been reached to our IVR, we need to pass the Mobile number to our script whether it exists in our database or not. If it exists it will go one campaign, else it will go to another campaign. We've created the php script and it's working fine but I'm not sure how to transfer my phone number from asterisk to the php script?
I've pasted the sample script which I'm planning to use. Can you please have a look on this?
exten => s,n,NoOp("Caller ID IS: ${CALLERID(number)}")
exten => s,n,Set(foo=${CURL(http://server.test.com/appln/test.php?data='${CALLERID(number)}')})
Please check this link:
http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/IVR_id246940.html
Following code is working for me:
exten => s,n,NoOp(Caller ID IS: ${CALLERID(num)})
exten => s,n,Set(foo=${CURL(http://server.test.com/appln/test.php?data=${CALLERID(num)})})
exten => s,n,NoOp(${foo})

Related Links

Asterisk Media Bypass
Agent console in freepbx
How to configure asterisk instant messaging to work with linphone?
AsteriskNOW IP PBX behind NAT, clients cannot connect from outside Network
Send DTMF Digit with dialplan
Visual Dialplan : how to play a playback file
Multiple Incomming calls to free agent
Asterisk incoming message gives: 415 unsupported media type
Forwarding X Headers in Asterisk
Asrterisk 13.4.0 RTC issue
Pass DTMF Variable to Channel as Caller Name
How to log data of a call
How to stay in the queue?
Time between next invite in sipp
Asterisk - Dial between two local phones
Vicidial SIP Trunk with Twilio

Categories

HOME
c#
ftp
ns2
fortran
postgresql-9.3
azure-eventhub
intellisense
gap-system
x86-64
django-middleware
redhawksdr
squeak
artifactory
mediarecorder
browser-cache
foreach
gnuradio
ndepend
unreal-engine4
jinja2
aggregate
web-testing
pylint
xforms
jq
webgl-earth
gomobile
infinite-loop
email-client
libxml2
resx
sphinx4
foxpro
log4net-configuration
apache-falcon
minitest
hippocms
libconfig
susy
file-descriptor
collation
directadmin
uitextview
risc
px4
sharpdevelop
bioperl
playframework-2.3
critical-section
robotc
cardview
copy-constructor
easy68k
init
change-password
db2-zos
weblogic-maven-plugin
kik
user-profile
boost-propertytree
treelist
factorization
cascading
nonblocking
computability
windows-kernel
sparkcore
genome
jeet-grid
pymol
cl.exe
douglas-peucker
aiff
unityvs
breeze-sharp
zoneminder
powershell-v1.0
serializer
visual-c#-express-2010
xpand
object-oriented-database
windows-phone-store
mdp
jfilechooser
dylan
google-checkout
wordbreaker
pudb
magicsuggest
spawn
cron4j
configurationsection
systrace
nsscrollview
moss2007-security
lgpl
virtual-destructor
text-manipulation
table-valued-parameters
for-xml
newspeak
large-data-volumes
helios
opengl-to-opengles

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App