[Asterisk-Users] LCR

Jean-Christophe Heger jcheger at acytec.com
Sun May 29 01:20:45 MST 2005


exten => _0.,1,Dial(Zap/g1/9${EXTEN:1})
exten => _0.,102,Dial(Zap/g1/6129${EXTEN:1})

:1 strip out the digit on the left.


Claudio Angeloni a écrit :

> Ladies and Gents....
>  
> Please be patient as I try to explain what I am trying to achieve..
>  
> I have a PSTN line and a Freshtel account, what I want to do is have
> the PSTN line as the first choice for outgoing calls for local calls
> and Freshtel as the second choice. The problem is that it's easy
> enough to set up both individually but how do I get the "second
> choice" drop the leading "0" and add "612" to the Freshtel trunk...
>  
> In other words...
> USER - DIALS 0-9xxx xxxx
> ASTERISK 1st choice dials PSTN drops 0 dials 9xxx xxxx
> Freshtel   2nd choice drops 0 adds 612 9xxx xxxx
>  
> I guess once I can do it for local calls, STD and IDD numbers would
> follow the same rules....
>  
> Please excuse me in advance if this is a lame question net I'm new to
> Asterisk and I am still trying to get my head around it..
>  
> Thank You
> Claudio Angeloni
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list