[Asterisk-Users] Call script after hangup
Frank N.
fnadeau at electrosolutions.ca
Thu Sep 4 07:29:29 MST 2003
Thomas,
your suggestion does work better.
However, I doesn't solve my problem. Here is callscript.pl:
#!/usr/bin/perl
print "waiting...\n";
sleep 5;
`cp /usr/src/asterisk/sample.call /var/spool/asterisk/outgoing`;
print "call created\n";
The problem is the incoming and outgoing calls are made on the same channel (Zap/1).
I believe the porblem is that, since the incoming call is not "closed" before the outgoing call is created, the outgoing call does not work.
I was hoping the delay would solve this problem... but obviously it doesn't.
Do you have any suggestions?
Thank you.
-----Original Message-----
From: Thomas Haeger [mailto:thomas.haeger at beronet.com]
Sent: 4 septembre, 2003 09:42
To: asterisk-users at lists.digium.com
Subject: AW: [Asterisk-Users] Call script after hangup
Hi Frank,
why you so complicated ?
Try following:
[incoming]
exten => s,1,Playback,welcome
exten => s,2,Record,msgfile:gsm
exten => h,1,System(/home/frank/callscript.pl)
as sample ... :-)
Regards,
Thomas.
-----Ursprüngliche Nachricht-----
Von: asterisk-users-admin at lists.digium.com [mailto:asterisk-users-admin at lists.digium.com]Im Auftrag von Frank N.
Gesendet: Donnerstag, 4. September 2003 14:54
An: asterisk-users at lists.digium.com
Betreff: [Asterisk-Users] Call script after hangup
Beginner: How can a script be called after a calling user hangup?
What's wrong with this:
[incoming]
exten => s,1,Playback,welcome
exten => s,2,Record,msgfile:gsm
exten => h,1,Goto(callscript,1,1)
[callscript]
exten => 1,1,Wait,5
exten => 1,2,System("SomeScript")
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030904/1dd352ab/attachment.htm
More information about the asterisk-users
mailing list