No subject


Segunda Agosto 11 22:30:11 BRT 2008


When defining your trunk configuration, you can take asterisk trunk
configuration. You have to insert the same name you use to define the trunk
in asterisk. If you are defining a SIP trunk and the carrier needs
authentication, remember to add the following configuration in sip.conf

By


2008/8/24 Samuel Ferreira da Silva <samuel_tiosam at hotmail.com>

>
> Ol=E1 Pessoal,
>
> Tenho um a2billing aqui s=F3 que ele n=E3o liga j=E1 cadastrei o tronco n=
o no
> sip.conf.
> criei no a2billing o tronco  como segue ai abaixo ja dei permiss=E3o pros
> arquivos relacionados com o a2billing
> estou discando : 0055773471XXXX.
>
> Op=E7=E3o: > Create provider
>
> PROVIDER NAME :telebrasilvoip
>
> Op=E7=E3o: > Add trunk
>
> VOIP-PROVIDER :telebrasilvoip
> LABEL : telebrasilvoip1
> ADD PREFIX: em branco
> REMOVE PREFIX: em branco
> PROVIDER TECH: SIP
> PROVIDER IP: sip.telebrasilvoip.com.br
> ADDITIONAL PARAMETER: em branco
> FAILOVER TRUNK: NOT DEFINED
>
> Op=E7=E3o > Create Customers =3D>  CADASTRADO
> Op=E7=E3o > Add Rate =3D> CADASTRADO
> OP=C7=C3O > Create SIP-FRIEND =3D> CADASTRADO
> Op=E7=E3o >  Create Call Plan  =3D>  CADASTRADO
>
> NO SIP.CONF:
>
> register=3D40204500:minhasenha at sip.telebrasilvoip.com.br:5060/40204500
>
> [40204500]
> username=3D40204500
> type=3Dpeer
> secret=3D minhasenha
> port=3D5060
> insecure=3Dvery
> host=3Dsip.telebrasilvoip.com.br
> fromuser=3D40204500
> fromdomain=3Dsip.telebrasilvoip.com.br
> dtmfmode=3Drfc2833
> disallow=3Dall
> context=3Da2billing
> allow=3Dgsm
> allow=3Dg729
> allow=3Dilbc
> allow=3Dalaw
> #include additional_a2billing_sip.conf
>
> NO EXTENSIONS.CONF
> [a2billing]
> include =3D> default
> include =3D> demo
> exten =3D> _X.,1,Answer
> exten =3D> _X.,n,Wait(1)
> exten =3D> _X.,n,AGI(a2billing.php|1)
> ;exten =3D> _X.,n,DeadAGI(a2billing.php|1)
> exten =3D> _X.,n,Hangup
>
> exten=3D> _X.,Dial(SIP/${EXTEN}@40204500,90,rT<SIP/$%7BEXTEN%7D at 40204500,=
90,rT>
> )
> [a2billing-callback]
> exten =3D> _X.,1,AGI(a2billing.php|1|callback)
> exten =3D> _X.,n,Hangup
>
> [a2billing-cid-callback]
> exten =3D> _X.,1,AGI(a2billing.php|1|cid-callback|34) ;last parameter is =
the
> callback area code
> exten =3D> _X.,n,Hangup
>
> [a2billing-all-callback]
> exten =3D> _X.,1,AGI(a2billing.php|1|all-callback|34) ;last parameter is =
the
> callback area code
> exten =3D> _X.,n,Hangup
> [a2billing-predictivedialer]
> exten =3D> _X.,1,AGI(a2billing.php|1|predictivedialer)
> exten =3D> _X.,n,Hangup
> [a2billing-did]
> exten =3D> _X.,1,AGI(a2billing.php|1|did)
> exten =3D> _X.,2,Hangup
>
> [a2billing-voucher]
> exten =3D> _X.,1,AGI(a2billing.php|1|voucher)
> ;exten =3D> _X.,1,AGI(a2billing.php|1|voucher|44) ; will add 44 in front =
of
> the callerID for the CID authentication
> exten =3D> _X.,n,Hangup
>
> SAIDA DO AGI:
>
> Verbosity is at least 15
>     -- Remote UNIX connection
>     -- Executing Answer("SIP/0829399439-0819b770", "") in new stack
>     -- Executing Wait("SIP/0829399439-0819b770", "1") in new stack
>     -- Executing AGI("SIP/0829399439-0819b770", "a2billing.php|1") in new
> stack
>     -- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php
> AGI Tx >> agi_request: a2billing.php
> AGI Tx >> agi_channel: SIP/0829399439-0819b770
> AGI Tx >> agi_language: en
> AGI Tx >> agi_type: SIP
> AGI Tx >> agi_uniqueid: 1219597073.3
> AGI Tx >> agi_callerid: 132784311872962
> AGI Tx >> agi_calleridname: unknown
> AGI Tx >> agi_callingpres: 0
> AGI Tx >> agi_callingani2: 0
> AGI Tx >> agi_callington: 0
> AGI Tx >> agi_callingtns: 0
> AGI Tx >> agi_dnid: 005507734713163
> AGI Tx >> agi_rdnis: unknown
> AGI Tx >> agi_context: a2billing
> AGI Tx >> agi_extension: 005507734713163
> AGI Tx >> agi_priority: 3
> AGI Tx >> agi_enhanced: 0.0
> AGI Tx >> agi_accountcode: 0829399439
> AGI Tx >>
>     -- AGI Script a2billing.php completed, returning 0
>     -- Executing Hangup("SIP/0829399439-0819b770", "") in new stack
>   =3D=3D Spawn extension (a2billing, 005507734713163, 4) exited non-zero =
on
> 'SIP/0829399439-0819b770'
> verde*CLI>
>
> Se alguem tem uma sugest=E3o de configura=E7=E3o me ajude.
>
> Atenciosamente:
> Samuel Ferreira da Silva
> MSN : samuel_tiosam at hotmail.com
>
>
>
>
>
>
> ------------------------------
> Instale a Barra de Ferramentas com Desktop Search e ganhe EMOTICONS para =
o
> Messenger! =C9 GR=C1TIS! <http://www.msn.com.br/emoticonpack>
>
> _______________________________________________
> Compre uma camiseta da AsteriskBrasil.org!
> http://www.voipmania.com.br
>
> Acesse o canal IRC de discuss=E3o sobre Asterisk em Portugu=EAs Brasileir=
o na
> rede Freenode.net: #asterisk-br
> _______________________________________________
> Lista de discuss=F5es AsteriskBrasil.org
> AsteriskBrasil at listas.asteriskbrasil.org
> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>

