[Asterisk-Dev] ${EXTEN} does not return proper extension?

Christian Beaulieu christianb at grafsoft.com
Thu Apr 1 09:14:06 MST 2004


Could it be that the ${EXTEN} does not always return the proper value.

I have the following in me extensions.conf:

exten => s,1,BackGround(demo-congrats)
exten => 0,1,Dial(SIP/2001,20,tr)
exten => _X#,1,Wait(1)
exten => _X#,2,GetWave(${EXTEN})
exten => _X#,3,Dial(ZAP/2,20,tr)
exten => _X#,4,Hangup
exten => _XX#,1,Wait(1)
exten => _XX#,2,GetWave(${EXTEN})
exten => _XX#,3,Dial(ZAP/2,20,tr)
exten => _XX#,4,Hangup
exten => _XXX#,1,Wait(1)
exten => _XXX#,2,GetWave(${EXTEN})
exten => _XXX#,3,Dial(ZAP/2,20,tr)
exten => _XXX#,4,Hangup
exten => _XXXX#,1,Wait(1)
exten => _XXXX#,2,GetWave(${EXTEN})
exten => _XXXX#,3,Dial(ZAP/2,20,tr)
exten => _XXXX#,4,Hangup
exten => _XXXXX#,1,Wait(1)
exten => _XXXXX#,2,GetWave(${EXTEN})
exten => _XXXXX#,3,Dial(ZAP/2,20,tr)
exten => _XXXXX#,4,Hangup
exten => _XXXXXX#,1,Wait(1)
exten => _XXXXXX#,2,GetWave(${EXTEN})
exten => _XXXXXX#,3,Dial(ZAP/2,20,tr)
exten => _XXXXXX#,4,Hangup
exten => _XXXXXXX#,1,Wait(1)
exten => _XXXXXXX#,2,GetWave(${EXTEN})
exten => _XXXXXXX#,3,Dial(ZAP/2,20,tr)
exten => _XXXXXXX#,4,Hangup

GetWave simple takes the data present and prints it to a file.
My problem is that 8# sometimes gives me 8 or 8#.
Same thing with all the possible extensions listed.
I added a wait hoping it would help but no change.

Is there anything else that I can do?? I absolutely need to pass the correct and complet extension to my application.

THanks in advance.

Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20040401/f5fbc80a/attachment.htm


More information about the asterisk-dev mailing list