[Asterisk-Users] custom ring tone

Colin Anderson ColinA at landmarkmasterbuilder.com
Thu Sep 22 13:02:04 MST 2005


>??
>Ringback is provided by your PSTN provider until answer by asterisk.
>You have no control until you answer
>Then you go to IVR, VM or ??

OP said T1/E1, so (usually) there's no ringing delay until Asterisk picks up
like in a POTS line. Answering a T1/PRI line is transparent to the caller
and then you can fake any ringtone you want. So:

1. Create your ringtone, call it MyCustomRingtone.mp3 & copy it to
/var/lib/asterisk/mohmp3

2. Edit /etc/asterisk/musiconhold.conf:

[classes]

default => MyCustomRingtone:/var/lib/asterisk/mohmp3

3. Modify extensions.conf as follows:

[my-inbound-context]

exten => s,1,Wait(1) 'Wait 1 so PRI has time to send Caller ID name fully
exten => s,2,Answer()
exten => s,3,Dial(SIP/blabla,40,m) <--the 'm' parameter plays music on hold
whilst dialling. In a perfect world, the 'MyCustomRingtone.mp3' file will
play, faking a ringtone to the caller




More information about the asterisk-users mailing list