<html><body>
<DIV>Thanks ...</DIV>
<DIV>I think that is gonna work ... I don't how I didn't think about this ... Actually I think I was trying to do like through a generic way ... because I have a lot of DIDs I would have to set up one by one that way ...</DIV>
<DIV> </DIV>
<DIV>But thanks for your help ...</DIV>
<DIV> </DIV>
<DIV>But just to know .. Is there any way to retrieve any value from a macro ... ? Like ... I was trying to set the callerID dinamically inside the macro and set this value in the variable MACRO_RESULT ... but it didn't work ... </DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV> </DIV>
<DIV>Marcelo</DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message -------------- <BR>From: "Eric "ManxPower" Wieling" <eric@fnords.org> <BR><BR>> marcelobiz@comcast.net wrote: <BR>> > Hi, <BR>> > <BR>> > I'm using traditional phones behing a Linksys PAP2 adapter ... <BR>> > <BR>> > I'd like to set the outbound caller ID ... based on the number dialed by my <BR>> agent ... like ... If I dial one number with area code 781 and I have one DID <BR>> with the same area code ... I'd like to set the caller ID to this number ... I <BR>> tried already with a Macro but I didn't manage to retrieve a value from the <BR>> Macro ... <BR>> > <BR>> <BR>> exten => _781NXXXXXX,1,Set(CALLERID(num)=7815551212) <BR>> exten => _781NXXXXXX,n,Dial(.... <BR>> <BR>> exten => _NXXNXXXXXX,1,Set(CALLERID(num)=1235541313) <BR>> exten => _NXXNXXXXXX,n,Dial(.... <BR>> ____
___________________________________________ <BR>> --Bandwidth and Colocation provided by Easynews.com -- <BR>> <BR>> asterisk-users mailing list <BR>> To UNSUBSCRIBE or update options visit: <BR>> http://lists.digium.com/mailman/listinfo/asterisk-users </BLOCKQUOTE></body></html>