Problema Outbound CID

lucho512

Joined
May 25, 2009
Messages
12
Likes
0
Points
0
#1
Hola gente, haber si me pueden ayudar con un problema o una falta de configuracion que tengo, no puedo lograr que el CID salga por la central, si el contexto en la extension es from-internal este sale perfecto, pero cuando el contexto es a2billing no sale el CID probe agregandole callerid en las ccard pero nada, no sale, que puede ser? tendre que hacer alguna modificacion en el archivo a2billing.conf estube probando de cambiar alguna opciones ahi pero el problema persiste...

Gracias.
 

jgutierrez

Joined
Feb 28, 2008
Messages
5,737
Likes
0
Points
0
#2
Pega la salida del CLI (asterisk -r) cuando usas el from-internal y luego cuando usas el contexto a2billing
 

lucho512

Joined
May 25, 2009
Messages
12
Likes
0
Points
0
#3
Aca van las 2 salidas del CLI

Como se puede ver cuando uso el contexto from-internal se envia al caller-id 0409 ya que son los ultimos 4 numeros los que tengo que mandar a la central pero cuando uso a2billing manda la numeracion completa 440409 siendo que especifico en customers que el caller-id es 0409


Contexto A2Billing
a2billing.php,1: A2Billing AGI internal configuration:
a2billing.php,1: Array
a2billing.php,1: (
a2billing.php,1: [debug] => 1
a2billing.php,1: [asterisk_version] => 1_2
a2billing.php,1: [answer_call] =>
a2billing.php,1: [play_audio] => 1
a2billing.php,1: [say_goodbye] =>
a2billing.php,1: [play_menulanguage] =>
a2billing.php,1: [force_language] =>
a2billing.php,1: [intro_prompt] =>
a2billing.php,1: [min_credit_2call] => 0
a2billing.php,1: [min_duration_2bill] => 2
a2billing.php,1: [notenoughcredit_cardnumber] =>
a2billing.php,1: [notenoughcredit_assign_newcardnumber_cid] =>
a2billing.php,1: [use_dnid] => 1
a2billing.php,1: [no_auth_dnid] => Array
a2billing.php,1: (
a2billing.php,1: [0] => 2400
a2billing.php,1: [1] => 2300
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: [number_try] => 3
a2billing.php,1: [force_callplan_id] =>
a2billing.php,1: [say_balance_after_auth] =>
a2billing.php,1: [say_balance_after_call] =>
a2billing.php,1: [say_rateinitial] =>
a2billing.php,1: [say_timetocall] => 1
a2billing.php,1: [auto_setcallerid] => 1
a2billing.php,1: [force_callerid] =>
a2billing.php,1: [cid_sanitize] => both
a2billing.php,1: [cid_enable] =>
a2billing.php,1: [cid_askpincode_ifnot_callerid] => 1
a2billing.php,1: [cid_auto_assign_card_to_cid] => 1
a2billing.php,1: [cid_auto_create_card] =>
a2billing.php,1: [cid_auto_create_card_len] => 10
a2billing.php,1: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php,1: [cid_auto_create_card_credit] => 0
a2billing.php,1: [cid_auto_create_card_credit_limit] => 1000
a2billing.php,1: [cid_auto_create_card_tariffgroup] => 6
a2billing.php,1: [callerid_authentication_over_cardnumber] =>
a2billing.php,1: [sip_iax_friends] =>
a2billing.php,1: [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php,1: [sip_iax_pstn_direct_call] =>
a2billing.php,1: [ivr_voucher] =>
a2billing.php,1: [ivr_voucher_prefix] => 8
a2billing.php,1: [jump_voucher_if_min_credit] =>
a2billing.php,1: [extracharge_did] => Array
a2billing.php,1: (
a2billing.php,1: [0] => 0800XXXXXXX
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: [extracharge_fee] => Array
a2billing.php,1: (
a2billing.php,1: [0] => 0.02
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: [dialcommand_param] => |90|CrHL(%timeout%:61000:0000)
a2billing.php,1: [dialcommand_param_sipiax_friend] => |60|HL(3600000:61000:30000)
a2billing.php,1: [switchdialcommand] =>
a2billing.php,1: [failover_recursive_limit] => 2
a2billing.php,1: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php,1: [send_reminder] =>
a2billing.php,1: [record_call] =>
a2billing.php,1: [monitor_formatfile] => gsm
a2billing.php,1: [agi_force_currency] =>
a2billing.php,1: [currency_association] => Array
a2billing.php,1: (
a2billing.php,1: [0] => usd:dollars
a2billing.php,1: [1] => mxn:pesos
a2billing.php,1: [2] => eur:euros
a2billing.php,1: [3] => all:credit
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php,1: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php,1: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php,1: [logger_enable] => 1
a2billing.php,1: [log_file] => /tmp/a2billing.log
a2billing.php,1: [currency_association_internal] => Array
a2billing.php,1: (
a2billing.php,1: [usd] => dollars
a2billing.php,1: [mxn] => pesos
a2billing.php,1: [eur] => euros
a2billing.php,1: [all] => credit
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: [ivr_voucher_prefixe] => 8
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: file:a2billing.php - line:75 - IDCONFIG : 1
a2billing.php,1: file:a2billing.php - line:76 - MODE : standard
a2billing.php,1: file:a2billing.php - line:88 - AGI Request:
a2billing.php,1: file:a2billing.php - line:89 - Array
a2billing.php,1: (
a2billing.php,1: [agi_request] => a2billing.php
a2billing.php,1: [agi_channel] => SIP/440409-0000001d
a2billing.php,1: [agi_language] => es
a2billing.php,1: [agi_type] => SIP
a2billing.php,1: [agi_uniqueid] => 1302821532.52
a2billing.php,1: [agi_version] => 1.6.2.13
a2billing.php,1: [agi_callerid] => 440409
a2billing.php,1: [agi_calleridname] => device
a2billing.php,1: [agi_callingpres] => 0
a2billing.php,1: [agi_callingani2] => 0
a2billing.php,1: [agi_callington] => 0
a2billing.php,1: [agi_callingtns] => 0
a2billing.php,1: [agi_dnid] => 15521202
a2billing.php,1: [agi_rdnis] => unknown
a2billing.php,1: [agi_context] => a2billing
a2billing.php,1: [agi_extension] => 15521202
a2billing.php,1: [agi_priority] => 3
a2billing.php,1: [agi_enhanced] => 0.0
a2billing.php,1: [agi_accountcode] => 48
a2billing.php,1: [agi_threadid] => -1224983664
a2billing.php,1: [agi_arg_1] => 1
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: file:Class.A2Billing.php - line:601 - get_agi_request_parameter = 440409 ; SIP/440409-0000001d ; 1302821532.52 ; 48 ; 15521202
a2billing.php,1: file:a2billing.php - line:142 - [NO ANSWER CALL]
a2billing.php,1: file:Class.A2Billing.php - line:1668 - 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, cc_card.id_campaign, cc_card.id, useralias FROM cc_card LEFT JOIN cc_tariffgroup ON tariff=cc_tariffgroup.id WHERE username='48'
a2billing.php,1: file:Class.A2Billing.php - line:1742 - [SET LANGUAGE() es]
a2billing.php,1: file:Class.A2Billing.php - line:634 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='48']
a2billing.php,1: file:Class.A2Billing.php - line:1427 - [AUTO SetCallerID]
a2billing.php,1: file:Class.A2Billing.php - line:1433 - [REQUESTED SetCallerID : 440409]
a2billing.php,1: file:Class.A2Billing.php - line:1444 - [EXEC SetCallerID : 440409]
a2billing.php,1: file:a2billing.php - line:169 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php,1: file:a2billing.php - line:170 - [CREDIT : 50.00000][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php,1: file:Class.A2Billing.php - line:656 - 1 && && 8&& 0
a2billing.php,1: file:Class.A2Billing.php - line:681 - DESTINATION ::> 15521202
a2billing.php,1: file:Class.A2Billing.php - line:683 - RULES APPLY ON DESTINATION ::> 15521202
a2billing.php,1: file:Class.A2Billing.php - line:721 - OK - RESFINDRATE::> 1
a2billing.php,1: file:Class.A2Billing.php - line:743 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php,1: file:Class.A2Billing.php - line:760 - TIMEOUT::> 6120 : minutes=102 - seconds=0
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
-- <SIP/440409-0000001d> Playing 'digits/100-and.gsm' (language 'es')
-- <SIP/440409-0000001d> Playing 'digits/2.gsm' (language 'es')
-- Playing 'prepaid-minutes' (escape_digits=#) (sample_offset 0)
a2billing.php,1: file:Class.RateEngine.php - line:960 - app_callingcard: Dialing 'DAHDI/g0/15521202|90|CrHL(6120000:61000:0000)' with timeout of '6120'.
a2billing.php,1:
a2billing.php,1: file:Class.RateEngine.php - line:985 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
-- AGI Script Executing Application: (Dial) Options: (DAHDI/g0/15521202|90|CrHL(6120000:61000:0000))
-- Limit Data for this call:
-- Called g0/15521202
MFC/R2 call has been accepted on forward channel 1
-- DAHDI/1-1 is ringing
-- Hungup 'DAHDI/1-1'


Contexto from-Internal

-- Executing [15521202@from-internal:1] Macro("SIP/440409-0000001c", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/440409-0000001c", "AMPUSER=440409") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/440409-0000001c", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/440409-0000001c", "1?Set(REALCALLERIDNUM=440409)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/440409-0000001c", "AMPUSER=440409") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/440409-0000001c", "AMPUSERCIDNAME=Lucho Casa") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/440409-0000001c", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/440409-0000001c", "AMPUSERCID=0409") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/440409-0000001c", "CALLERID(all)="Lucho Casa" <0409>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/440409-0000001c", "1?Set(CHANNEL(language)=es)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/440409-0000001c", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/440409-0000001c", "Using CallerID "Lucho Casa" <0409>") in new stack
-- Executing [15521202@from-internal:2] Set("SIP/440409-0000001c", "_NODEST=") in new stack
-- Executing [15521202@from-internal:3] Macro("SIP/440409-0000001c", "record-enable,440409,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/440409-0000001c", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/440409-0000001c", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/440409-0000001c", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/440409-0000001c", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/440409-0000001c", "1?MacroExit()") in new stack
-- Executing [15521202@from-internal:4] Macro("SIP/440409-0000001c", "dialout-trunk,1,15521202,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/440409-0000001c", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/440409-0000001c", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/440409-0000001c", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/440409-0000001c", "DIAL_NUMBER=15521202") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/440409-0000001c", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/440409-0000001c", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/440409-0000001c", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/440409-0000001c", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/440409-0000001c", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/440409-0000001c", "outbound-callerid,1") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/440409-0000001c", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/440409-0000001c", "0?Set(REALCALLERIDNUM=0409)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/440409-0000001c", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/440409-0000001c", "USEROUTCID=0409") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/440409-0000001c", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/440409-0000001c", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/440409-0000001c", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/440409-0000001c", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/440409-0000001c", "1?Set(CALLERID(all)=0409)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/440409-0000001c", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/440409-0000001c", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/440409-0000001c", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/440409-0000001c", "OUTNUM=15521202") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/440409-0000001c", "custom=DAHDI/g0") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/440409-0000001c", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/440409-0000001c", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/440409-0000001c", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/440409-0000001c", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/440409-0000001c", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/440409-0000001c", "DAHDI/g0/15521202,300,") in new stack
 

jgutierrez

Joined
Feb 28, 2008
Messages
5,737
Likes
0
Points
0
#4
Según veo cuando usas el from-internal, toma la configuración del callerID de tu extensión, eso es, porque pasa por el plan de marcado.
En cambio cuando usas el a2billing, no pasa por el plan de marco, sino por las opcinoes de a2billing y luego hace una marcación directa por la troncal. No veo en ningún lado en a2billing donde le pases el callerID abreviado.
 

lucho512

Joined
May 25, 2009
Messages
12
Likes
0
Points
0
#5
corregime si me equivoco pero aqui no hace el envio del CID a2billing

a2billing.php,1: file:Class.A2Billing.php - line:1427 - [AUTO SetCallerID]
a2billing.php,1: file:Class.A2Billing.php - line:1433 - [REQUESTED SetCallerID : 440409]
a2billing.php,1: file:Class.A2Billing.php - line:1444 - [EXEC SetCallerID : 440409]

como te comentaba la central de telefonica me acepta solo los ultimos 4 digitos es decir que en ves de enviar "440409" yo tendria que enviar "0409" la verdad que despuies de darle vueltas y vueltas a la configuracion la unica manera que encontre de resolverlo fue editanto el archivo class.a2billing.php en las siguientes lineas

$agi->set_callerid(SUBSTR($cid_sanitized,2));
$this -> debug( VERBOSE | WRITELOG, $agi, __FILE__, __LINE__, "[EXEC etCallerID : ".SUBSTR($cid_sanitized,2)."]");

Como se puede ver quite los 2 primeros caracteres de la cadena $cid_sanitized.
Se que no es al manera ms ortodoxa de hacerlo pero ya me estaba volviendo loco.

Si existe alguna otra solucion en la que no haya que tocar el archivo php agredecere conocerla.
 

jgutierrez

Joined
Feb 28, 2008
Messages
5,737
Likes
0
Points
0
#6
Cuando yo decía que no veía en ninguna parte, me refería al hecho, de que no habían los últimos 4 dígitos... sino más bien que estaba el número completo.
La forma en que lo has hecho no es la correcta... Ya que para hacer tal cambio se debería hacer desde la interfaz web.
En qué partes has puesto el callerID en a2billing?
Adjunta capturas de pantallas para ver
 

lucho512

Joined
May 25, 2009
Messages
12
Likes
0
Points
0
#7
Ah ok, mal entendido...

De todas maneras cuando uso el contexto from-internal el cid sale tal cual lo ingreso en la configuracion de la extension en free-pbx "OUTBOUND CID"

-- Executing [s@macro-user-callerid:7] Set("SIP/440409-0000001c", "AMPUSERCID=0409") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/440409-0000001c", "CALLERID(all)="Lucho Casa" ") in new stack

Aparentemente A2billing no lo toma de ahi! ni tampoco lo toma cuando lo ingreso en la configuracion del customer,ni generando un lista de CID en OUTBOUND-CID-->ADD Cid

Adjunto captura de pantalla de a2billing http://forum.elastix.org/old_files/CID.rar
 

jgutierrez

Joined
Feb 28, 2008
Messages
5,737
Likes
0
Points
0
#8
y dale... jajaja
Tal como te dije cuando usas from-internal, pasa por el plan de marcado...
Pero cuando usas a2billing NO pasa por el plan de marcado... entendido?
Esa es la gran diferencia.

Y por cierto, no se puede abrir el .rar adjunto
 

lucho512

Joined
May 25, 2009
Messages
12
Likes
0
Points
0
#9
Por eso te digo que con from-internal funciona!!! (CHISTE) jeje :)

:dry: Haber ahora!!!

 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,565
Latest member
omarmenichetti
Top