Hi everybody
I have a small problem. I have set up a callweaver server with two  
SIP accounts. I call on one, callweaver pics up, checks the caller id  
and if it's unknown then it asks for a pin, after the PIN I can dial  
a number and it calls out on the second line. All works perfect from  
mobile phones, but today I tried for the first time from landline  
with the PIN. I just get to hear the message "login incorrect" at  
first I thought it could be some DTMF problem, so I tried all 4 dtmf  
modes but none solved my problem.
After thinking a bit about it, I'm no so sure anymore if it really is  
a DTMF problem.
Before I implemented the PIN thing, I could use the landline phone to  
do the same thing. I called my first sip account, callweaver picked  
up, I dialed and it called trough the second sip account.
I'm not 100% sure, but ... when I dial the number, isn't this also  
DTMF? If so, then my problem is somewhere else.

Now, to my config:

sip.conf

[12345]
type=peer
username=12345
fromuser=12345
secret=******
context=default
host=sip.yesss.at
fromdomain=yesss.at
insecure=very
caninvite=no
canreinvite=no
nat=no
disallow=all
allow=ulaw
allow=alaw
dtmfmode=inband

extensions.conf

[inyess]
exten => 12345,1,GotoIf(${DB_EXISTS(blacklist/${CALLERIDNUM})}?102:2) 
exten => 12345,2,NoOp(Incoming call on yesss.at)
exten => 12345,3,Dial(SIP/cris&SIP/crishome,10)
exten => 12345,4,Answer
exten => 12345,5,Set(TIMEOUT(digit)=4)
exten => 12345,6,Set(TIMEOUT(response)=5)
exten => 12345,7,Authenticate(/pass,da) ; read the pass using the / 
pass key in the database, set the account code to the pass
exten => 12345,8,Goto(31) ; caller id and account ok
exten => 12345,9,Hangup() ; just in case...

exten => 12345,102,NoOp(Callerid call on yesss.at) ;caller id ok,  
read account
exten => 12345,103,DBget(ACCOUNT=blacklist/${CALLERIDNUM})
exten => 12345,104,SetAccount(${ACCOUNT})
exten => 12345,105,Goto(31) ; caller id and account ok

; used by authenticated users to get access
exten => 12345,31,NoOp(${CALLERIDNUM})
exten => 12345,32,Set(TIMEOUT(digit)=4)
exten => 12345,33,Set(TIMEOUT(response)=5)

exten => 12345,34,SetGroup(${ACCOUNTCODE}) ; set the group to  
accountcode in order to limit the number of calls
exten => 12345,35,CheckGroup(2) ; if more than two calls at a time  
hangup
exten => 12345,36,ResetCDR()
exten => 12345,37,Goto(carddial,12345,1 )

exten => 12345,136, Playback(vm-goodbye) ; checkgroup failed, more  
than one call for this account, maybe add an announcement
exten => 12345,137, Hangup


exten => s,204, playback(vm-goodbye) ;NoOp("cannot find calerid/ 
account in blacklist")
exten => s,205, Hangup


Any help would be appreciated

Regards, Cris

--
Cristian Livadaru
http://livadaru.net



_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to