Re: [asterisk-users] Re: How to forward a call to an outside line

2006-08-03 Thread Dan Casey

Greg Broiles wrote:

On 8/3/06, Dan Casey <[EMAIL PROTECTED]> wrote:


 I actually have it semi-working.  My trunks were set up improperly.
 Now i can do it, but only if i specify a specific zap channel.

 exten => 299,1,Macro(dialout,2,1914304,,)

 the 2 takes me to zap 1. I tried to replace that with "s" but no 
luck.. any

idea how to do this where it will pick any available trunk?


Perhaps someone who uses Zap frequently has a better idea, but I would
be inclined to approach this as a case where you'd want to try
multiple devices in serial. This is an (admittedly ugly) example of my
tollfree dialing macro, which tries several providers in the event
that one is unable to complete the call for whatever reason.

[macro-tollfree]
exten => s,1,dial(${TRXTEL}/${ARG1}-noads,90,tr)
exten => s,2,dial(${NUFONE}/${ARG1},90,tr)
exten => s,3,dial(${TELIAX}/${ARG1},90,tr)
exten => s,4,dial(${TRUNK3}/${ARG1},90,tr)
exten => s,5,Congestion

Also - in case it's useful - this is a bit of my dialplan that I used
to ring a local extension, then call an outside answering service if
the local extension doesn't answer -

exten => 800936,1,Dial(${RON},20,r)
exten => 800936,2,Dial(${TRUNK}/${ANSWERINGSERVICE},60,r)

.. my application used IAX, not Zap, for the outgoing call, but it
seems like the behavior should be similar.

I was thinking of doing that, but was trying to avoid it.  Right now I'm 
only using 7 channels on our T1 for voice, so it's not too bad.  I'm 
assuming it should be under a 2 second delay even if it has to try every 
single channel..


Thanks a lot for your help, this was driving me nuts today.
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Re: How to forward a call to an outside line

2006-08-03 Thread Greg Broiles

On 8/3/06, Dan Casey <[EMAIL PROTECTED]> wrote:


 I actually have it semi-working.  My trunks were set up improperly.
 Now i can do it, but only if i specify a specific zap channel.

 exten => 299,1,Macro(dialout,2,1914304,,)

 the 2 takes me to zap 1. I tried to replace that with "s" but no luck.. any
idea how to do this where it will pick any available trunk?


Perhaps someone who uses Zap frequently has a better idea, but I would
be inclined to approach this as a case where you'd want to try
multiple devices in serial. This is an (admittedly ugly) example of my
tollfree dialing macro, which tries several providers in the event
that one is unable to complete the call for whatever reason.

[macro-tollfree]
exten => s,1,dial(${TRXTEL}/${ARG1}-noads,90,tr)
exten => s,2,dial(${NUFONE}/${ARG1},90,tr)
exten => s,3,dial(${TELIAX}/${ARG1},90,tr)
exten => s,4,dial(${TRUNK3}/${ARG1},90,tr)
exten => s,5,Congestion

Also - in case it's useful - this is a bit of my dialplan that I used
to ring a local extension, then call an outside answering service if
the local extension doesn't answer -

exten => 800936,1,Dial(${RON},20,r)
exten => 800936,2,Dial(${TRUNK}/${ANSWERINGSERVICE},60,r)

.. my application used IAX, not Zap, for the outgoing call, but it
seems like the behavior should be similar.

--
Greg Broiles, JD, LLM Tax, EA
[EMAIL PROTECTED] (Lists only. Not for confidential communications.)
Law Office of Gregory A. Broiles
San Jose, CA
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Re: How to forward a call to an outside line

2006-08-03 Thread Dan Casey




I actually have it semi-working.  My trunks were set up improperly.
Now i can do it, but only if i specify a specific zap channel.

exten => 299,1,Macro(dialout,2,1914304,,)

