login | register
Wed 01 of Aug, 2007 [09:26 UTC]

voip-info.org

Search with Google
Search this site with Google. Results may not include recent changes.

Web www.voip-info.org
Shoutbox
  • Aykut, Wed 01 of Aug, 2007 [07:53 UTC]: Hi all, does anybody know about Thomson ST2030 SIP phone. I have upgraded it to latest version (1.56) but "Hold" and "Conf" features are not working after the upgrade ?? Do you know any solution or do you have Ver. 1.52 ?? Where can I find it?
  • Edward J Brown, Tue 31 of Jul, 2007 [23:33 UTC]: Has anybody experienced Choppy voice quality when using a Linksys SPA942 in an Asterisk Conference bridge? It works fine with my polycom and Cisco, but sucks with my Linksys.
  • www.astawerks.com, Fri 27 of Jul, 2007 [18:00 UTC]: does anyone use asterisk on top of clark connect? does it work good?
  • simon, Fri 27 of Jul, 2007 [14:16 UTC]: Hi All, Has anyone here managed to get the Cisco79x1 to successfully fail over to the backup proxy. I have 2 asterisk servers , handsets all register and function, except that backup proxy function doesn't work. Any working example would be very apprecia
  • Matthew Richmond, Thu 26 of Jul, 2007 [03:40 UTC]: using the page() application to page across our building...often the meetme conferences don't disconnect after the caller hangs up. Anyone else having this problem. (using Polycom phones)
  • Matthew Richmond, Wed 25 of Jul, 2007 [02:58 UTC]: thanks Nicholas Blasgen! I haven't worked with AGI before, but there's always a first! Thanks again!
  • Nicholas Blasgen, Tue 24 of Jul, 2007 [19:18 UTC]: Matthew Richmond, AGI will handle all that for you.
  • sam, Mon 23 of Jul, 2007 [16:39 UTC]: need help - certain voicemail extension will stop working and recording voicemail on asterisk - anyone know why and how to fix it? Thanks
  • john haji, Mon 23 of Jul, 2007 [14:55 UTC]: free calls to pakistan
  • bong, Sat 21 of Jul, 2007 [19:09 UTC]: hi good day to all can anyone help me how to configured the nortel sip to the signaling server and how to activate in mobile w/ sip compatible without mcs
Server Stats
  • Execution time: 0.45s
  • Memory usage: 2.19MB
  • Database queries: 32
  • GZIP: Disabled
  • Server load: 2.56

MySQL custom ringtones

Custom ringtones

using ALERT_INFO
This is a little script that will you let personalize
ringwave on a Snom phone and every phone that supports ALERT_INFO
field ( i.e. Cisco phones ).
You must place this script before the DIAL or QUEUE statement and
it will choose the best ringwave for the type of call specified.
It bases is search on a mysql table that contains a prefix for the callerid,
a prefix for the called extension and the filename of the ringtone.
when a call comes in this script matches the callerid and the called extension
with the database. Keep in mind that it gives precedence basing on the maximum
length of the best matching pattern but caller pattern has a 10x multiplier so
it is 10 time more important the caller than the called extension.

Let us see some examples:

the table contains

cid_fromcid_toringwave
external.wav
8
internal.wav
0805myexternal.wav
8805myinternal.wav



supposed that the local dialplan states that 8XX are local
number everyone will have "external.wav" as ringtone for external
calls and "internal.wav" BUT the 805 extension will have "myexternal.wav"
for external calls and "myinternal.wav" for internal calls.
you can be more and more precise adding more prefix for calls local to
you city, your country and so on.
the ringwaves must reside on a web server so that phones can download
them as they need them.

here is the script:

 exten => s-sound,1,MYSQL(Connect connid myhostname login password databasename)
 exten => s-sound,2,MySQL(Query resultid ${connid} SELECT\ ringwave\,CASE WHEN ISNULL(cid_from)\ then\ 0\ ELSE\ LENGTH(cid_from)*10\ END+CASE\ WHEN\ ISNULL(cid_to)\ then\ 0\ ELSE\ LENGTH(cid_to)\ END\ from\ ringer\ where\ (cid_from\ is\ NULL\ OR\ LEFT(\"${CALLERIDNUM}\"\,LENGTH(cid_from))=cid_from)\ AND\ (cid_to\ is\ NULL\ OR\ LEFT(\"${ARG1}\"\,LENGTH(cid_to))=cid_to)\ order\ by\ 2\ desc)
 exten => s-sound,3,Noop(result1 ${resultid})
 exten => s-sound,4,GotoIf($[empty${resultid} = empty]?30:5)
 exten => s-sound,5,MYSQL(Fetch foundrow ${resultid} selectedringwave)
 exten => s-sound,6,Noop(foundrow ${foundrow})
 exten => s-sound,7,GotoIf($["${foundrow}" = "1"]?100:30)

 exten => s-sound,30,SetVar(ALERT_INFO=${DEFAULT_SOUND))
 exten => s-sound,31,Goto(s-sound,110)

 exten => s-sound,100,SetVar(ALERT_INFO=http://webserver/${selectedtingwave))
 exten => s-sound,101,Goto(s-sound,110)

 exten => s-sound,110,MYSQL(Clear ${resultid} )
 exten => s-sound,111,MYSQL(Disconnect ${connid})
 exten => s-sound,112,Goto  ( goto DIAL statement )

Here is the MySQL table needed:

 CREATE TABLE ringer (
    cid_from char(20)  default NULL,
    cid_to char(20)  default NULL,
    ringwave char(20) default NULL
 ) ;

have a nice ring.
Eugenio

See also


Created by edevena, Last modification by JustRumours on Tue 09 of Aug, 2005 [15:48 UTC]

Comments Filter

this doesn't work on sip POS3-07-5-00

by tc0nn on Sunday 18 of December, 2005 [20:01:31 UTC]
<pre>I tried several variations of the basic set/setvar(ALERT_INFO=...) and nothing seems to work.
Can somebody verify this does in fact work on Cisco 7960 SIP vPOS3-7-5-00 ?

I have:
extensions.conf:
exten=>s,1,set(ALERT_INFO=hohoho.raw)
;also tried these
exten=>s,1,set(ALERT_INFO=http
//www.timsnet.com/hohoho.raw)

;exten=>s,1,setvar(ALERT_INFO=hohoho.raw)
exten=>s,2,dial(SIP/6010)


Nothing but generic ring on this end.
</pre>

Please update this page with new information, just login and click on the "Edit" or "Add Comment" button above. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

Sponsored by:

Terms of Service Privacy Policy
© 2003-2007 Arte Marketing, Inc.

Powered by bitweaver