Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - fheynert

Pages: [1]
1
Yate users hangout place / yate as small pbx: context routing questions
« on: October 04, 2017, 06:14:19 AM »
Hi All,

Im watching the YATE Project since a while now. Right now I have my first litte use case.

I am building a small PBX for home use and may have some help guiding me.

I want to stick with regexroute.conf,accfile.conf and regfile.conf

As far as I understood a context in regexroute is just a section with route objectives/permissions wich can be chained together to form calling permissions. Great

So based on the calling number in [context] I can set permission.

Code: [Select]
${sip_user-agent}^.*scanner.*$=BLACKHOLE
${sip_user-agent}^friendly-scanner$=BLACKHOLE
${sip_user-agent}^.*sipcli.*$=BLACKHOLE
${sip_user-agent}^.*pplsip.*$=BLACKHOLE


[default]
; some stuff here

[BLACKHOLE]
^.*$=echo context:$context ${type} ${username} ${sip_to} called is ${called}:${calledname} from                  ${callername}:${caller}
.*=-;error=forbidden;reason=BLACKHOLE[BLACKHOLE]

This Works Great..
according to the guide http://docs.yate.ro/wiki/Call.route#Parameters the 'context' is a parameter
according to the regfile.conf docu I can set/modify any call.route parameter to a user

so

Code: [Select]
[100]
password=100
context=INTERN

IMHO should set the required conntext for a call comming in from this user
but this does not work


Im a using Yate 5.0.0 1 r5675

Could somebody help me with this?

best regards



Pages: [1]