Bonjour
Après une recherche sur le livre Oreilly, j'ai trouve ca :
Code:
If you want to run an AGI when no channel exists (such as in an h extension), use the DeadAGI() application instead.
Ca sera probablement la réponse, je vais essayé ca cette aprem et je vous tiens au courant ![Wink2](images/smilies/wink.png)
Apres debueug voila le resultat :
Code:
-- Executing [h@msgack:3] DeadAGI("SIP/4000-00000005", "/tmp/ConvertFile/test_3.agi") in new stack
-- Launched AGI Script /tmp/ConvertFile/test_3.agi
<SIP/4000-00000005>AGI Tx >> agi_request: /tmp/ConvertFile/test_3.agi
<SIP/4000-00000005>AGI Tx >> agi_channel: SIP/4000-00000005
<SIP/4000-00000005>AGI Tx >> agi_language: en
<SIP/4000-00000005>AGI Tx >> agi_type: SIP
<SIP/4000-00000005>AGI Tx >> agi_uniqueid: 1291039354.5
<SIP/4000-00000005>AGI Tx >> agi_version: 1.6.2.14
<SIP/4000-00000005>AGI Tx >> agi_callerid: unknown
<SIP/4000-00000005>AGI Tx >> agi_calleridname: unknown
<SIP/4000-00000005>AGI Tx >> agi_callingpres: 0
<SIP/4000-00000005>AGI Tx >> agi_callingani2: 0
<SIP/4000-00000005>AGI Tx >> agi_callington: 0
<SIP/4000-00000005>AGI Tx >> agi_callingtns: 0
<SIP/4000-00000005>AGI Tx >> agi_dnid: unknown
<SIP/4000-00000005>AGI Tx >> agi_rdnis: unknown
<SIP/4000-00000005>AGI Tx >> agi_context: msgack
<SIP/4000-00000005>AGI Tx >> agi_extension: h
<SIP/4000-00000005>AGI Tx >> agi_priority: 3
<SIP/4000-00000005>AGI Tx >> agi_enhanced: 0.0
<SIP/4000-00000005>AGI Tx >> agi_accountcode:
<SIP/4000-00000005>AGI Tx >> agi_threadid: 1109850432
<SIP/4000-00000005>AGI Tx >>
== Manager 'admin' logged on from 127.0.0.1
-- <SIP/4000-00000005>AGI Script /tmp/ConvertFile/test_3.agi completed, returning 0