Shaoul Jacobson - TELLINK
2005-Apr-04 07:21 UTC
[Asterisk-Users] Asterisk Realtime - extensions configuration help
Hi, The wiki http://www.voip-info.org/wiki-Asterisk+RealTime+Extensions shows a very trivial sample: INSERT INTO `extensions_table` VALUES (1, 'mycontext', '_574555XXXX', 1, 'Wait', '2'); but how would you 'translate' an old definition as : exten => _9.,2,Dial(SIP/${EXTEN:1}@sipgate,30,tr) I already found out that the commas need to be replaced by '|'. (exten => ... Dial(SIP/1007,20,tr) becomes ..., 'Dial', '1007|20|tr' ) It is mentioned only for the 'goto' in the wiki. Maybe is it worth to broaden up the sample. Regards, Shaoul Jacobson Senior VoIP Consultant Tellink Tel : +32 3 201 96 36 Fax : +32 3 227 09 81 e-mail shaoul@tellink.com
Matthew Boehm
2005-Apr-04 08:03 UTC
[Asterisk-Users] Asterisk Realtime - extensions configuration help
Shaoul Jacobson - TELLINK wrote:> Hi, > > The wiki http://www.voip-info.org/wiki-Asterisk+RealTime+Extensions > shows a very trivial sample: > > INSERT INTO `extensions_table` VALUES > (1, 'mycontext', '_574555XXXX', 1, 'Wait', '2'); > > > but how would you 'translate' an old definition as : > exten => _9.,2,Dial(SIP/${EXTEN:1}@sipgate,30,tr) > > I already found out that the commas need to be replaced by '|'. > (exten => ... Dial(SIP/1007,20,tr) becomes ..., 'Dial', '1007|20|tr' ) > It is mentioned only for the 'goto' in the wiki. > Maybe is it worth to broaden up the sample.You just answered your own question in the same post. so..why did you even post this question if you answered it 2 lines later? -Matthew