Re: [asterisk-users] dial out with channel variable; sub-string usage

2015-04-13 Thread John Kiniston
BABY appears to be a global variable in your example. In your CLI output testcarrier is a peer, It's not a variable at all. The context field for your peer testcarrier is where incoming calls from testcarrirer will be routed to. Here is some example dialplan showing how you can use one context

Re: [asterisk-users] dial out with channel variable; sub-string usage

2015-04-12 Thread thufir
On 15-04-09 12:06 PM, Chad Wallace wrote: but don't know where to put those lines. I have BABY defined as channel variable: BABY = SIP/babytel_out but that seems circular, somehow. You put them in the context for your clients... From what you show below, I'd say they go in the local_200

Re: [asterisk-users] dial out with channel variable; sub-string usage

2015-04-09 Thread Chad Wallace
On Wed, 08 Apr 2015 16:10:30 -0700 thufir hawat.thu...@gmail.com wrote: I want to do something like: exten = _NXXXNxx,1,Dial(${BABY}/${EXTEN}) exten = _Nxx,1,Dial(${BABY}/${EXTEN}) exten = _1NXXNxx,1,Dial(${BABY}/${EXTEN}) exten = _011.,1,Dial(Dial({TOLL}/${EXTEN}) exten =

[asterisk-users] dial out with channel variable; sub-string usage

2015-04-08 Thread thufir
I want to do something like: exten = _NXXXNxx,1,Dial(${BABY}/${EXTEN}) exten = _Nxx,1,Dial(${BABY}/${EXTEN}) exten = _1NXXNxx,1,Dial(${BABY}/${EXTEN}) exten = _011.,1,Dial(Dial({TOLL}/${EXTEN}) exten = _9NXXXNxx,1,Dial(${BABY}/${EXTEN}) exten = _9Nxx,1,Dial(${BABY}/${EXTEN})