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

It's possible in asterisk call and let the callee hear a custom message?
I don't using canreinvite option in asterisk
What Internet Voice Services Can Asterisk be Connected To
Using Nginx with Asterisk ARI
How to disable auto update in FREEPBX
Custom solution to call telehones from within broswers (webRTC <-> telephony link) [closed]
A2billing Readout Balance
How to write VoiceMail dialplans in asterisk
Problems with string pattern matching
asterisk hangup call when hold
Cant place outgoing call en E1
Dial via SIP -> IAX2
asterisk send event to a web app when the phone ring
how to add one SIP Extension by command line in Asterisk
Is there a way to get the ${DEVICE_STATE(SIP/${EXTEN})} output on asterisk AMI before making originate call
How to hang up the calls before calling AGI script?

Categories

HOME
model-view-controller
swift3
intellij-idea
cors
jenkins-pipeline
spotfire
grid
uml-designer
multipartform-data
osx-yosemite
coding-style
vichuploaderbundle
hdf5
browsermob
filehelpers
indri
orange
restructuredtext
prepros
suitescript
rollupjs
windows-mobile
visual-studio-community
orgchart
tftp
scripting-language
checkmarx
meteor-accounts
dynamics-ax-2012-r3
semantic-ui-react
undo
andengine
wordpress-rest-api
spring-oauth2
imdb
webspeech-api
fastadapter
openvms
repeat
blueimp
intervention
inner-join
gridgain
piranha-cms
ng-class
monaca
beanshell
vertex
visualizer
seyren
hellosign
addressbook
salesforce-service-cloud
alchemy
google-finance-api
clear
computability
mojolicious
sdkman
random-sample
dpkt
pagecontrol
sicstus-prolog
veeam
dockerpy
xmla
fiware-health
xcode5
frisby.js
formbuilder
im4java
time-frequency
msdropdown
slimscroll
mixradio
jython-2.5
cocotron
magicsuggest
hypertable
android-memory
django-1.4
nude.js
flexbuilder
sipdroid
jqtransform
moss2007-security
time-management
ihtmldocument2
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