projects
/
ipypbx
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make echo application the default dialplan
[ipypbx]
/
src
/
ipypbx
/
controllers.py
diff --git
a/src/ipypbx/controllers.py
b/src/ipypbx/controllers.py
index
78d046a
..
c4e962e
100644
(file)
--- a/
src/ipypbx/controllers.py
+++ b/
src/ipypbx/controllers.py
@@
-387,3
+387,8
@@
class ExtensionController(ConnectionChangeListenerController):
('domain_id', 'Domain ID', 'domain', 'host_name'),
('endpoint_id', 'Endpoint ID', 'endpoint', 'user_id'))
('domain_id', 'Domain ID', 'domain', 'host_name'),
('endpoint_id', 'Endpoint ID', 'endpoint', 'user_id'))
+ def objectAdded(self, row, record):
+ record.setValue(
+ 'xml_dialplan', '<action application="echo" data=""/>')
+ super(ExtensionController, self).objectAdded(row, record)
+