MobilePhone-->Asterisk-->PSTN Call

I am not sure whether this is possible or not, below is my question:

I have working asterisk pbx connected to PSTN

I want to dial a DID number on asterisk and enter a password, then i should hear a DIAL Tone, where i can key-in a abbreviated number or an international number to dial out.

Is this possible?


this is posssible with help from Asterisk cmd DISA which give you dail tone to dail out side PSTn number
try that more info on


Thanks Amit. Can you please share a sample configuration. i will be reading DISA documentation for more information.


plz check & asteriskguru.ocm
wher u can find DISA & its examples search it on voip-info its very helpful for you for any query


Simple approach will be as follows:
1- tune your zapata.conf to land your call , for examplae , in “in-2-out” context

exten => s,1,Answer()
exten => s,2,Background(Please-Enter-Number)
exten =>_1970X.,1,Dial(SIP/${EXTEN:4}) ; or whatever tech. you want to use.
in the above , 1970 will act as your password , trim it from the ${EXTEN} and go with the pure number , so no need for coding additional password verificaton .
if you want dial tone try "ignorepattern"

Thanks Amit & Vaio73,

I configured DISA and it is working fine. Now i want to add more features like, by matching a caller-id, it should not ask any password and directly provide DIAL tone. searching for more info. Please help if you know how to do this.