<div dir="ltr">Por que DeadAGI ?<br><br><div class="gmail_quote">On Mon, Aug 18, 2008 at 6:16 PM, Eduardo_Impacto <span dir="ltr"><<a href="mailto:eduardo@impactovoip.com.br">eduardo@impactovoip.com.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2">Trabalho com rotas gsm, e estou com intuito de
fazer um calling card utilizando canais gsm disponiveis em minha
plataforma.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">No entanto estou fazendo teste com vono para
receber a chamada e direcionar para o contexto do a2billing, só que o mesmo
atende a chamada solicita o pin mas quando é para dar a opção para o cliente
digitar o destino desejado ele manda o numero do vono sem dar opção para o
cliente</font></div>
<div><font face="Arial" size="2">alguem pode me ajudar</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">extensions</font></div>
<div><font face="Arial" size="2">[from-entrada]<br>exten =>
vono,1,SIPGetHeader(NUMENTRADA=X-Vono-DDR)<br>exten =>
vono,n,Goto(call,s,1)<br></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">
<div><font face="Arial" size="2">[call]</font></div></font></div>
<div><font face="Arial" size="2"> ;CallingCard application<br>;include
a2billing<br>exten => s,1,Answer()<br>exten => s,n,Wait,1<br>exten =>
s,n,DeadAGI(a2billing.php,${exten}|2)<br>exten => s,n,Wait,1<br>exten =>
s,n,Hangup()</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">no sip .conf o meu tronco da vono esta no contexto
from-entrada</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">debug</font></div>
<div><font face="Arial" size="2"></font> </div><font face="Arial" size="2">
<div><br>ACK sip:vono@201.48.2xxxxxx SIP/2.0<br>Via: SIP/2.0/UDP
201.86.87.5:5060;branch=z9hG4bKsb4ml420a0hgeess91c1.1<br>From: "6230911858"
<<a href="mailto:sip%3A6230911858@vono.net.br" target="_blank">sip:6230911858@vono.net.br</a>>;tag=SDooct701-as5b939bda<br>To:
<<a href="mailto:sip%3Axxxxxxxxxx-n3da6ltdp3sm9@10.141.1.145" target="_blank">sip:xxxxxxxxxx-n3da6ltdp3sm9@10.141.1.145</a>>;tag=as16ac1d9a<br>Contact:
<sip:6230911858@201.86.87.5:5060;transport=udp><br>Call-ID:
SDooct701-246bbce2c5456ec1d103d8e85dc817e5-v300g00<br>CSeq: 102
ACK<br>User-Agent: Plataforma Vono<br>Max-Forwards: 69<br>Content-Length:
0</div>
<div> </div>
<div><br>--- (10 headers 0 lines)---<br> -- Executing
DeadAGI("SIP/purovoip-091a29e0", "a2billing.php||2") in new
stack<br> -- Launched AGI Script
/var/lib/asterisk/agi-bin/a2billing.php<br> a2billing.php||2: A2Billing
AGI internal configuration:<br> a2billing.php||2: Array<br>
a2billing.php||2: (<br> a2billing.php||2: [debug]
=> 2<br> a2billing.php||2: [asterisk_version]
=> 1_2<br> a2billing.php||2: [answer_call]
=><br> a2billing.php||2: [play_audio]
=><br> a2billing.php||2: [say_goodbye]
=><br> a2billing.php||2: [play_menulanguage]
=><br> a2billing.php||2: [force_language] =>
pt_BR<br> a2billing.php||2: [intro_prompt]
=><br> a2billing.php||2: [min_credit_2call]
=> 0<br> a2billing.php||2: [min_duration_2bill]
=><br> a2billing.php||2:
[notenoughcredit_cardnumber] => 1<br>
a2billing.php||2:
[notenoughcredit_assign_newcardnumber_cid] => 1<br>
a2billing.php||2: [use_dnid] => 1<br>
a2billing.php||2: [no_auth_dnid] => Array<br>
a2billing.php||2: (<br>
a2billing.php||2:
[0] => 2400<br>
a2billing.php||2:
[1] => 2300<br>
a2billing.php||2: )<br>
a2billing.php||2:<br> a2billing.php||2:
[number_try] => 1<br> a2billing.php||2:
[force_callplan_id] =><br> a2billing.php||2:
[say_balance_after_auth] =><br>
a2billing.php||2: [say_balance_after_call]
=><br> a2billing.php||2: [say_rateinitial]
=><br> a2billing.php||2: [say_timetocall]
=><br> a2billing.php||2: [auto_setcallerid]
=> 1<br> a2billing.php||2: [force_callerid]
=><br> a2billing.php||2: [cid_sanitize]
=><br> a2billing.php||2: [cid_enable]
=><br> a2billing.php||2:
[cid_askpincode_ifnot_callerid] => 1<br>
a2billing.php||2: [cid_auto_assign_card_to_cid] =>
1<br> a2billing.php||2: [cid_auto_create_card]
=><br> a2billing.php||2:
[cid_auto_create_card_len] => 10<br>
a2billing.php||2: [cid_auto_create_card_typepaid] =>
POSTPAY<br> a2billing.php||2:
[cid_auto_create_card_credit] => 0<br>
a2billing.php||2: [cid_auto_create_card_credit_limit]
=> 1000<br> a2billing.php||2:
[cid_auto_create_card_tariffgroup] => 6<br>
a2billing.php||2:
[callerid_authentication_over_cardnumber] =><br>
a2billing.php||2: [sip_iax_friends] =><br>
a2billing.php||2: [sip_iax_pstn_direct_call_prefix]
=> 555<br> a2billing.php||2:
[sip_iax_pstn_direct_call] =><br>
a2billing.php||2: [ivr_voucher] =><br>
a2billing.php||2: [ivr_voucher_prefix] => 8<br>
a2billing.php||2: [jump_voucher_if_min_credit]
=><br> a2billing.php||2: [extracharge_did]
=> Array<br>
a2billing.php||2: (<br>
a2billing.php||2:
[0] =><br>
a2billing.php||2: )<br>
a2billing.php||2:<br> a2billing.php||2:
[extracharge_fee] => Array<br>
a2billing.php||2: (<br>
a2billing.php||2:
[0] =><br>
a2billing.php||2: )<br>
a2billing.php||2:<br> a2billing.php||2:
[international_prefixes] => Array<br>
a2billing.php||2: (<br>
a2billing.php||2:
[0] => 011<br>
a2billing.php||2:
[1] => 00<br>
a2billing.php||2:
[2] => 09<br>
a2billing.php||2: )<br>
a2billing.php||2:<br> a2billing.php||2:
[dialcommand_param] => |60|HgL(%timeout%:61000:30000)<br>
a2billing.php||2: [dialcommand_param_sipiax_friend]
=> |60|HgL(3600000:61000:30000)<br>
a2billing.php||2: [switchdialcommand] =><br>
a2billing.php||2: [failover_recursive_limit] =>
4<br> a2billing.php||2:
[maxtime_tocall_negatif_free_route] => 5400<br>
a2billing.php||2: [send_reminder] =><br>
a2billing.php||2: [record_call] =><br>
a2billing.php||2: [monitor_formatfile] =>
gsm<br> a2billing.php||2: [agi_force_currency]
=><br> a2billing.php||2: [currency_association]
=> Array<br>
a2billing.php||2: (<br>
a2billing.php||2:
[0] => usd:dollars<br>
a2billing.php||2:
[1] => mxn:pesos<br>
a2billing.php||2:
[2] => eur:euros<br>
a2billing.php||2:
[3] => all:credit<br>
a2billing.php||2: )<br>
a2billing.php||2:<br> a2billing.php||2:
[file_conf_enter_destination] => pm-invalid-option<br>
a2billing.php||2: [file_conf_enter_menulang] =>
pm-invalid-option<br> a2billing.php||2:
[logger_enable] => 1<br> a2billing.php||2:
[log_file] => /tmp/a2billing.log<br>
a2billing.php||2: [currency_association_internal] =>
Array<br>
a2billing.php||2: (<br>
a2billing.php||2:
[usd] => dollars<br>
a2billing.php||2:
[mxn] => pesos<br>
a2billing.php||2:
[eur] => euros<br>
a2billing.php||2:
[all] => credit<br>
a2billing.php||2: )<br>
a2billing.php||2:<br> a2billing.php||2:
[ivr_voucher_prefixe] => 8<br> a2billing.php||2: )<br>
a2billing.php||2:<br> a2billing.php||2: file:a2billing.php - line:76 -
IDCONFIG : 1<br> a2billing.php||2: file:a2billing.php - line:77 - MODE :
standard<br> a2billing.php||2: file:a2billing.php - line:89 - AGI
Request:<br> a2billing.php||2: file:a2billing.php - line:90 -
Array<br> a2billing.php||2: (<br>
a2billing.php||2: [agi_request] =>
a2billing.php<br> a2billing.php||2: [agi_channel]
=> SIP/purovoip-091a29e0<br> a2billing.php||2:
[agi_language] => pt_BR<br> a2billing.php||2:
[agi_type] => SIP<br> a2billing.php||2:
[agi_uniqueid] => 1219093914.17592<br>
a2billing.php||2: [agi_callerid] =>
6230911858<br> a2billing.php||2:
[agi_calleridname] => 6230911858<br>
a2billing.php||2: [agi_callingpres] => 0<br>
a2billing.php||2: [agi_callingani2] => 0<br>
a2billing.php||2: [agi_callington] => 0<br>
a2billing.php||2: [agi_callingtns] => 0<br>
a2billing.php||2: [agi_dnid] => vono<br>
a2billing.php||2: [agi_rdnis] => unknown<br>
a2billing.php||2: [agi_context] => call<br>
a2billing.php||2: [agi_extension] => s<br>
a2billing.php||2: [agi_priority] => 3<br>
a2billing.php||2: [agi_enhanced] => 0.0<br>
a2billing.php||2: [agi_accountcode] =><br>
a2billing.php||2: )<br> a2billing.php||2:<br> a2billing.php||2:
file:Class.A2Billing.php - line:617 - get_agi_request_parameter =
6230911858 ; SIP/purovoip-091a29e0 ; 1219093914.17592 ; ; s<br>
a2billing.php||2: file:a2billing.php - line:143 - [NO ANSWER CALL]<br>
a2billing.php||2: file:Class.A2Billing.php - line:1770 - Requesting DTMF,
CARDNUMBER_LENGTH_MAX 15<br> -- Playing
'prepaid-enter-pin-number' (language 'pt_BR')</div>
<div> a2billing.php||2: file:Class.A2Billing.php - line:1772 - RES DTMF :
2454<br> a2billing.php||2: file:Class.A2Billing.php - line:1776 -
CARDNUMBER ::> 2454<br> a2billing.php||2: file:Class.A2Billing.php -
line:1799 - QUERY = SELECT credit, tariff, activated, inuse, simultaccess,
typepaid, creditlimit, language, removeinterprefix, redial, enableexpire,
UNIX_TIMESTAMP(expirationdate), expiredays, nbused,
UNIX_TIMESTAMP(firstusedate), UNIX_TIMESTAMP(cc_card.creationdate),
cc_card.currency, cc_card.lastname, cc_card.firstname, cc_card.email,
cc_card.uipass, <a href="http://cc_card.id" target="_blank">cc_card.id</a>, cc_card.id_campaign, <a href="http://cc_card.id" target="_blank">cc_card.id</a>, useralias FROM
cc_card LEFT JOIN cc_tariffgroup ON tariff=<a href="http://cc_tariffgroup.id" target="_blank">cc_tariffgroup.id</a> WHERE
username='2454'<br> a2billing.php||2: Array<br> a2billing.php||2:
(<br> a2billing.php||2: [0] => Array<br>
a2billing.php||2: (<br>
a2billing.php||2:
[0] => 49.19250<br>
a2billing.php||2:
[credit] => 49.19250<br>
a2billing.php||2:
[1] => 8<br>
a2billing.php||2:
[tariff] => 8<br>
a2billing.php||2:
[2] => t<br>
a2billing.php||2:
[activated] => t<br>
a2billing.php||2:
[3] => 0<br>
a2billing.php||2:
[inuse] => 0<br>
a2billing.php||2:
[4] => 1<br>
a2billing.php||2:
[simultaccess] => 1<br>
a2billing.php||2:
[5] => 0<br>
a2billing.php||2:
[typepaid] => 0<br>
a2billing.php||2:
[6] =><br>
a2billing.php||2:
[creditlimit] =><br>
a2billing.php||2:
[7] => en<br>
a2billing.php||2:
[language] => en<br>
a2billing.php||2:
[8] => 0<br>
a2billing.php||2:
[removeinterprefix] => 0<br>
a2billing.php||2:
[9] => 06133128192<br>
a2billing.php||2:
[redial] => 06133128192<br>
a2billing.php||2:
[10] => 0<br>
a2billing.php||2:
[enableexpire] => 0<br>
a2billing.php||2:
[11] => 1525810928<br>
a2billing.php||2:
[UNIX_TIMESTAMP(expirationdate)] => 1525810928<br>
a2billing.php||2:
[12] => 0<br>
a2billing.php||2:
[expiredays] => 0<br>
a2billing.php||2:
[13] => 42<br>
a2billing.php||2:
[nbused] => 42<br>
a2billing.php||2:
[14] => 1210281885<br>
a2billing.php||2:
[UNIX_TIMESTAMP(firstusedate)] => 1210281885<br>
a2billing.php||2:
[15] => 1210278374<br>
a2billing.php||2:
[UNIX_TIMESTAMP(cc_card.creationdate)] => 1210278374<br>
a2billing.php||2:
[16] => BRL<br>
a2billing.php||2:
[currency] => BRL<br>
a2billing.php||2:
[17] => teste<br>
a2billing.php||2:
[lastname] => teste<br>
a2billing.php||2:
[18] => teste<br>
a2billing.php||2:
[firstname] => teste<br>
a2billing.php||2:
[19] => <a href="mailto:teste@teste.com" target="_blank">teste@teste.com</a><br>
a2billing.php||2:
[email] => <a href="mailto:teste@teste.com" target="_blank">teste@teste.com</a><br>
a2billing.php||2:
[20] => 202020<br>
a2billing.php||2:
[uipass] => 202020<br>
a2billing.php||2:
[21] => 5<br>
a2billing.php||2:
[id] => 5<br>
a2billing.php||2:
[22] => -1<br>
a2billing.php||2:
[id_campaign] => -1<br>
a2billing.php||2:
[23] => 5<br>
a2billing.php||2:
[24] => 2454<br>
a2billing.php||2:
[useralias] => 2454<br>
a2billing.php||2: )<br>
a2billing.php||2:<br> a2billing.php||2: )<br>
a2billing.php||2:<br> a2billing.php||2: file:Class.A2Billing.php -
line:1871 - [SET LANGUAGE() en]<br> a2billing.php||2:
file:Class.A2Billing.php - line:650 - [CARD STATUS UPDATE : UPDATE cc_card SET
inuse=inuse+1 WHERE username='2454']<br> a2billing.php||2:
file:Class.A2Billing.php - line:1400 - [AUTO SetCallerID]<br>
a2billing.php||2: file:Class.A2Billing.php - line:1406 - [REQUESTED SetCallerID
: 6230911858]<br> a2billing.php||2: file:Class.A2Billing.php - line:1417 -
[EXEC SetCallerID : 6230911858]<br> a2billing.php||2: file:a2billing.php -
line:170 - [CHANNEL STATUS : 6 = Line is up]<br> a2billing.php||2:
file:a2billing.php - line:171 - [CREDIT : 49.19250][CREDIT MIN_CREDIT_2CALL :
0]<br> a2billing.php||2: file:Class.A2Billing.php - line:672 - 1
&& && 4&& 0<br> a2billing.php||2:
file:Class.A2Billing.php - line:697 -<strong> DESTINATION ::>
vono</strong><br> a2billing.php||2: file:Class.A2Billing.php - line:699 -
RULES APPLY ON DESTINATION ::> vono<br> a2billing.php||2:
file:Class.A2Billing.php - line:650 - [CARD STATUS UPDATE : UPDATE cc_card SET
inuse=inuse-1 WHERE username='2454']<br> -- AGI Script
a2billing.php completed, returning 0<br>Scheduling destruction of call
'SD1agld01-df49a6a746ba55f4d72e2877435ddd41-v300g00' in 32000
ms<br>set_destination: Parsing
<sip:6230911858@201.86.87.5:5060;transport=udp> for address/port to send
to<br>set_destination: set destination to <a href="http://201.86.87.5" target="_blank">201.86.87.5</a>, port 5060<br>Reliably
Transmitting (NAT) to <a href="http://201.86.87.5:5060" target="_blank">201.86.87.5:5060</a>:<br>BYE <a href="http://sip:6230911858@201.86.87.5:5060" target="_blank">sip:6230911858@201.86.87.5:5060</a>
SIP/2.0<br>Via: SIP/2.0/UDP
201.48.251.15:5060;branch=z9hG4bK16ee4c8b;rport<br>From:
<<a href="mailto:sip%3Axxxxxxxx-n3da6ltdp3sm9@10.141.1.145" target="_blank">sip:xxxxxxxx-n3da6ltdp3sm9@10.141.1.145</a>>;tag=as7cf19c44<br>To:
"6230911858"
<<a href="mailto:sip%3A6230911858@vono.net.br" target="_blank">sip:6230911858@vono.net.br</a>>;tag=SD1agld01-as167529dc<br>Contact:
<<a href="mailto:sip%3Avono@201.48.251.15" target="_blank">sip:vono@201.48.251.15</a>><br>Call-ID:
SD1agld01-df49a6a746ba55f4d72e2877435ddd41-v300g00<br>CSeq: 102
BYE<br>User-Agent: Impacto Voip Pbx<br>Max-Forwards: 70<br>Content-Length:
0<br><br></div></font>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Eduardo de Sousa <br>Departamento
Comercial</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"><a href="mailto:MSN%3Aatendimento@impactovoip.com.br" target="_blank">MSN:atendimento@impactovoip.com.br</a><br>Impacto Voip
Tecnologia e Teleinformática <br><a href="http://www.impactovoip.com.br" target="_blank">www.impactovoip.com.br</a><br>Fone: (62)
4053-8840 - 9651-4660<br> <br></font></div></div>
<br>_______________________________________________<br>
Compre uma camiseta da AsteriskBrasil.org!<br>
<a href="http://www.voipmania.com.br" target="_blank">http://www.voipmania.com.br</a><br>
<br>
Acesse o canal IRC de discussão sobre Asterisk em Português Brasileiro na rede Freenode.net: #asterisk-br<br>
_______________________________________________<br>
Lista de discussões AsteriskBrasil.org<br>
<a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</a><br>
<a href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target="_blank">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a><br></blockquote></div><br><br clear="all"><br>-- <br>Guilherme Loch Góes<br>
<br>Visite nossa loja virtual: <a href="http://www.shopvoip.com.br">http://www.shopvoip.com.br</a> <br><br>Notícias e Fórum sobre VoIP com software livre: <a href="http://www.asteriskexperts.com.br">http://www.asteriskexperts.com.br</a><br>
</div>