[asterisk-users] Zapatel early media issue
Dimitar Dimitrov
ddimitrov at consult.bg
Wed Jan 28 04:18:20 CST 2009
Hi,
I have some troubles with early media with Zapatel TDM400P adapter. I
made a simple callback function wich works by followin way:
The user call into our Asterisk box and get into the "s" extension. Then
leaves a message and hangs. The asterisk make a call to my CellPhone and
then plays the recoreded message.
This is a configuraction of inbound extension:
[incoming]
...
exten => s,n,Goto(ivr2,s,1)
[ivr2]
exten => s,1,Playback(vm-intro)
exten => s,n,Set(MSGFILE=msg-${EPOCH})
exten => s,n,Record(${MSGFILE}.wav|2|15)
exten => s,n,Wait(1)
exten => s,n,Playback(${MSGFILE})
exten => s,n,System(/var/lib/asterisk/system/callme.sh ${MSGFILE})
exten => s,n,Hangup()
exten => 5051,1,Wait(2)
exten => 5051,n,Playback(${MSG})
exten => 5051,n,Hangup()
The scipt which makes the outgoing call is:
###################
#!/bin/bash
echo "Channel: Zap/3/<my cell phone number>
MaxRetries: 3
RetryTime: 60
WaitTime: 30
Context: ivr2
Extension: 5051
Priority: 1
Set: MSG=$1
Archive: Yes" > /var/spool/asterisk/outgoing/callme-$1
###################
The problem is when the asterisk box call me the zap device gives the
ring indication, after that the PSTN gives me the ring and the 5051,1
extensions starts and plays the message before I pickup the phone.
The zap device is configured as:
context = incoming
signalling = fxs_ks
echocancel=yes
echocancelwhenbridged=yes
echotraining=yes
echotraining=800
immediate = no
busydetect = yes
busycount = 4
faxdetect = both
channel => 3
I am using Asterisk 1.4.21.2.
Thanks in advance.
Dimitar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2921 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20090128/b2813855/attachment.bin
More information about the asterisk-users
mailing list