Hi, how to configure * to send an SMS to an mobile phone (Germany, D2). in extensions.conf I did insert: [smsdial] exten => _X.,1,SMS(default,,${EXTEN},${CALLERIDNAME}) exten => _X.,2,SMS(default) exten => _X.,3,Hangup In the outgoing directory I do playe an call-file: Channel: CAPI/[MYMSN]:0106301722270333 Extension: [TARGET-PHONE-NO] CallerID: Test Test Test MaxRetries: 1 RetryTime: 60 WaitTime: 30 Context: smsdial Priority: 1 where [MYMSN] us the number to be used for dialout and [TARGET-PHONE-NO] is the number of the cellular to send the message to. But, this configuration does not send any SMS out. Can you give ma an working example how to configure? Elmar
On Wed, Nov 10, 2004 at 11:02:14PM +0100, Elmar Haneke wrote:> how to configure * to send an SMS to an mobile phone (Germany, D2).> In the outgoing directory I do playe an call-file: > > Channel: CAPI/[MYMSN]:0106301722270333http://www.voip-info.org/wiki-Asterisk+cmd+Sms SMS with T-Com (German Telekom) Send outgoing messages to 0193010 You have to use the Telekom SMSC as gateway.> Extension: [TARGET-PHONE-NO] > CallerID: Test Test Test > MaxRetries: 1 > RetryTime: 60 > WaitTime: 30 > Context: smsdial > Priority: 1You may define some additional variable here and use it as argument to the sms application: Callfile > SetVar: SmsText=Test Test Test Extensions.conf > SMS(${CALLERIDNUM},,${EXTEN},${SmsText}) New question: Is it neccessary to register the local ISDN phone number if you want to receive sms from D2 mobile phones? Short messages from D1 customers are transmitted as sms only if such a registration has been made. -- Stefan Tichy <asterisk@pi4tel.de>