[Asterisk-Users] still no solution for me, if one provider fails.
Ronald Wiplinger
ronald at elmit.com
Fri Apr 14 07:24:06 MST 2006
Peter J Dean wrote:
> We do it slightly different, rather than multiple macros, we do it
> within a single macro.
>
Peter,
I have to this some questions:
1. I have not seen "n(tryiax01)" construction before. Can you explain
it, please and how you give this to the macro?
I know only exten => s,4,Goto(s-${DIALSTATUS},1)
2. Your macro covers only CHANUNAVAIL and CONGESTION
There are more than that, like BUSY, CANCEL, NOANSWER, ANSWER
What does each one of them exactly mean? When is it CONGESTION and when
is it BUSY? When is CHANUNAVAIL and when NOANSWER? There is a very fine
line between.
3. You are using the options tT the called and the calling party can
transfer the call. When is important that the calling party can transfer
a call? If we use tT or other options, we cannot use anymore
canreinvite=yes - or when and when can we not do that?
I did not add any options to my users, however, if they do not hear the
ring, they are not happy! On the other side, I cannot route all calls
through my *
4. If a call cannot be completed, than I would like to know it!!!
I tried to accomplish that once:
;exten => _9011Z.,513,SYSTEM(mail -s 'VPBX all lines in use'
ronald at elmit.com)
However, this did not work. Do you know what I made wrong here?
> ;
> ;------------------------
> ;
> [macro-outbound-calling]
> exten => s,1,NoOp("Debug: Outbound Call from ${CALLERID}")
> ;
> exten => s,n(tryiax01),NoOP("Debug [${CONTEXT}]: Trying 1st IAX2
> Service")
> exten => s,n,Dial(IAX2/${CarrierA}/${ARG1},60,tT)
> exten => s,n,GotoIf($["${DIALSTATUS}" :
> "(CHANUNAVAIL|CONGESTION)"]?tryiax02:Hangup)
> ;
> exten => s,n(tryiax02),NoOP("Debug [${CONTEXT}]: Trying 2nd IAX2
> Service")
> exten => s,n,Dial(IAX2/${CarrierB}/${ARG1},60,tT)
> exten => s,n,GotoIf($["${DIALSTATUS}" :
> "(CHANUNAVAIL|CONGESTION)"]?trypstn:Hangup)
> ;
> exten => s,n(trypstn),NoOP("Debug [${CONTEXT}]: Now trying the PSTN
> Backup Lines")
> exten => s,n,etc, etc....
> ;
> exten => s,n,Hangup()
>
> Then the extension string becomes;
>
> exten => _9011Z.,103,Macro(outbound-calling,${EXTEN})
>
>
> On 11/04/2006, at 6:55 PM, Mimmus wrote:
>
>>
>>>> I have now:
>>>> exten => _9011Z.,103,Dial(SIP/011${EXTEN:4}@provider-a)
>>>> ;exten => _9011Z.,103,Dial(SIP/011${EXTEN:4}@provider-b)
>>>> ;exten => _9011Z.,103,Dial(SIP/011${EXTEN:4}@provider-c)
>>>> exten => _9011Z.,104,NoOp(${DIALSTATUS})
>>
>> I configured two trunks for my outgoing calls:
>>
>> [outrt-001-out]
>> exten => _0.,1,Macro(dialout-trunk,2,${EXTEN:1},)
>> exten => _0.,2,Macro(dialout-trunk,5,${EXTEN:1},)
>> exten => _0.,3,Macro(outisbusy) ; No available circuits
>>
>> If first fails, second is automatically used but I get a CDR with
>> disposition = 'FAILED'. How can I avoid this?
>>
>> --
>> Domenico Viggiani
>>
>> _______________________________________________
>> --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
>
>
--
Ronald Wiplinger (CEO of ELMIT)
http://www.elmit.com http://voip.elmit.com http://e-paper.elmit.com
Tel. (M) +886.939.775.516 (O) +886.2.2835.7765 (ENUM) or FWD 511208
- I'm a SpamCon Foundation Member, #694, Verify it at http://www.spamcon.org
PS: Spam prevention!
Our system is protected with a spam prevention program.
If you send us an e-mail, our system will send you a confirmation message back. Just reply to this confirmation message please.
After receiving this confirmation message, our system will send the hold message (one) and all future messages (after the received confirmation message) to me without asking you again.
More information about the asterisk-users
mailing list