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

can not hear playback sounds ( asterisk )
get the caller number after call is answered
Asterisk automatic incoming call answering
Error Asterisk 12.8 bad magic number
Can not configure adhearsion with asterisk
Asterisk WAN Issues
Unable to establish two way Asterisk call
Asterisk GotoIf comparison variable exists in Array
Call Limit (call-limit) in Asterisk 13 with PJSIP
Asterisk call recording not showing any logs and file
Asterisk 13.7 GROUP_COUNT always returns 1
How to write asterisk application
how to write application to freepbx
Asterisk: format of the lines logged
asterisk PAMI Originate Call issue
Route a provider's numbers to specific extensions

Categories

HOME
google-cloud-pubsub
azure-active-directory
postgresql-9.3
grpc
dronekit
liquibase
virtualhost
dcos
runtime
activejdbc
dynamics-crm-2011
drush
cakephp-2.0
javascript-debugger
opendaylight
sha1
virtuemart
project-reactor
accordion
single-page-application
android-wifi
klipfolio
handle
bootstrap-accordion
workflow-foundation
schedule
lines
akamai
slim-lang
spring-oauth2
jcr
zimbra
outlook-2010
scalamock
mockserver
collation
aspnetboilerplate
php-mongodb
niagara-ax
runtime-permissions
photoshop-script
cc
petapoco
iban
qt3d
directinput
distcc
mac-app-store
alfred
tinybox2
boost-propertytree
camellia
stdlist
ideavim
hana-sql-script
videoview
libgcrypt
php-gd
dnvm
eula
radgrid
veeam
mri
attiny
indices
esri-arc-engine
mind-manager
zoneminder
selenium-grid2
msdropdown
visual-studio-setup-proje
farpoint-spread
google-oauth-java-client
pechkin
usersettings
kademlia
dd4t
proj4
removeall
junction-table
nsautoreleasepool
cloudmade
pymel
moonscript
invalidoperationexception
aspmenu-control
motorola-droid
fileoutputstream
copyfile
virtual-printer
youtube.net-api
jexcelapi
rollover
azure-appfabric
table-valued-parameters
iphone-maps
dongle
qprocess
numerical-computing
appointment
content-delivery-network
unauthorized
jgrowl
software-update
asp.net-1.1
weak-typing
hotfix

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