On 8/30/07, <b class="gmail_sendername">Adrian Marsh</b> <<a href="mailto:Adrian.Marsh@ubiquisys.com">Adrian.Marsh@ubiquisys.com</a>> wrote:<div><span class="gmail_quote"></span> <br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
[outgoing-pstn-international]<br>exten => _+.,1,Set(EXTEN=00${EXTEN:+1})<br>exten => _+.,2,NoOp(test line: ${EXTEN})</blockquote><div><br></div></div>Setting ${EXTEN} won't work, but Goto(context,00${EXTEN:1},priority) will:
<br><br>[foo]<br>exten => 7997,1,Answer<br>exten => 7997,n,Set(FOO=+1441793xxxxxx)<br>exten => 7997,n,Goto(foo,00${FOO:1},1)<br>exten => 7997,n,Hangup<br>exten => _0.,1,NoOp(${EXTEN})<br>exten => _0.,n,Hangup
<br><br> -- Executing [7997@from-internal-admin:1] Answer("SIP/427-9dd49740", "") in new stack<br> -- Executing [7997@from-internal-admin:2] Set("SIP/427-9dd49740", "FOO=+1441793xxxxxx") in new stack
<br> -- Executing [7997@from-internal-admin:3] Goto("SIP/427-9dd49740", "foo|001441793xxxxxx|1") in new stack<br> -- Goto (foo,001441793xxxxxx,1)<br> -- Executing [001441793xxxxxx@foo:1] NoOp("SIP/427-9dd49740", "001441793xxxxxx") in new stack
<br> -- Executing [001441793xxxxxx@foo:2] Hangup("SIP/427-9dd49740", "") in new stack<br><br>-- <br>j.