Hallo Leute,
folgendes:
Wenn ich ein VOIP Gespräch führe, soll vor und nach dem Gespräche jeweils ein Script ausgeführt werden.
Dieses Script startet/stoppt per ssh auf einen anderen Rechner ein Bandbreitenbeschränkungstool. Dies dient dazu, dass genügend Upload für das Gespräch zur Verfügung steht. Das mit QOS funzt wirklich nicht gut!!!
Dafür wird diese Lösung 1a funktionieren ;-)
Was schon funktioniert:
Beide Scripte gehen bei manueller Ausführung.
Das Startscript wird einwandfrei ausgeführt.
Was nicht geht:
Das Endescript wird nicht ausgeführt.
So hab ichs in die extensions.conf eingefügt:
[webde_out]
exten => _0.,1,System(/opt/etc/asterisk/start_netlimiter.sh)
exten => _0.,2,Dial(SIP/${EXTEN}@webde,60,trg)
exten => _0.,3,Congestion
exten => _0.,4,Busy
exten => _0.,5,Hangup
exten => _0.,6,System(/opt/etc/asterisk/stop_netlimiter.sh)
Hier der Log:
Was läuft hier falsch?
MFG SkiRitchy
folgendes:
Wenn ich ein VOIP Gespräch führe, soll vor und nach dem Gespräche jeweils ein Script ausgeführt werden.
Dieses Script startet/stoppt per ssh auf einen anderen Rechner ein Bandbreitenbeschränkungstool. Dies dient dazu, dass genügend Upload für das Gespräch zur Verfügung steht. Das mit QOS funzt wirklich nicht gut!!!
Dafür wird diese Lösung 1a funktionieren ;-)
Was schon funktioniert:
Beide Scripte gehen bei manueller Ausführung.
Das Startscript wird einwandfrei ausgeführt.
Was nicht geht:
Das Endescript wird nicht ausgeführt.
So hab ichs in die extensions.conf eingefügt:
[webde_out]
exten => _0.,1,System(/opt/etc/asterisk/start_netlimiter.sh)
exten => _0.,2,Dial(SIP/${EXTEN}@webde,60,trg)
exten => _0.,3,Congestion
exten => _0.,4,Busy
exten => _0.,5,Hangup
exten => _0.,6,System(/opt/etc/asterisk/stop_netlimiter.sh)
Hier der Log:
Code:
*CLI> -- creating pipe for PLCI=0x101 msn = *
-- Executing DISA("CAPI[contr1/21]/0", "no-password|ausgehend") in new stack
-- CAPI Answering for MSN 21
-- started pbx on channel (callgroup=0)!
Mar 3 08:53:38 WARNING[4720]: cdr.c:286 ast_cdr_init: CDR already initialized on 'CAPI[contr1/21]/0'
-- Executing System("CAPI[contr1/21]/0", "/opt/etc/asterisk/start_netlimiter.sh") in new stack
****USAGE WARNING****
This is a private computer system. This computer system, including all
related equipment, networks, and network devices (specifically including
Internet access) are provided only for authorized use. This computer system
may be monitored for all lawful purposes, including to ensure that its use
is authorized, for management of the system, to facilitate protection against
unauthorized access, and to verify security procedures, survivability, and
operational security. Monitoring includes active attacks by authorized entities
to test or verify the security of this system. During monitoring, information
may be examined, recorded, copied and used for authorized purposes. All
information, including personal information, placed or sent over this system
may be monitored.
Use of this computer system, authorized or unauthorized, constitutes consent
to monitoring of this system. Unauthorized use may subject you to criminal
prosecution. Evidence of unauthorized use collected during monitoring may be
used for administrative, criminal, or other adverse action. Use of this system
constitutes consent to monitoring for these purposes.
Could not chdir to home directory /home/sshuser: No such file or directory
NetLimiter wird gestartet.
NetLimiter wurde erfolgreich gestartet.
-- Executing Dial("CAPI[contr1/21]/9", "SIP/097****@webde|60|trg") in new stack
-- Called 0971*****@webde
-- SIP/webde-4413 is making progress passing it to CAPI[contr1/21]/9
-- creating pipe for PLCI=0x201 msn = *
== Starting CAPI[contr1/20]/10 at isdn_in,20,1 failed so falling back to exten 's'
== Starting CAPI[contr1/20]/10 at isdn_in,s,1 still failed so falling back to context 'default'
Mar 3 15:05:53 WARNING[5026]: pbx.c:1893 ast_pbx_run: Channel 'CAPI[contr1/20]/10' sent into invalid extension 's' in context 'default', but no invalid handler
-- CAPI Hangingup
-- started pbx on channel (callgroup=0)!
-- SIP/webde-4413 is ringing
-- SIP/webde-4413 answered CAPI[contr1/21]/9
== Spawn extension (ausgehend, 097*****, 2) exited non-zero on 'CAPI[contr1/21]/9'
-- CAPI Hangingup
-- removed pipe for PLCI = 0x101
*CLI>
*CLI>
Was läuft hier falsch?
MFG SkiRitchy
Zuletzt bearbeitet: