Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] ARA: realtime: sip.conf: context


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
b.lavallee at globalta...
Guest





PostPosted: Tue Dec 03, 2013 3:57 am    Post subject: [asterisk-users] ARA: realtime: sip.conf: context Reply with quote

The answer is probably "no", but I would like someone else to confirm it.

When using The Asterisk RealTime Architecture, can context work in sip.conf like it does for extensions.conf ?

switch => Realtime/[context]@[family][/options]

More specific, is there a way to use a single table and limit the query results to a specific subset for sip.conf ?
I know this can be solved using VIEW in MySQL, but I want to avoid that.

WORKS: SELECT * FROM extensions.conf WHERE context = [context];
DOES NOT WORK: SELECT * from sip.conf WHERE context = [context];

Below, you can see how it works for extensions and does NOT work on the context field of the sippeers table, is there any field that can be used?


Sincerely,
Brian LaVallee


---===
;# extconfig.conf
;
[settings]
;
sippeers => mysql,database,sippeers
moresippeers => mysql,database,moresippeers
extensions => mysql,database,extensions
other => mysql,database,other
;
; end ===---

---===
;# extensions.conf
;
[unique85]
;
switch => Realtime
; Equivalent to: SELECT * FROM database.extensions WHERE context = "unique85";
; - uses current [this] context.
;
switch => Realtime/limited@extensions
; Equivalent to: SELECT * FROM database.extensions WHERE context = "limited";
;
switch => Realtime/specific@other
; Equivalent to: SELECT * FROM database.other WHERE context = "specific";
;
; end ===---

---===
;# sip.conf
;
[general]
;
switch => Realtime
; Equivalent to: SELECT * FROM database.sippeers;
;
switch => Realtime/anything@moresippeers
; Equivalent to: SELECT * FROM database.moresippeers;
; NOT EQUIVALENT TO: SELECT * FROM database.moresippeers WHERE context = "anything";
;
; end ===---
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services