Testing I have seen that there is data on the channel structure that tells me the dialed number even after the Goto:<br><br> -- Executing [1549@ramais-internos:1] Goto("SIP/pa01-083308d0", "1249|1") in new stack<br>
-- Goto (ramais-internos,1249,1)<br> -- Executing [1249@ramais-internos:1] DumpChan("SIP/pa01-083308d0", "") in new stack<br><br>Dumping Info For Channel: SIP/pa01-083308d0:<br>================================================================================<br>
Info:<br>Name= SIP/pa01-083308d0<br>Type= SIP<br>UniqueID= 1250530124.12<br>CallerID= pa01<br>CallerIDName= ORTIZ<br>DNIDDigits= 1549<br>RDNIS= (N/A)<br>
State= Ring (4)<br>Rings= 0<br>NativeFormat= 0x4 (ulaw)<br>WriteFormat= 0x4 (ulaw)<br>ReadFormat= 0x4 (ulaw)<br>1stFileDescriptor= 21<br>Framesin= 0 <br>Framesout= 0 <br>
TimetoHangup= 0<br>ElapsedTime= 0h0m0s<br>Context= ramais-internos<br>Extension= 1249<br>Priority= 1<br>CallGroup= <br>PickupGroup= <br>Application= DumpChan<br>
Data= (Empty)<br>Blocking_in= (Not Blocking)<br><br>Variables:<br>SIPCALLID=<a href="mailto:VSvfc-RJp0u2f2@192.168.0.13">VSvfc-RJp0u2f2@192.168.0.13</a><br>SIPUSERAGENT=OP150S/1.45 <br>SIPDOMAIN=192.168.0.13<br>
SIPURI=<a href="http://sip:pa01@192.168.0.249:5060">sip:pa01@192.168.0.249:5060</a><br>================================================================================<br><br><br>I've dialed 1549 and the Goto went to 1249, with DumpChan() I see that extension is now 1249, but on the field "DNIDDigits" I got the info that I need.<br>
<br>Is there a way to retrieve this info on the dialplan? (I've tested with ${DNIDDigits}, no success...)<br><br><br><br><div class="gmail_quote">2009/8/17 Jim Dickenson <span dir="ltr"><<a href="mailto:dickenson@cfmc.com">dickenson@cfmc.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="">will exten => _13[0-4]X,1,Goto(12${EXTEN:3},1) work for you?<div> <span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<div><div style="margin: 0px;">-- </div><div style="margin: 0px;">Jim Dickenson</div><div style="margin: 0px;"><a href="mailto:dickenson@cfmc.com" target="_blank">mailto:dickenson@cfmc.com</a></div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px;">CfMC</div><div style="margin: 0px;"><a href="http://www.cfmc.com/" target="_blank">http://www.cfmc.com/</a></div><div><font face="Monaco" size="2"><span style="font-size: 10px;"><br></span></font></div>
</div></div></span><br> </div><br><div><div><div></div><div class="h5"><div>On Aug 17, 2009, at 9:58 AM, Gabriel Ortiz Lour wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5">Hi all,<br><br>
When I have 2 masks that would like to execute the same logic, there is the way to use the Goto (or any other) command without changing the ${EXTEN}?<br><br>Eg. DID range is 1200-1349 -> call Macro(disca), what mask to use? (I just got it with 2 masks, but I didn't wanted to duplicate the dialplan for both)<br>
<br><br>[test]<br>exten => _12XX,1,Set(DIR=3)<br>exten => _12XX,n,Set(GROUP(flux)=internal)<br>exten => _12XX,n,Macro(disca)<br><br>exten => _13[0-4]X,1,Goto(1200,1) ; what to put here to go to 12XX ??<br><br>
The example above would not work because it will try to call 1200 always for the 13[0-4]X mask, since it will change the ${EXTEN} variable.<br><br>thanks already,<br>Gabriel Ortiz<br></div></div> _______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br><br>AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
<br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote>
</div><br></div><br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>