[asterisk-users] Asterisk 1.8.10

Karsten Wemheuer kwem at gmx.de
Tue Jun 12 02:26:54 CDT 2012


Hii

Am Montag, den 11.06.2012, 16:12 -0700 schrieb motty.cruz:
> Hello, 
> How to change ring tone on interncal call? I'm using Centos 5.8 Asterisk 1.8
> 
> exten =>
> 666,1,SIPAddHeader("Alert-Info:<http://1.2.3.4/ringtones/ghost.wav>")
> exten => 666,n,Dial(SIP/10)
> 
> The above would not how to defirenciate from internal call or external call?

Warren told one way to differentiate between internal and external call.
Another would be to set a variable in incoming context and check against
it before set up the additional header.

Take into account, that this feature is vendor specific as Yaroslav
said. To my knowledge snom, Tiptel, Yealink supports ring tones via
Alert-Info. Aastra phones supports it too, but You can only select
between bellcore cadences (no download of custom ringtones). Snom phones
needs sln format whereas tiptel/yealink needs ulaw coding. Other phones
may support this feature too (Grandstream?, Linksys?, Polycom?).

HTH,

Karsten





More information about the asterisk-users mailing list