Muchas gracias Joan,
Estos días he estado leyendo esos link, pero aún tengo algunas dudas,
me he fijado en la salida de u ringing(180) entre SFLphone del pc al
SFLphone del Netbook y es algo así:
asterisk -r
-- Executing [160@from-internal:1] Set("SIP/150-00000002",
"__RINGTIMER=3") in new stack
-- Executing [160@from-internal:2] Macro("SIP/150-00000002",
"exten-vm,novm,160") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/150-00000002", "user-
callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/150-00000002",
"AMPUSER=150") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/150-00000002",
"0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/150-00000002",
"1?Set(REALCALLERIDNUM=150)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/150-00000002",
"AMPUSER=150") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/150-00000002",
"AMPUSERCIDNAME=Javier") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/150-00000002",
"0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/150-00000002",
"AMPUSERCID=150") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/150-00000002",
"CALLERID(all)="Javier" <150>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/150-00000002",
"1?Set(CHANNEL(language)=es)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/150-00000002",
"0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/150-00000002",
"__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/150-00000002",
"1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/150-00000002",
"Using CallerID "Javier" <150>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/150-00000002",
"RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/150-00000002",
"VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/150-00000002",
"EXTTOCALL=160") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/150-00000002",
"CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/150-00000002",
"CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/150-00000002", "RT=""")
in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/150-00000002",
"record-enable,160,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/150-00000002",
"1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/150-00000002",
"0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/150-00000002",
"0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/150-00000002",
"1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("SIP/150-00000002",
"0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:21] NoOp("SIP/150-00000002",
"Recording enable for 160") in new stack
-- Executing [s@macro-record-enable:22] Set("SIP/150-00000002",
"CALLFILENAME=20101025-131451-1288005291.2") in new stack
-- Executing [s@macro-record-enable:23] MixMonitor("SIP/
150-00000002", "20101025-131451-1288005291.2.wav,,") in new stack
-- Executing [s@macro-record-enable:24] Set("SIP/150-00000002",
"CDR(userfield)=audio:20101025-131451-1288005291.2.wav") in new stack
-- Executing [s@macro-record-enable:25] MacroExit("SIP/
150-00000002", "") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/150-00000002",
"dial,,trTwW,160") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/150-00000002", "1?dial")
in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("SIP/150-00000002",
"dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is 'Javier' number is '150'
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 160 to extension map
-- dialparties.agi: Extension 160 cf is disabled
-- dialparties.agi: Extension 160 do not disturb is disabled
dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
dialparties.agi: Extension 160 has ExtensionState: 0
-- dialparties.agi: Checking CW and CFB status for extension 160
== Begin MixMonitor Recording SIP/150-00000002
-- dialparties.agi: dbset CALLTRACE/160 to 150
-- dialparties.agi: Filtered ARG3: 160
-- <SIP/150-00000002>AGI Script dialparties.agi completed,
returning 0
-- Executing [s@macro-dial:7] Dial("SIP/150-00000002", "SIP/
160,,trTwW") in new stack
He intentado con esto:
Action: Originate
Channel: SIP/150
Exten:SIP/160
Cntext:from-internal
Priority: 1
Timeout:3000
pero el mensaje es Originate failed:
Response: Error
Message: Originate failed
Event: RTPReceiverStat
Privilege: reporting,all
SSRC: 0
ReceivedPackets: 0
LostPackets: 0
Jitter: 0.0000
Transit: 0.0000
RRCount: 0
Event: RTPSenderStat
Privilege: reporting,all
SSRC: 360728835
SentPackets: 0
LostPackets: 0
Jitter: 0
SRCount: 0
RTT: 0.000000
-----------------------------------------
En Java he puesto el canal y demás así:
CONTEL.servidorasterisk .originateToExtension("SIP/150", "from-
internal", "SIP/160", 1, 6000);
y me dice:
Exception in thread "AWT-EventQueue-0"
org.asteriskjava.live.NoSuchChannelException: Channel 'SIP/150' is not
available
Y en la consola la salida fue esta (cuando corrí la aplicación java,
por lo que logearse se logea):
== Manager 'operadores' logged on from 192.168.0.10
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
¿Qué canal utilizo? ¿Dónde puedo ver sus nombres?
Lo he intentado desde Java con .getChannels(), pero la salida es es
"[]", vamos vacío.
y en Consola con "sip shows channels", pero la salida es esta:
Peer User/ANR Call ID Format
Hold Last Message Expiry
0 active SIP dialogs
Como ves ando más perdido con Asterisk, que Adán en el día de la
madre :)
Te agradecería una aclaración.
Saludos
Javier