Hola rrc2. Yo tambien llevo un tiempo intentando implementar los SMS pero tampoco he logrado hacerlo funcionar.
He intentado realizarlo mediante un fichero .call. Mi configuracion actual es la siguiente:
Fichero.call
Channel: ZAP/g2/0607003110
MaxRetries: 1
RetryTime: 60
WaitTime: 30
Context: smsdial
Priority: 1
Callerid: <666778899>
Extension: 34666778899
SetVar: MSG=hola mundo
exten => 34666778899,1,SMS(${CALLERIDNUM},,${EXTEN},${MSG})
exten => 34666778899,2,SMS(${CALLERIDNUM})
exten => 34666778899,3,Hangup
exten => s,1,Verbose(Catching a SMS sending error... hangup!)
exten => s,2,Hangup
donde 34607003110 es el SMSC de vodafone en España.
Cuando muevo el fichero .call a /var/spool/asterisk/outgoig se me genera la siguiente salida por consola:
-- Attempting call on ZAP/g2/0607003110 for 34666778899@smsdial:1 (Retry 1)
> Channel Zap/2-1 was answered.
-- Executing SMS("Zap/2-1", "666778899||34666778899|hola mundo") in new stack
-- Executing SMS("Zap/2-1", "666778899") in new stack
-- SMS TX 92 01 FF 6E 00 00...
-- SMS TX 92 01 FF 6E 00 00...
-- SMS TX 92 01 FF 6E 00 00...
¿Alguien me puede indicar donde estoy fallando?
Gracias