Stream file & get data agi command not playing sound

I’m using python for AGI but I’m facing a problem which is: stream file & get data command not playing sound, here under my code and configurations and debugging output:
#include “/etc/asterisk/myip.conf”
;--------------Networing Part----------------------
context=sip_in ; Default context for incoming calls. Defaults to ‘default’
udpbindaddr= ; IP address to bind UDP listen socket to ( binds to all)
tcpenable=no ; Enable server for incoming TCP connections (default is no)
transport=udp ; Set the default transports. The order determines the primary default transport.
; If tcpenable=no and the transport set is tcp, we will fallback to UDP.
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
; Note: Asterisk only uses the first host
; in SRV records
; Disabling DNS SRV lookups disables the
; ability to place SIP calls based on domain
; names to some other SIP users on the Internet
; Specifying a port in a SIP peer definition or
; when dialing outbound calls will supress SRV
; lookups for that peer or call.

;---------------Codec negotiation------------------
;disallow=all ; First disallow all codecs
;allow=ulaw ; Allow codecs in order of preference
;allow=ilbc,g729,ulaw ; see
;------ for framing options
autoframing=yes ; Set packetization based on the remote endpoint’s (ptime)
; preferences. Defaults to no.

useragent=IMS-CRBT ; Allows you to change the user agent string
; The default user agent string also contains the Asterisk
; version. If you don’t want to expose this, change the
; useragent string.
python code:
import sys
from asterisk.agi import *

agi = AGI()
agi.verbose(“python agi started”)
callerId = agi.env[‘agi_callerid’]
agi.verbose(“call from %s” % callerId)
while True:
result = agi.wait_for_digit(-1)
agi.verbose(“got digit %s” % result)
if result.isdigit():

CLI debugging output:
Launched AGI Script /etc/asterisk/
<SIP/>AGI Tx >> agi_request: /etc/asterisk/
<SIP/>AGI Tx >> agi_channel: SIP/
<SIP/>AGI Tx >> agi_language: en
<SIP/>AGI Tx >> agi_type: SIP
<SIP/>AGI Tx >> agi_uniqueid: 1575963726.0
<SIP/>AGI Tx >> agi_version: 16.6.2
<SIP/>AGI Tx >> agi_callerid: 993998879
<SIP/>AGI Tx >> agi_calleridname: 993998879
<SIP/>AGI Tx >> agi_callingpres: 0
<SIP/>AGI Tx >> agi_callingani2: 0
<SIP/>AGI Tx >> agi_callington: 0
<SIP/>AGI Tx >> agi_callingtns: 0
<SIP/>AGI Tx >> agi_dnid: IMS-CRBT-IVR
<SIP/>AGI Tx >> agi_rdnis: unknown
<SIP/>AGI Tx >> agi_context: sip_in
<SIP/>AGI Tx >> agi_extension: IMS-CRBT-IVR
<SIP/>AGI Tx >> agi_priority: 1
<SIP/>AGI Tx >> agi_enhanced: 0.0
<SIP/>AGI Tx >> agi_accountcode:
<SIP/>AGI Tx >> agi_threadid: 139771390002944
<SIP/>AGI Tx >>
<SIP/>AGI Rx << VERBOSE “python agi started” 1
/etc/asterisk/ python agi started
<SIP/>AGI Tx >> 200 result=1
<SIP/>AGI Rx << VERBOSE “call from 993998879” 1
/etc/asterisk/ call from 993998879
<SIP/>AGI Tx >> 200 result=1
<SIP/>AGI Rx << STREAM FILE vm-extension “” 0
– <SIP/> Playing ‘vm-extension.gsm’ (escape_digits=) (sample_offset 0) (language ‘en’)
<SIP/>AGI Tx >> 200 result=0 endpos=8800

I tried many similar codes and got the same result
please any help about this problem

Many Thanks in Advance

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.