I have something similar to do SMS voicemail
notifications... I do not use any underscores when I set
the variable and it works fine in the 'h' extension.On 9/13/05, Simone Cittadini [EMAIL PROTECTED]
wrote:Is there a way to pass variables/arguments to the h extension ?
for example :[default]exten = _1098933X.,1,NoOp(CARRIER TWT-TIM, EXTEN: ${EXTEN}},SIPCALLID: ${SIPCALLID}, SIPDOMAIN: ${SIPDOMAIN})exten = _1098933X.,2,SetVar(_PROVA=bla)
[lot of stuff, agi, goto, tricks and magic that happens]exten = _1098933X.,10,Dial(${CHAN_DEST},,L(360:3599900)) - don'tmind L, a quick hack for dtmf not working with sipexten = _1098933X.,11,Hangup
exten = _1098933X.,12,Playback(no-credit)exten = _1098933X.,13,Hangupexten = h,1,NoOp(${PROVA})When the calls hangup, no bla is printed on screen, I think it's fine,
since the variable is automatically trashed when the channel ishungup., sigh ...But I need to pass some variables from the calling extension to an AGI,like :exten = h,1,DeadAGI(
update-credit.py|${CALLER}|${CALLED}|${CARRIER})in order to decrement the amount of credit for each customer after everycall.I've seen that in others prepaid systems built over asterisk theupdating of available credit is done in a cron job, have I to take it as
a sign that real-time billing is impossible ? Hope I haven't to ___--Bandwidth and Colocation sponsored by Easynews.com
--Asterisk-Users mailing listAsterisk-Users@lists.digium.comhttp://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
___
--Bandwidth and Colocation sponsored by Easynews.com --
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users