[asterisk-users] asterisk and IVR

A J Stiles asterisk_list at earthshod.co.uk
Thu Jul 25 10:10:47 CDT 2013


On Thursday 25 July 2013, Salaheddine Elharit wrote:
> i have asterisk 1.4 installed and i configure an IVR like below
> .....  stuff deleted .....
> when i call the number 529 i can get the home and when i press 1 i get the
> call  when there is no response from my sip/228 i can store the date and
> time in my database
> 
> but when i handel the call from my sip i can't store the data in my table
> 
> calldate                         callerid                          ext
> 2013-07-25 14:09:20 0661xxxxxx     No response
> 
> my question how can i do in order to store the data in my database with the
> ext = response or no response

You need to do this from an extension called "h"  (which gets run when a call 
is hung up),  in the same context where the call was placed.  You can look at 
the variables ${DIALSTATUS} and ${HANGUPCAUSE} to see how the call went.

-- 
AJS

Answers come *after* questions.



More information about the asterisk-users mailing list