[asterisk-users] Dial out through multiple Zap groups

C F shmaltz at gmail.com
Wed Jul 25 09:35:19 CDT 2007


Sorry I did not realize that your concern was when the line is
disconnected, as I didn't bother reading the whole message and as soon
as I read that the problem is about LCR I responded not reading even
one word further about the disconnected.


On 7/25/07, Vieri <rentorbuy at yahoo.com> wrote:
>
> --- C F <shmaltz at gmail.com> wrote:
>
> > This should do what you want:
> >
> > You can call it like this:
> > exten =>
> 12125551212,1,Macro(dialoutbound,${EXTEN},8005551212,3-Zap/G1/-Zap/G2/-Sip/Nufone/)
> >
> > Hope this helps.
>
> Thanks but it still won't work when the wires are
> disconnected.
> This is what I get on the CLI:
>
>     -- Executing Macro("SIP/4053-0823fc18",
> "dialoutbound|971847021|8005551212|2-Zap/g0/-Zap/g1/")
> in new stack
>     -- Executing NoOp("SIP/4053-0823fc18", "") in new
> stack
>     -- Executing NoOp("SIP/4053-0823fc18", "") in new
> stack
>     -- Executing NoOp("SIP/4053-0823fc18", "") in new
> stack
>     -- Executing GotoIf("SIP/4053-0823fc18", "0?100")
> in new stack
>     -- Executing Set("SIP/4053-0823fc18",
> "CALLERID(num)=8005551212") in new stack
>     -- Executing Goto("SIP/4053-0823fc18", "10") in
> new stack
>     -- Goto (macro-dialoutbound,s,10)
>     -- Executing NoOp("SIP/4053-0823fc18", "") in new
> stack
>     -- Executing NoOp("SIP/4053-0823fc18", "Weare
> starting to cut") in new stack
>     -- Executing Set("SIP/4053-0823fc18", "DCNT=2") in
> new stack
>     -- Executing Set("SIP/4053-0823fc18", "CNT=2") in
> new stack
>     -- Executing Goto("SIP/4053-0823fc18", "50") in
> new stack
>     -- Goto (macro-dialoutbound,s,50)
>     -- Executing NoOp("SIP/4053-0823fc18", "We start
> assigning devices") in new stack
>     -- Executing NoOp("SIP/4053-0823fc18", "") in new
> stack
>     -- Executing Set("SIP/4053-0823fc18", "TCNT=0") in
> new stack
>     -- Executing GotoIf("SIP/4053-0823fc18", "0?800")
> in new stack
>     -- Executing Set("SIP/4053-0823fc18",
> "DVC=Zap/g0/") in new stack
>     -- Executing Set("SIP/4053-0823fc18", "TCNT=2") in
> new stack
>     -- Executing Set("SIP/4053-0823fc18", "CNT=3") in
> new stack
>     -- Executing Goto("SIP/4053-0823fc18", "callme|1")
> in new stack
>     -- Goto (macro-dialoutbound,callme,1)
>     -- Executing NoOp("SIP/4053-0823fc18", "") in new
> stack
>     -- Executing Dial("SIP/4053-0823fc18",
> "Zap/g0/971847021||Ww") in new stack
>     -- Called g0/971847021
>     -- Zap/32-1 answered SIP/4053-0823fc18
>
> (endless)
>
> Another ML subscriber has pointed out that Asterisk is
> not capable of detecting if there's dialtone or not.
> I find that surprising as I was used to hylafax with
> regular modems detecting if there was a CARRIER or
> not.
> Anyway, I noticed that if the wires are connected but
> the analog lines are already busy then subsequent
> calls go out through the next trunk.
> So the BUSY or CONGESTION signal is detected on an
> analog line when connected.
>
> I just don't know what to do in case the wires get
> disconnected without having to change the config
> files.
>
> Thanks anyway.
>
> Vieri
>
>
>
>
> ____________________________________________________________________________________Ready for the edge of your seat?
> Check out tonight's top picks on Yahoo! TV.
> http://tv.yahoo.com/
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list