[asterisk-dev] Special Dialplan

Catalin S. jonsonplayer at gmail.com
Sun May 10 07:57:34 CDT 2009


Hello Pavel,

You're right that wasn't correct example... anyway you got the idea. I
finally find a way to do what I want...
I'll share with you guys.


exten => _07XXXXXXXX,1,Wait(2)
exten => _07XXXXXXXX/1020,n,Goto(dial1)
exten => _07XXXXXXXX/2008,n,Goto(dial1)
exten => _07XXXXXXXX/1012,n,Goto(dial1)
exten => _07XXXXXXXX/8000,n,Goto(dial1)
exten => _07XXXXXXXX,1,Dial(SIP/voippeer/004${EXTEN},60,t)
exten => _07XXXXXXXX,n,Playback(invalid)
exten => _07XXXXXXXX,n,Hangup
exten => _07XXXXXXXX,n(dial1),Dial(SIP/8001,60,D(wwww1234#wwww${EXTEN}),t)
exten => _07XXXXXXXX,n,Playback(invalid)
exten => _07XXXXXXXX,n,Hangup

In that example I wanted that for extensions 1020, 2008, 1012 and 8000
to use a spa3102 fxs/fxo and dial through that authenticated line with
pin 1234.
For the rest i want to use another voippeer account. Thank you for all...


On Sun, May 10, 2009 at 7:21 AM, Pavel Troller <patrol at sinus.cz> wrote:
>> Hello ppl,
>>
>> I want to make a special dial plan for routing calls to a peer which
>> has an pin protection.
>> Normally if you want to call through that peer you must first enter
>> pin for example 1234#
>> and after that you hear the tone from line and after that you can dial
>> desired numbers.
>>
>> I tried something like that, but doesn't worked. Did somebody have some clues?
>>
>> exten => 0X.,n(dial1),Dial(SIP/peer-account/1234#${0xxxxxxxxx},15,rt)
>>
>> Thank you guys for any help. I appreciate.
>>
> Hi!
>  I suppose that an answer comes from the peer before the PIN can be entered ?
>  It's obvious for the typical two-stage dialling systems (DISA etc.).
>  If this is the case, try this:
>
>  exten => 0X.,n(dial1),Dial(SIP/peer-account,15,D(1234#w${EXTEN})rt)
>
>  Explanation:
>  - Nothing is sent as a primary number
>  - After an answer comes back, a PIN, 0.5 second pause and your number is sent
> forward (I don't understand your example with ${0xxxxxxxxxx}).
>
> With regards, Pavel Troller
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>



More information about the asterisk-dev mailing list