FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

LinkBack Thread Tools
Old 02-16-2010, 01:31 PM
Jon Masters
Default Fedora Talk - Asterisk


Perhaps someone can use this to update the wiki if they have time.

The current recommendations for Fedora Talk "talking" to a private
Asterisk server are incorrect for recent versions. The following
snippets are sufficient for two-way friendly chat, and are a
simplification of the system I use for forwarding to my cell. You dial
an internal Fedora number using a prefix of "5", followed by the
extension, but you can replace that with whatever you like. I have DISA
support on my Asterisk, so I can call myself and enter a password to
access SIP from any phone - can send an example if requested.

Note the hack to munge in a "valid" 10 digit number for the outgoing
caller ID to the cellphone. Depending upon your locality, you may or may
not be able to do this, but your provider may enforce that CID must be a
valid looking 10 digit NANPA allocation as in this case. I explicitly
don't use the DNS records to lookup the correct server, ever.


# /etc/asterisk/sip.conf:

register => FAS_USERNAME:VOIP_PASSWORD@talk.fedoraproject.org
authuser=FAS_USERNAME:VOIP_PASSWORD@fedoraproject. org

# /etc/asterisk/extensions.conf:

# "internal" is the local context for e.g. outgoing trusted calls
exten => _5.,1,Set(CALLERID(number)=VOIP_EXTENSION)
exten => _5.,2,Set(CALLERID(name)="FAS_USERNAME Fedora Talk")
exten => _5.,3,Dial(SIP/${EXTEN:1}@fedora,300,trWw)
exten => _5.,4,PlayBack(invalid)
exten => _5.,5,Hangup

# The above supports call forwarding, recording, and other options


# only do this if you have rules for call recording and forwarding
include => parkedcalls

exten => h,1,HangUp()

exten => s,1,Answer()
exten => s,2,Wait(1)
exten => s,3,PlayBack(call-forwarding)
exten => s,4,Goto(VOIP_EXTENSION,1)
exten => s,5,HangUp()

exten => 3,1,VoiceMail(VOICEMAIL_EXTENSION)
exten => 3,2,HangUp()

exten => _5100570,1,Answer()
exten => _5100570,2,WaitExten(1)
exten => _5100570,3,BackGround(one-moment-please)
exten => _5100570,4,WaitExten(1)
exten => _5100570,5,Set(CallerIDNumber=15550000000${CALLERI D(number)})
exten => _5100570,6,Set(CallerIDNumber=1${CallerIDNumber:-10:10})
exten => _5100570,7,Set(CALLERID(number)=${CallerIDNumber})
exten => _5100570,8,Dial(IAX2/SIP_PROVIDER/CELL_NUMBER,300,tdmWw)
exten => _5100570,9,HangUp()

exten => *,1,Goto(3,1)
exten => *,2,HangUp()

# Have various fun


devel mailing list

Thread Tools

All times are GMT. The time now is 06:24 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org