------=_Part_18967_19822886.1219613378467
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<div dir=3D"ltr"><div>Acho isso o seu erro:</div>
<div>&nbsp;</div>
<div>From the Manual:</div>
<div>&nbsp;</div>
<div>When defining your trunk configuration, you can take asterisk trunk co=
nfiguration. You have to insert the same name you use to define the trunk i=
n asterisk. If you are defining a SIP trunk and the carrier needs authentic=
ation, remember to add the following configuration in sip.conf</div>

<div>&nbsp;</div>
<div>By</div>
<div><br>&nbsp;</div>
<div class=3D"gmail_quote">2008/8/24 Samuel Ferreira da Silva <span dir=3D"=
ltr">&lt;<a href=3D"mailto:samuel_tiosam at hotmail.com">samuel_tiosam at hotmail=
.com</a>&gt;</span><br>
<blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0=
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>&nbsp;<br>Ol=E1 Pessoal,<br>&nbsp;<br>Tenho um a2billing aqui s=F3 que=
 ele n=E3o liga j=E1 cadastrei o tronco no no sip.conf.<br>criei no a2billi=
ng o tronco&nbsp; como segue ai abaixo ja dei permiss=E3o pros arquivos rel=
acionados com o a2billing<br>
estou discando : 0055773471XXXX.<br>&nbsp;<br>Op=E7=E3o: &gt; Create provid=
er<br>&nbsp;<br>PROVIDER NAME :telebrasilvoip <br>&nbsp;<br>Op=E7=E3o: &gt;=
 Add trunk<br>&nbsp;<br>VOIP-PROVIDER :telebrasilvoip<br>LABEL : telebrasil=
