Can i get a variable from my .call file in the extension.conf ?
I want to know in the extensions.conf file the number i’m calling, to execute a AGI script with the number in argument, to get the next number i have to call.
Parsing the ${CHANNEL} works fine if the callee answer the call, but if he do nothing or decline, the ${CHANNEL} is egal to : OutgoingSpoolFailed
[quote] == Using SIP RTP CoS mark 5
– Got SIP response 603 “Decline” back from 192.168.21.52
> Channel SIP/1002-00000025 was never answered.
– Executing [failed@appel-sortant:1] NoOp(“OutgoingSpoolFailed”, “appel-sortant failed”) in new stack
– Executing [failed@appel-sortant:2] Set(“OutgoingSpoolFailed”, “NEXT=0”) in new stack
– Executing [failed@appel-sortant:3] AGI(“OutgoingSpoolFailed”, “/var/lib/asterisk/agi-bin/getNext.php,OutgoingSpoolFailed”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/getNext.php
– AGI Script /var/lib/asterisk/agi-bin/getNext.php completed, returning 0
– Executing [failed@appel-sortant:4] System(“OutgoingSpoolFailed”, “/var/lib/asterisk/outbound/callPeople.sh 0”) in new stack
– Executing [failed@appel-sortant:5] Hangup(“OutgoingSpoolFailed”, “”) in new stack
== Spawn extension (appel-sortant, failed, 5) exited non-zero on ‘OutgoingSpoolFailed’
[/quote]
I must know the number I call in order to determine the next number to call with my agi script
[quote] == Using SIP RTP CoS mark 5
– Executing [failed@appel-sortant:1] NoOp(“OutgoingSpoolFailed”, “appel sortant failed”) in new stack
– Executing [failed@appel-sortant:2] NoOp(“OutgoingSpoolFailed”, “failed”) in new stack
– Auto fallthrough, channel ‘OutgoingSpoolFailed’ status is ‘UNKNOWN’
[Aug 20 16:30:37] NOTICE[10147]: pbx_spool.c:339 attempt_thread: Call failed to go through, reason (3) Remote end Ringing
[/quote]