got another problem
i would like to call an agi script when a call is comming in, not when it
is ansered or hung up on.
background: when my phone is in one room, i am in another and
the doors are closed, then i can not hear the phone.
i have set up an agi script to display a message on my TV screen (digital vid)
when someone is calling.
the problem ist, that the agi script is being called after the person has
hung up or the call has been answered. that is too late tough
has anyone got an idea what i need to use, to make the script get called
as soon as the callerID is known ?
this is what i got:
exten => 12345,1,agi,incommingCalls.agi ;show a line on the vdr to show that someone is calling
exten => 12345,2,WaitExten(15)
exten => 12345,3,Answer()
exten => 12345,4,Playback(vm-MartinDefaultVoicemail)
exten => 12345,5,VoiceMail(s12345)
exten => 12345,6,Hangup()
(have swapped my num with 12345)[/quote]
this i would expect to call the script as soon as the call is signalled, then
wait for 15s and then let the voicemail take over. it does not though.
i have also tried other commands like ringing, but no go.
there must be a way, because if i use “asterisk -cvvvv”, then
a message about an incomming call is shown, before the phone rings.
anyone got an idea ?