voip1<br>ADD PREFIX: em branco<br>
REMOVE PREFIX: em branco<br>PROVIDER TECH: SIP<br>PROVIDER IP: <a href=3D"h=
ttp://sip.telebrasilvoip.com.br/" target=3D"_blank">sip.telebrasilvoip.com.=
br</a><br>ADDITIONAL PARAMETER: em branco<br>FAILOVER TRUNK: NOT DEFINED<br=
>
&nbsp;<br>Op=E7=E3o &gt; Create Customers =3D&gt;&nbsp; CADASTRADO<br>Op=E7=
=E3o &gt; Add Rate =3D&gt; CADASTRADO<br>OP=C7=C3O &gt; Create SIP-FRIEND =
=3D&gt; CADASTRADO<br>Op=E7=E3o &gt;&nbsp; Create Call Plan&nbsp; =3D&gt;&n=
bsp; CADASTRADO<br>&nbsp;<br>NO SIP.CONF:<br>&nbsp;<br>register=3D<a href=
=3D"http://40204500:minhasenha@sip.telebrasilvoip.com.br:5060/40204500" tar=
get=3D"_blank">40204500:minhasenha at sip.telebrasilvoip.com.br:5060/40204500<=
/a><br>
<br>[40204500]<br>username=3D40204500<br>type=3Dpeer<br>secret=3D minhasenh=
a<br>port=3D5060<br>insecure=3Dvery<br>host=3D<a href=3D"http://sip.telebra=
silvoip.com.br/" target=3D"_blank">sip.telebrasilvoip.com.br</a><br>fromuse=
r=3D40204500<br>
fromdomain=3D<a href=3D"http://sip.telebrasilvoip.com.br/" target=3D"_blank=
">sip.telebrasilvoip.com.br</a><br>dtmfmode=3Drfc2833<br>disallow=3Dall<br>=
context=3Da2billing<br>allow=3Dgsm<br>allow=3Dg729<br>allow=3Dilbc<br>allow=
=3Dalaw<br>#include additional_a2billing_sip.conf<br>
<br>NO EXTENSIONS.CONF <br>[a2billing]<br>include =3D&gt; default<br>includ=
e =3D&gt; demo<br>exten =3D&gt; _X.,1,Answer<br>exten =3D&gt; _X.,n,Wait(1)=
<br>exten =3D&gt; _X.,n,AGI(a2billing.php|1)<br>;exten =3D&gt; _X.,n,DeadAG=
I(a2billing.php|1)<br>
exten =3D&gt; _X.,n,Hangup<br>&nbsp;<br>exten=3D&gt; _X.,Dial(<a href=3D"ma=
ilto:SIP/$%7BEXTEN%7D at 40204500,90,rT" target=3D"_blank">SIP/${EXTEN}@402045=
00,90,rT</a>)<br>[a2billing-callback]<br>exten =3D&gt; _X.,1,AGI(a2billing.=
php|1|callback)<br>
exten =3D&gt; _X.,n,Hangup<br><br>[a2billing-cid-callback]<br>exten =3D&gt;=
 _X.,1,AGI(a2billing.php|1|cid-callback|34) ;last parameter is the callback=
 area code<br>exten =3D&gt; _X.,n,Hangup<br><br>[a2billing-all-callback]<br=
>exten =3D&gt; _X.,1,AGI(a2billing.php|1|all-callback|34) ;last parameter i=
s the callback area code<br>
exten =3D&gt; _X.,n,Hangup<br>[a2billing-predictivedialer]<br>exten =3D&gt;=
 _X.,1,AGI(a2billing.php|1|predictivedialer)<br>exten =3D&gt; _X.,n,Hangup<=
br>[a2billing-did]<br>exten =3D&gt; _X.,1,AGI(a2billing.php|1|did)<br>exten=
 =3D&gt; _X.,2,Hangup<br>
