[asterisk-users] Zapatel early media issue

Steven J. Douglas stevend at moij.biz
Wed Jan 28 04:28:53 CST 2009


Hi Dimitar,

You can use the Read command in your 5051 extension to wait for a 
response after the user answers the phone.

Regards,
Steve

Dimitar Dimitrov wrote:
> 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list