diff options
Diffstat (limited to 'share/python/asterisk/create-user.sql')
-rw-r--r-- | share/python/asterisk/create-user.sql | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/share/python/asterisk/create-user.sql b/share/python/asterisk/create-user.sql new file mode 100644 index 0000000..68b8147 --- /dev/null +++ b/share/python/asterisk/create-user.sql | |||
@@ -0,0 +1,5 @@ | |||
1 | USE %(database)s; | ||
2 | REPLACE INTO ast_sipfriends (port,context,disallow,allow,type,secret,host,name) VALUES ('5060','avatare','all','ulaw','friend','%(password)s','dynamic','%(username)s'); | ||
3 | REPLACE INTO `extensions_table` (context,exten,priority,app,appdata) VALUES ('avatare', '%(username)s', 1, 'Answer', ''); | ||
4 | REPLACE INTO `extensions_table` (context,exten,priority,app,appdata) VALUES ('avatare', '%(username)s', 2, 'Wait', '1'); | ||
5 | REPLACE INTO `extensions_table` (context,exten,priority,app,appdata) VALUES ('avatare', '%(username)s', 3, 'Dial', 'SIP/%(username)s,60'); \ No newline at end of file | ||