[Asterisk-Dev] How the Alert-Info mod works
Peter Grace
pgrace at fierymoon.com
Wed Jun 18 21:46:24 MST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Interesting idea. You'd have to have phones that supported
the distinctive ring of the RFC type.. So far, we've
(jtodd, myself) only heard of cisco implementing
Alert-info, and even then it's not up to par with the RFC.
If the phone downloaded the ring every time it had to ring,
then maybe it'd work. However, for all we know it may
download the ringtones to the phone and then cache it?
Many unknowns, because we could only test it on a 7960. If
anyone else happens to know if their sip phone supports
Alert-Info, it'd be an interesting experiment!
Pete
- -----Original Message-----
From: Alex Lopez [mailto:alex at opsys.com]
Sent: Thursday, June 19, 2003 12:35 AM
To: asterisk-dev at lists.digium.com
Cc: pgrace at fierymoon.com
Subject: RE: [Asterisk-Dev] How the Alert-Info mod works
Off Topic, but could This be used to play a wav,gsm,audio
file out of the speaker, for use in paging.
For example:
PAGEGROUP777=SIP/pete&SIP/peter&SIP/petty
exten => 777,1,Record(pagefile)
exten =>
777,2,SetVar(ALERT_INFO=http://asterisk-server/pages/pagefil
e.gsm)
exten => 777,3,Dial,({$PAGEGROUP777})
exten => 777,4,AGI(removefile|pagefile.gsm)
exten => 777,5,Hangup
- -----Original Message-----
From: Peter Grace
Sent: Wednesday, June 18, 2003 8:01 PM
To: asterisk-dev at lists.digium.com
Subject: [Asterisk-Dev] How the Alert-Info mod works
- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
OK, here's the skinny on how the patch works:
The Alert-Info: header is set in module chan_sip, to
whatever contents there are in variable ALERT_INFO. An
example of how
to use this on cisco 7960/ata-186s would be:
exten => 1002,1,SetVar(ALERT_INFO=3)
exten => 1002,2,
exten => 1002,3,Voicemail(u1002)
In this case, the SetVar will cause ALERT_INFO to have 3 in
it's data
portion.. When the Dial commences, chan_sip sees the
ALERT_INFO
variable and pipes "3" into the Alert-Info: header on the
INVITE sent
to the SIP phone.
Now, if we were following the RFC, it'd be more like:
exten =>
1002,1,SetVar(ALERT_INFO=http://www/christina_aguilera=dirty
.wav)
exten => 1002,2,Dial,SIP/pete|Ttr
exten => 1002,3,Voicemail(u1002)
Which would cause Christina's FINEST WORK (har har) to pour
out of the
SIP phone's speaker.
Any questions?
Pete
- - - ---
FLASH:
Princeton Professor threatened for research?
http://www.anti-dmca.org
- - - ---
/------------------------------------------------\
|Peter Grace Phone: 800-467-0192
|Chief Executive Officer Cell: 484-919-1400
|Fiery Moon
|pgrace at fierymoon.com
|IRC: km- AIM: KaiKnight
\------------------------------------------------/
- -----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use
<http://www.pgp.com>
iQA/AwUBPvD9UrzldGJZqFN6EQIU8QCdG58oJpsfcYSn8NM6lTgc/SuY8lwA
oM6R
WwysFCrzLtUO/G9IMVUW3n9o
=w8Up
- -----END PGP SIGNATURE-----
- ---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.487 / Virus Database: 286 - Release Date:
6/1/2003
_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
- ---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.487 / Virus Database: 286 - Release Date:
6/1/2003
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBPvFAH7zldGJZqFN6EQKyhACg5a9xcTrQicgnmw4uHU8mPtHHj1MAn2Lw
vdFdcYnzMtJZ/Cv5xP+P0Hho
=hyj3
-----END PGP SIGNATURE-----
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.487 / Virus Database: 286 - Release Date: 6/1/2003
More information about the asterisk-dev
mailing list