the 2 takes me to zap 1. I tried to replace that with "s" but no luck..
any idea how to do this where it will pick any available trunk?





  I gave that a try but had no luck. I keep getting all circuits busy.
Perhaps there is another way.
I think it is having trouble when transfering zap to zap.
but no matter what i do i can't get it.

I made a sip number to try from, but its not working
[ext-local-custom]
;exten => 299,1,Macro(dialout-trunk,0,914426,,)
exten => 299,1,Macro(dialout,5,1914426,,)

This is what i've been getting all day long.
-- Executing Dial("SIP/212-ace5", "ZAP/g4/1914426") in new stack
  == Everyone is busy/congested at this time
I assure you are not busy :)


Steven wrote:
  
  
I use :
exten => 5600,3,Macro(dialout-trunk,0,91248XXX,,)

Mind you that I am using FreePBX, so I am using the dialout-trunk macro.
But before I used FreePBX, I would do the same with Dial.
5600 is a DID number that gets forwarded outside.



  

  
  ___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
  



___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Re: How to forward a call to an outside line

2006-08-03 Thread Dan Casey
I gave that a try but had no luck. I keep getting all circuits busy.
Perhaps there is another way.
I think it is having trouble when transfering zap to zap.
but no matter what i do i can't get it.

I made a sip number to try from, but its not working
[ext-local-custom]
;exten => 299,1,Macro(dialout-trunk,0,914426,,)
exten => 299,1,Macro(dialout,5,1914426,,)

This is what i've been getting all day long.
-- Executing Dial("SIP/212-ace5", "ZAP/g4/1914426") in new stack
  == Everyone is busy/congested at this time
I assure you are not busy :)


Steven wrote:
> I use :
> exten => 5600,3,Macro(dialout-trunk,0,91248XXX,,)
>
> Mind you that I am using FreePBX, so I am using the dialout-trunk macro.
> But before I used FreePBX, I would do the same with Dial.
> 5600 is a DID number that gets forwarded outside.
>
>
>
>   
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Re: How to forward a call to an outside line

2006-08-03 Thread Steven
I use :
exten => 5600,3,Macro(dialout-trunk,0,91248XXX,,)

Mind you that I am using FreePBX, so I am using the dialout-trunk macro.
But before I used FreePBX, I would do the same with Dial.
5600 is a DID number that gets forwarded outside.



-- 
-- 
Steven

http://www.glimasoutheast.org



