[asterisk-users] How set CallerID via Macro or something

Yuan LIU yliu11 at hotmail.com
Mon Feb 26 10:57:48 MST 2007


>From: marcelobiz at comcast.net
>Date: Mon, 26 Feb 2007 16:52:52 +0000
>
>Thanks ...
>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 ...
>
>But thanks for your help ...
>
>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 ...

And wouldn't.  There are some workarounds, including Gosub()..Return() 
structure. (Different from Macro but may work in some situations.)

Yuan Liu

>Thanks,
>
>Marcelo
>
>-------------- Original message --------------
>From: "Eric "ManxPower" Wieling" <eric at fnords.org>
>
> > marcelobiz at comcast.net wrote:
> > > Hi,
> > >
> > > I'm using traditional phones behing a Linksys PAP2 adapter ...
> > >
> > > I'd like to set the outbound caller ID ... based on the number dialed 
>by my
> > agent ... like ... If I dial one number with area code 781 and I have 
>one DID
> > with the same area code ... I'd like to set the caller ID to this number 
>... I
> > tried already with a Macro but I didn't manage to retrieve a value from 
>the
> > Macro ...
> > >
> >
> > exten => _781NXXXXXX,1,Set(CALLERID(num)=7815551212)
> > exten => _781NXXXXXX,n,Dial(....
> >
> > exten => _NXXNXXXXXX,1,Set(CALLERID(num)=1235541313)
> > exten => _NXXNXXXXXX,n,Dial(....




More information about the asterisk-users mailing list