James Bean
2004-Dec-11 16:17 UTC
[Asterisk-Users] does aanyone have an example of how to dial outwith a sip phone on a pstn line?
Charles S. Antrim wrote:
> I am using a card that has an fxo and fxs module.
I am no where near an expert but I have my sip phone working through my
pstn line and this is my config.
/etc/asterisk/sip.conf
[general]
port = 5060
bindaddr = 192.168.69.1
context = sip
disallow = gsm
allow = alaw
disallow = ulaw
nat=disable
srvlookup=no
localnet=192.168.69.0/255.255.255.0
subscribecontext = sip
[snom-james]
type=friend
secret=<password>
host=dynamic
callerid="James Bean" <690>
defaultip=192.168.69.250
dtmfmode=rfc2833
mailbox=690
[bt-karen]
type=friend
secret=<password>
host=dynamic
callerid="Karen Colomb" <691>
defaultip=192.168.69.251
dtmfmode=info
mailbox=691
/etc/asterisk/extensions.conf
[pstn]
exten => s,1,NoOp(Comment Only: Call from ${CALLERIDNUM}) ; Just put a
comment in the CLI for info.
exten => s,2,SetMusicOnHold(random)
exten => s,3,Dial(SIP/snom-james&SIP/bt-karen,45,t)
exten => s,4,Hangup
;exten => s,5,VoiceMail(u100) ;Whatever box you want.
[internal]
exten => i,1,Playback(invalid)
exten => i,2,Hangup
exten => t,1,Hangup
exten => 099,1,Echo ;simple echo test when you dial 099 on your
phone
include => outgoing
include => sip
[outgoing]
exten => _9X.,1,Dial(Zap/g1/${EXTEN:1})
exten => _9X.,2,Congestion()
exten => _9X.,3,Hangup
include => sip
[sip]
exten => 690,1,SetMusicOnHold(random)
exten => 690,2,Dial(SIP/snom-james,30,tr)
exten => 690,3,voicemail2,u690
exten => 690,102,voicemail2,b690
exten => 691,1,SetMusicOnHold(random)
exten => 691,2,Dial(SIP/bt-karen,30,tr)
exten => 691,3,voicemail2,u691
exten => 691,102,voicemail,b691
include => internal
include => outgoing
[from-sip]
include => internal
This isn't the best example of how to do it but it works.
I hope it helps.
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20041211/27565aef/attachment.htm
I have success installing and compiling, but if I reboot I have to modprobe again to get he drivers loaded for the module I am using. I am using rhes31 and a tdm card with one fxo and one fxs. tia
On Sun, 2004-12-12 at 00:36 -0800, Charles S. Antrim wrote:> I have success installing and compiling, but if I reboot I have to modprobe again to get he > drivers loaded for the module I am using. I am using rhes31 and a tdm card with one fxo and > one fxs.This is where reading the mailing list is important. We just covered that for a person Friday. Look in /etc/modprobe.conf and add the modules you need. -- Steven Critchfield <critch@basesys.com>
On Sun, 12 Dec 2004 09:00:50 -0600, Steven Critchfield <critch@basesys.com> wrote:> This is where reading the mailing list is important. We just covered > that for a person Friday. Look in /etc/modprobe.conf and add the modules > you need.Actually, the two fixes that worked to solve this were: 1. Add the following to /etc/rc.d/rc.local: /sbin/modprobe wcfxo or 2. cd to /usr/src/zaptel-1.0.3 and do a "make config" -- Lee
Thanks Lee -----Original Message----- From: Lee <leeb00@gmail.com> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk- users@lists.digium.com> Date: Sun, 12 Dec 2004 12:26:15 -0800 Subject: Re: [Asterisk-Users] Digium Card Error> On Sun, 12 Dec 2004 09:00:50 -0600, Steven Critchfield > <critch@basesys.com> wrote: > > This is where reading the mailing list is important. We just covered > > that for a person Friday. Look in /etc/modprobe.conf and add the > modules > > you need. > > Actually, the two fixes that worked to solve this were: > > 1. Add the following to /etc/rc.d/rc.local: > /sbin/modprobe wcfxo > or > 2. cd to /usr/src/zaptel-1.0.3 and do a "make config" > > -- > Lee > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users