[ previous ] [ next ] [ threads ]
 To :  yate@v...
 From :  "peter" <pvswie01@i...>
 Subject :  setting context from regfile.conf or
 Date :  Sat, 12 Jun 2010 00:17:12 +0200
Hi,

My Question:
Is it possible to set the context in regfile.conf?

and related:
Is it possible to set the context for a registered SIP account directly
in accfile.conf?

Background:

I am setting up a yate on an embedded system, low on resources: all file
based, no database etc.
I started with yate on a debian distribution trying to get my
configuration to work and it the first parts are starting to work. Very
clean and reliable. 
I have an external SIP provider (for now: my old asterisk box I intend
to replace)
I have a couple of SIP phones (say phone_1, phone_2, etc) defined in
regfile.conf

I have these SIP phones processed in their own sections in
regexfile.conf through:
1) assign each phone to its own context
[contexts]
$phone_1^=PhoneGr_1
$phone_2^=PhoneGr_1
$phone_3^=PhoneGr_2
...
2) process them each in their own group
[PhoneGr_1]
...

[PhoneGr_2]
...

I very much appreciate processing each group of phones (including
incoming call from SIP providers) in their own context. However the
approach described above has two disadvantages (or maybe more, I am not
that experienced with yate yet):
1) I have to keep the contents of regfile.conf and regexfile in sync.
This is prone to errors but also more work then I would like.
2) During testing I experienced that a call coming in from the SIP
provider (asterisk) with an ID listed in [contexts] (e.g. phone_1) was
assigned a context through the regexfile.conf [contexts] section.
Absolutely not the intention!

My Question:
Is it possible to set the context from regfile.conf (together with the
SIP account)?

and related:
Is it possible to set the context for a registered SIP account together
with the SIP account in accfile.conf?

Kind regards
PvSw
-- 
  peter
  pvswie01@i...

-- 
http://www.fastmail.fm - Same, same, but different...