<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"><BASE
href="file://C:\Arquivos de programas\Arquivos comuns\Microsoft Shared\Papel de carta\">
<STYLE>BODY {
        BACKGROUND-POSITION: left top; MARGIN-TOP: 90px; FONT-SIZE: 10pt; COLOR: #000000; BACKGROUND-REPEAT: no-repeat; FONT-FAMILY: Arial
}
</STYLE>
<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff background=cid:000f01c8b689$7cd09b80$0200a8c0@IMPACTO>
<DIV>Bom dia lista, estou utilizando a2billing para tarifar um cliente, onde
estou autenticando ele pelo ip ( sem uso do username e secret ), preciso de uma
ajuda para criar um contexto para que o a2billing valide o cliente e
tarife...toda chamada de que chega o asterisk manda ele para o contexto
from-sip-external e retorna para o cliente numero invalido. Abaixo encaminho o
sip.conf do cliente e o extensions:</DIV>
<DIV> </DIV>
<DIV>extensions</DIV>
<DIV> </DIV>
<DIV>[a2billing]<BR>exten => _X.,1,Wait,1<BR>exten =>
_X.,n,DeadAGI,a2billing.php<BR>exten => _X.,n,Wait,1<BR>exten =>
_X.,n,Hangup</DIV>
<DIV> </DIV>
<DIV>sip.conf</DIV>
<DIV>[7587]<BR>type=peer<BR>fromusername=7587<BR>accountcode=7587<BR>amaflags=billing<BR>nat=yes<BR>dtmfmode=RFC2833<BR>qualify=yes<BR>canreinvite=yes<BR>disallow=all<BR>insecure=very<BR>allow=g729<BR>host=200.157<BR>context=a2billing<BR></DIV>
<DIV>onde 7587 é o username e accountcode gerado pelo a2billing</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> -- Executing NoOp("SIP/200.157.-08606928", "Received incoming SIP
con
nection from unknown peer to 0629959") in new stack<BR> --
Executing Set("SIP/200.157.-08606928", "DID=0629959") in new
s
tack<BR> -- Executing Goto("SIP/200.157.-08606928", "s|1") in
new stack<BR> -- Goto
(from-sip-external,s,1)<BR> -- Executing
GotoIf("SIP/200.157.-08606928",
"0?from-trunk|0629959
6|1") in new stack<BR> -- Executing
Set("SIP/200.157.-08606928", "TIMEOUT(absolute)=15")
in
new stack<BR> -- Channel will hangup at 2008-05-15 12:35:10
UTC.<BR> -- Executing Answer("SIP/200.157.-08606928", "") in
new stack<BR> -- Executing Wait("SIP/200.157.-08606928", "2")
in new stack<BR> -- Executing
Playback("SIP/200.157.-08606928", "ss-noservice") in
new
stack<BR> -- Playing 'ss-noservice' (language
'en')<BR> -- Executing Congestion("SIP/200.157.-08606928", "")
in new stack<BR> == Spawn extension (from-sip-external, s, 6) exited
non-zero on
'SIP/200.157.2
09.114-08606928'<BR> -- Executing NoOp("SIP/200.157-08606928",
"Hangup") in new stack<BR> -- Executing
Set("SIP/200.157.-08606928", "DID=s") in new stack<BR> --
Executing Goto("SIP/200.157-08606928", "s|1") in new stack<BR>
-- Goto (from-sip-external,s,1)<BR> -- Executing
GotoIf("SIP/200.157.-08606928", "0?from-trunk|s|1") in
n
ew stack<BR> -- Executing Set("SIP/200.157.-08606928",
"TIMEOUT(absolute)=15")
in
new stack<BR> -- Channel will hangup at 2008-05-15 12:35:21
UTC.<BR> -- Executing Answer("SIP/200.157.-08606928", "") in
new stack<BR> == Spawn extension (from-sip-external, s, 3) exited non-zero
on
'SIP/200.157.2
09.114-08606928'<BR></DIV></BODY></HTML>