[asterisk-users] Early injecting Jack between call parties
Motiejus Jakštys
desired.mta at gmail.com
Thu May 20 02:12:05 CDT 2010
I use Jack for getting callee sound. Dial with option M():
JACK_HOOK(manipulate,i(rec_737219:input),o(rec_737219:output),c(rec_737219))=on
This works fine, but I need to connect the sound channel to Jack
*before* the actual answer.
As you can see in the AMI log, between "Ringing" to JACK_HOOK there is
a 6 second break. I don't want that.
I need a way to launch Dialplan function right after the channel is open.
Is it safe to launch JACK_HOOK to a channel that just started to ring?
(from AMI)?
I doing it from the dialplan, because there is no interaction (yet)
from the AMI with our asterisk.
Version 1.6.2.7
human_now: 2010-05-20 01:42:03.567385
Event: Newexten
Privilege: dialplan,all
Timestamp: 1274308923.567385
Channel: SIP/Prov6-000001be
Context: NPDB2
Extension: 37062646666
Priority: 75
Application: Dial
AppData: SIP/GW1/00737062646666,60,M(connect-jack,737219)
Uniqueid: 1274308923.446
human_now: 2010-05-20 01:42:03.568501
Event: Dial
Privilege: call,all
Timestamp: 1274308923.568501
SubEvent: Begin
Channel: SIP/Prov6-000001be
Destination: SIP/GW1-000001bf
CallerIDNum: <unknown>
CallerIDName: <unknown>
UniqueID: 1274308923.446
DestUniqueID: 1274308923.447
Dialstring: GW1/00737062646666
human_now: 2010-05-20 01:42:10.646068
Event: Newstate
Privilege: call,all
Timestamp: 1274308930.646068
Channel: SIP/GW1-000001bf
ChannelState: 5
ChannelStateDesc: Ringing
CallerIDNum: 37062646666
CallerIDName:
Uniqueid: 1274308923.447
human_now: 2010-05-20 01:42:16.905284
Event: Newstate
Privilege: call,all
Timestamp: 1274308936.905284
Channel: SIP/GW1-000001bf
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: 37062646666
CallerIDName:
Uniqueid: 1274308923.447
human_now: 2010-05-20 01:42:16.905449
Event: Newexten
Privilege: dialplan,all
Timestamp: 1274308936.905449
Channel: SIP/GW1-000001bf
Context: macro-connect-jack
Extension: s
Priority: 1
Application: NoOp
AppData: SIP/GW1-000001bf
Uniqueid: 1274308923.447
human_now: 2010-05-20 01:42:16.905470
Event: Newexten
Privilege: dialplan,all
Timestamp: 1274308936.905470
Channel: SIP/GW1-000001bf
Context: macro-connect-jack
Extension: s
Priority: 2
Application: Set
AppData: JACK_HOOK(manipulate,i(rec_737219:input),o(rec_737219:output),c(rec_737219))=on
Uniqueid: 1274308923.447
More information about the asterisk-users
mailing list