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? Thanks, motty
Hi As far as I know "Alert-Info" is as far as vendor specific extension to SIP used by CISCO VOIP-gateways only. Didn't noticed any other vendors to support that. Software clients neither. So such trick is only usable in conjunction with CISCO. Anyway, wait another answer, probably somebody knows more. 2012/6/12 motty.cruz <motty.cruz at gmail.com>:> 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? > > > Thanks, > motty > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > ? ? ? ? ? ? ? http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > ? http://lists.digium.com/mailman/listinfo/asterisk-users
On Mon, Jun 11, 2012 at 6:12 PM, motty.cruz <motty.cruz at gmail.com> wrote:> 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? >Just a thought, but maybe set a variable in your sip.conf for each internal peer, and then check for that variable before you do the SipAddHeader command (using an ExecIf statement). -- Thanks, --Warren Selby, dCAP http://www.SelbyTech.com <http://www.selbytech.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120611/062faffc/attachment.htm>
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