<br>[a2billing-voucher]<br>exten =3D&gt; _X.,1,AGI(a2billing.php|1|voucher)=
<br>;exten =3D&gt; _X.,1,AGI(a2billing.php|1|voucher|44) ; will add 44 in f=
ront of the callerID for the CID authentication<br>exten =3D&gt; _X.,n,Hang=
up<br>
<br>SAIDA DO AGI:<br>&nbsp;<br>Verbosity is at least&nbsp;15<br>&nbsp;&nbsp=
;&nbsp; -- Remote UNIX connection<br>&nbsp;&nbsp;&nbsp; -- Executing Answer=
(&quot;SIP/0829399439-0819b770&quot;, &quot;&quot;) in new stack<br>&nbsp;&=
nbsp;&nbsp; -- Executing Wait(&quot;SIP/0829399439-0819b770&quot;, &quot;1&=
quot;) in new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing AGI(&quot;SIP/0829399439-0819b770&quot;, &q=
uot;a2billing.php|1&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Launched A=
GI Script /usr/share/asterisk/agi-bin/a2billing.php<br>AGI Tx &gt;&gt; agi_=
request: a2billing.php<br>
AGI Tx &gt;&gt; agi_channel: SIP/0829399439-0819b770<br>AGI Tx &gt;&gt; agi=
_language: en<br>AGI Tx &gt;&gt; agi_type: SIP<br>AGI Tx &gt;&gt; agi_uniqu=
eid: 1219597073.3<br>AGI Tx &gt;&gt; agi_callerid: 132784311872962<br>AGI T=
x &gt;&gt; agi_calleridname: unknown<br>
AGI Tx &gt;&gt; agi_callingpres: 0<br>AGI Tx &gt;&gt; agi_callingani2: 0<br=
>AGI Tx &gt;&gt; agi_callington: 0<br>AGI Tx &gt;&gt; agi_callingtns: 0<br>=
AGI Tx &gt;&gt; agi_dnid: 005507734713163<br>AGI Tx &gt;&gt; agi_rdnis: unk=
nown<br>
AGI Tx &gt;&gt; agi_context: a2billing<br>AGI Tx &gt;&gt; agi_extension: 00=
5507734713163<br>AGI Tx &gt;&gt; agi_priority: 3<br>AGI Tx &gt;&gt; agi_enh=
anced: 0.0<br>AGI Tx &gt;&gt; agi_accountcode: 0829399439<br>AGI Tx &gt;&gt=
; <br>
&nbsp;&nbsp;&nbsp; -- AGI Script a2billing.php completed, returning 0<br>&n=
bsp;&nbsp;&nbsp; -- Executing Hangup(&quot;SIP/0829399439-0819b770&quot;, &=
quot;&quot;) in new stack<br>&nbsp; =3D=3D Spawn extension (a2billing, 0055=
07734713163, 4) exited non-zero on &#39;SIP/0829399439-0819b770&#39;<br>
verde*CLI&gt; <br>&nbsp;<br>Se alguem tem uma sugest=E3o de configura=E7=E3=
o me ajude.<br>&nbsp;<br>Atenciosamente:<br>Samuel Ferreira da Silva<br>MSN=
 : <a href=3D"mailto:samuel_tiosam at hotmail.com" target=3D"_blank">samuel_ti=
osam at hotmail.com</a><br>
&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br><br>
<hr>
Instale a Barra de Ferramentas com Desktop Search e ganhe EMOTICONS para o =
Messenger! <a href=3D"http://www.msn.com.br/emoticonpack" target=3D"_blank"=
>=C9 GR=C1TIS!</a></div><br>_______________________________________________=
<br>
Compre uma camiseta da AsteriskBrasil.org!<br><a href=3D"http://www.voipman=
ia.com.br/" target=3D"_blank">http://www.voipmania.com.br</a><br><br>Acesse=
 o canal IRC de discuss=E3o sobre Asterisk em Portugu=EAs Brasileiro na red=
e Freenode.net: #asterisk-br<br>
_______________________________________________<br>Lista de discuss=F5es As=
teriskBrasil.org<br><a href=3D"mailto:AsteriskBrasil at listas.asteriskbrasil.=
org">AsteriskBrasil at listas.asteriskbrasil.org</a><br><a href=3D"http://list=
as.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target=3D"_blank">ht=
tp://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a><br>
</blockquote></div><br></div>

------=_Part_18967_19822886.1219613378467--


More information about the AsteriskBrasil mailing list