Bonjour ffossard et merci pour ta réponse,
En faite je voudrais les récupérer dans mon agi mais je ne connais pas la syntaxe exacte. Voici ce que je récupère quand j'éxécute mon agi de test:
Code HTML:
== Using SIP RTP CoS mark 5
-- Executing [s@phone:1] Answer("SIP/ippi-00000000", "") in new stack
-- Executing [s@phone:2] AGI("SIP/ippi-00000000", "test.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/test.agi
<SIP/ippi-00000000>AGI Tx >> agi_request: test.agi
<SIP/ippi-00000000>AGI Tx >> agi_channel: SIP/ippi-00000000
<SIP/ippi-00000000>AGI Tx >> agi_language: en
<SIP/ippi-00000000>AGI Tx >> agi_type: SIP
<SIP/ippi-00000000>AGI Tx >> agi_uniqueid: 1286462854.0
<SIP/ippi-00000000>AGI Tx >> agi_version: 1.6.2.12
<SIP/ippi-00000000>AGI Tx >> agi_callerid: Unknown
<SIP/ippi-00000000>AGI Tx >> agi_calleridname: Unknown
<SIP/ippi-00000000>AGI Tx >> agi_callingpres: 0
<SIP/ippi-00000000>AGI Tx >> agi_callingani2: 0
<SIP/ippi-00000000>AGI Tx >> agi_callington: 0
<SIP/ippi-00000000>AGI Tx >> agi_callingtns: 0
<SIP/ippi-00000000>AGI Tx >> agi_dnid: unknown
<SIP/ippi-00000000>AGI Tx >> agi_rdnis: unknown
<SIP/ippi-00000000>AGI Tx >> agi_context: phone
<SIP/ippi-00000000>AGI Tx >> agi_extension: s
<SIP/ippi-00000000>AGI Tx >> agi_priority: 2
<SIP/ippi-00000000>AGI Tx >> agi_enhanced: 0.0
<SIP/ippi-00000000>AGI Tx >> agi_accountcode:
<SIP/ippi-00000000>AGI Tx >> agi_threadid: -1212658800
<SIP/ippi-00000000>AGI Tx >>
<SIP/ippi-00000000>AGI Rx << STREAM FILE dir-welcome ""
-- Playing 'dir-welcome' (escape_digits=) (sample_offset 0)
<SIP/ippi-00000000>AGI Tx >> 200 result=0 endpos=13028
<SIP/ippi-00000000>AGI Rx << GET DATA dir-pls-enter 10000 10
-- <SIP/ippi-00000000> Playing 'dir-pls-enter.ulaw' (language 'en')
<SIP/ippi-00000000>AGI Tx >> 200 result=123456789
<SIP/ippi-00000000>AGI Rx << GET DATA conf-getpin 10000 4
-- <SIP/ippi-00000000> Playing 'conf-getpin.ulaw' (language 'en')
<SIP/ippi-00000000>AGI Tx >> 200 result=1234
<SIP/ippi-00000000>AGI Rx << GET DATA conf-getconfno 10000 14
-- <SIP/ippi-00000000> Playing 'conf-getconfno.ulaw' (language 'en')
<SIP/ippi-00000000>AGI Tx >> 200 result=1234
-- <SIP/ippi-00000000>AGI Script test.agi completed, returning 0
-- Executing [s@phone:3] Hangup("SIP/ippi-00000000", "") in new stack
== Spawn extension (phone, s, 3) exited non-zero on 'SIP/ippi-00000000'