"Dan Casey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>I have a DID route that i want to set up so that it attempts to call a
> number that not managed by asterisk.
> I have tried a million variables of dial, dialout-trunk, etc but can't
> seem to find this.
>
> I can take a call and manually transfer it using my polycom phone, but i
> want to automate this.
> Here is the output when forward the call manually.
>
> [custom-forwardhome]
> exten => s,1,???
> exten => s,2,hangup
>
>
>
> The process below:
> I dial with my cell (914426) into my DID (914614).
> I pickup, and transfer the call to the outside line (914304).
>
>
> phones*CLI>
>-- Executing SetVar("Zap/1-1", "FROM_DID=914614") in new stack
>-- Executing Goto("Zap/1-1", "ext-local|212|1") in new stack
>-- Goto (ext-local,212,1)
>-- Executing Macro("Zap/1-1", "exten-vm|[EMAIL PROTECTED]|212") in new 
> stack
>-- Executing SetVar("Zap/1-1", "FROMCONTEXT=exten-vm") in new stack
>-- Executing Macro("Zap/1-1", "record-enable|212|IN") in new stack
>-- Executing GotoIf("Zap/1-1", "0 > 0?2:4") in new stack
>-- Goto (macro-record-enable,s,4)
>-- Executing GotoIf("Zap/1-1", "0?5:8") in new stack
>-- Goto (macro-record-enable,s,8)
>-- Executing GotoIf("Zap/1-1", "0?9:12") in new stack
>-- Goto (macro-record-enable,s,12)
>-- Executing DBget("Zap/1-1", "RecEnable=RECORD-IN/212") in new stack
>-- DBget: varname=RecEnable, family=RECORD-IN, key=212
>-- DBget: Value not found in database.
>-- Executing SetVar("Zap/1-1",
> "CALLFILENAME=20060803-144028-1154630428.24777") in new stack
>-- Executing GotoIf("Zap/1-1", "0?15:99") in new stack
>-- Goto (macro-record-enable,s,99)
>-- Executing NoOp("Zap/1-1", "NO RECORDING NEEDED") in new stack
>-- Executing Macro("Zap/1-1", "dial|15|tr|212") in new stack
>-- Executing GotoIf("Zap/1-1", "0?4:2") in new stack
>-- Goto (macro-dial,s,2)
>-- Executing GotoIf("Zap/1-1", "0?4:3") in new stack
>-- Goto (macro-dial,s,3)
>-- Executing SetCIDName("Zap/1-1", "914426") in new stack
>-- Executing AGI("Zap/1-1", "dialparties.agi") in new stack
>-- Accepting call from '914426' to '914614' on channel 0/1,
> span 1
>-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
>--  dialparties.agi: request = dialparties.agi
>--  dialparties.agi: priority = 4
>--  dialparties.agi: extension = s
>--  dialparties.agi: language = en
>--  dialparties.agi: accountcode =
>--  dialparties.agi: uniqueid = 1154630428.24777
>--  dialparties.agi: channel = Zap/1-1
>--  dialparties.agi: callerid = 914426 <914426>
>--  dialparties.agi: context = macro-dial
>--  dialparties.agi: type = Zap
>--  dialparties.agi: rdnis = unknown
>--  dialparties.agi: enhanced = 0.0
>--  dialparties.agi: dnid = 914614
>  dialparties.agi: Caller ID name is '914426' number is '914426'
>--  dialparties.agi: Added extension 212 to extension map
>--  dialparties.agi: Extension 212 cf is disabled
>--  dialparties.agi: Extension 212 do not disturb is disabled
>  == Parsing '/etc/asterisk/manager.conf': Found
>  == Manager 'admin' logged on from 127.0.0.1
>  == Manager 'admin' logged off from 127.0.0.1
>  dialparties.agi: Extension 212 has call waiting disabled
>--  dialparties.agi: DbSet CALLTRACE/212 to 914426
>  dialparties.agi: Dial string is SIP/212|15|tr
>-- AGI Script dialparties.agi completed, returning 0
>-- Executing Dial("Zap/1-1", "SIP/212|15|tr") in new stack
>-- Called 212
>-- SIP/212-20f2 is ringing
>-- SIP/212-20f2 answered Zap/1-1
>-- Started music on hold, class 'default', on Zap/1-1
>-- Executing Macro("SIP/212-3853", "dialout-trunk|2|1914304|")
> in new stack
>-- Executing GotoIf("SIP/212-3853", "1?3:2)") in new stack
>-- Goto (macro-dialout-trunk,s,3)
>-- Executing Macro("SIP/212-3853", "record-enable|212|OUT") in new stack
>-- Executing GotoIf("SIP/212-3853", "0 > 0?2:4") in new stack
>-- Goto (macro-record-enable,s,4)
>-- Executing GotoIf("SIP/212-3853", "1?5:8") in new stack
>-- Goto (macro-record-enable,s,5)
>-- Executing DBget("SIP/212-3853", "RecEnable=RECORD-OUT/212") in
> new stack
>-- DBget: varname=RecEnable, family=RECORD-OUT, key=212
>-- DBget: Value not found in database.
>-- Executing SetVar("SIP/212-3853",
> "CALLFILENAME=OUT212-20060803-144039-1154630439.24779") in new stack
>-- Executing Goto("SIP/212-3853", "s|14") in new stack
>-- Goto (macro-record-enable,s,14)
>-- Executing GotoIf("SIP/212-3853", "0?15:99") in new s