Hola, gracias por tu respuesta Christian, mira, el contexto que usa Elastix es "from-internal" y el que usa a2billing se llama "a2billing", el contexto de a2billing se encuentra en extensions_custom.conf, y esta estructurado de este modo
[a2billing]
exten => _X.,1,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,DeadAGI(a2billing.php,1)
exten => _X.,n,Hangup
Y lo deje de este modo
[a2billing]
exten => _X.,1,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,DeadAGI(a2billing.php,1)
exten => _X.,n,Hangup
include => from-internal
Entonces, registro un cliente de a2billing, e intento llamar a la extension digamos 123, pero no me funciona, como deberia de hacerlo ?
Esto es lo que me sale:
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [123@a2billing:1] Answer("SIP/2497945100-00000042", "") in new stack
-- Executing [123@a2billing:2] Wait("SIP/2497945100-00000042", "1") in new stack
-- Executing [123@a2billing:3] DeadAGI("SIP/2497945100-00000042", "a2billing.php,1") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php,1: file:a2billing.php - line:106 - uniqueid: - IDCONFIG : 1
a2billing.php,1: file:a2billing.php - line:107 - uniqueid: - MODE : standard
a2billing.php,1: file:Class.A2Billing.php - line:718 - uniqueid:1378171741.66 - get_agi_request_parameter = 2497945100 ; SIP/2497945100-00000042 ; 1378171741.66 ; 2497945100 ; 123
a2billing.php,1: file:a2billing.php - line:166 - uniqueid:1378171741.66 - [NO ANSWER CALL]
a2billing.php,1: file:a2billing.php - line:193 - uniqueid:1378171741.66 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php,1: [CREDIT : 9.95400][CREDIT MIN_CREDIT_2CALL : 0.9]
a2billing.php,1: file:a2billing.php - line:396 - uniqueid:1378171741.66 - TARIFF ID -> 1
a2billing.php,1: file:Class.A2Billing.php - line:881 - uniqueid:1378171741.66 - [CALL 2 DID]
a2billing.php,1: file:Class.A2Billing.php - line:896 - uniqueid:1378171741.66 - DESTINATION ::> 123
a2billing.php,1: file:Class.RateEngine.php - line:1245 - uniqueid:1378171741.66 - app_callingcard: Dialing 'SIP/Telecom/123,60,rL(51900000:61000:30000)' with timeout of '51900'.
a2billing.php,1:
-- AGI Script Executing Application: (DIAL) Options: (SIP/Telecom/123,60,rL(51900000:61000:30000))
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/Telecom/123
-- SIP/Telecom-00000043 answered SIP/2497945100-00000042
-- Locally bridging SIP/2497945100-00000042 and SIP/Telecom-00000043
-- Executing [h@a2billing:1] Hangup("SIP/2497945100-00000042", "") in new stack
== Spawn extension (a2billing, h, 1) exited non-zero on 'SIP/2497945100-00000042'
a2billing.php,1: file:Class.RateEngine.php - line:1274 - uniqueid:1378171741.66 - DIAL SIP/Telecom/123,60,rL(51900000:61000:30000)
a2billing.php,1: file:Class.RateEngine.php - line:959 - uniqueid:1378171741.66 - :[sessiontime:35 - id_cc_package_offer:-1 - package2apply:]
a2billing.php,1:
a2billing.php,1:
a2billing.php,1: file:Class.RateEngine.php - line:1107 - uniqueid:1378171741.66 - [CC_asterisk_stop : SQL: DONE : result=1]
-- <SIP/2497945100-00000042>AGI Script a2billing.php completed, returning 4
== Spawn extension (a2billing, 123, 3) exited non-zero on 'SIP/2497945100-00000042'
Donde 2497945100, es el cliente en a2billing