[asterisk-users] Defining a call

Danny Nicholas danny at debsinc.com
Wed Mar 25 08:27:12 CDT 2009


Here is a page that provides a solution to your question:

http://wiki.astripedia.org/index.php/Asterisk_HowTo%27s#Asterisk_Ringtone_id
entification

This is the actual snippet from the page:

Asterisk Ringtone identification

An Asterisk macro using ringtone identification. In companies, it makes
sense to detect the distinction between an internal and an external call.

That provide the following Macro, which in is entered in the configuration
file extensions.conf, on FreePBX this is the file extensions_custom.conf.

In this example with SIPAddHeader, this is here for "global" settings, for
all external calls now sounds a different tone, the first command generates
an additional 0 (Zero) to add automatically a valid prefix for outgoing dial
number while call externally.

[macro-exten_did_prefix] 

exten => s,1,Set(CALLERID(num)=0${CALLERID(num)})
exten => s,1,Set(CALLERID(num)=${CALLERID(num)})
exten => s,n,SIPAddHeader("Alert-Info:
<http://127.0.0.1>\;info=alert-external\;x-line-id=0;")



-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Nick Reed
Sent: Wednesday, March 25, 2009 5:59 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Defining a call

Hi All, 

Does anyone know if it is possible to define a different ring tone for
internal/external calls within Asterisk? If so how? We are using
Grandstream 200 and Aastra 55i's

If any one has any links/docs they could forward that would be great.

Cheers

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list