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.<br><br><div><span class="gmail_quote">On 9/13/05, <b class="gmail_sendername">Simone Cittadini</b> <<a href="mailto:mymailforlists@gmail.com">mymailforlists@gmail.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is there a way to pass variables/arguments to the h extension ?<br><br>
for example :<br><br>[default]<br><br>exten => _1098933X.,1,NoOp(CARRIER TWT->TIM, EXTEN: ${EXTEN}},<br>SIPCALLID: ${SIPCALLID}, SIPDOMAIN: ${SIPDOMAIN})<br>exten => _1098933X.,2,SetVar(_PROVA="bla")<br>
[lot of stuff, agi, goto, tricks and magic that happens]<br>exten => _1098933X.,10,Dial(${CHAN_DEST},,L(3600000:3599900)) <- don't<br>mind L, a quick hack for dtmf not working with sip<br>exten => _1098933X.,11,Hangup
<br>exten => _1098933X.,12,Playback(no-credit)<br>exten => _1098933X.,13,Hangup<br><br><br>exten => h,1,NoOp(${PROVA})<br><br><br>When the calls hangup, no "bla" is printed on screen, I think it's fine,
<br>since "the variable is automatically trashed when the channel is<br>hungup.", sigh ...<br><br>But I need to pass some variables from the calling extension to an AGI,<br>like :<br><br>exten => h,1,DeadAGI(
update-credit.py|${CALLER}|${CALLED}|${CARRIER})<br><br>in order to decrement the amount of credit for each customer after every<br>call.<br><br>I've seen that in others prepaid systems built over asterisk the<br>updating of available credit is done in a cron job, have I to take it as
<br>a sign that "real-time billing" is impossible ? Hope I haven't to ....<br><br>_______________________________________________<br>--Bandwidth and Colocation sponsored by <a href="http://Easynews.com">Easynews.com
</a> --<br><br>Asterisk-Users mailing list<br><a href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a><br><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>