Menu Content/Inhalt
Home arrow Forum





Lost Password?
No account yet? Register
We have 15 guests online
OS: Linux a
PHP: 4.3.9
MySQL: 4.1.20
Time: 15:23
Caching: Enabled
GZIP: Disabled
Members: 106
News: 218
Web Links: 33
Visitors: 5603283
A Enterprise
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Zap and usercontext (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Zap and usercontext
#192
markt (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Zap and usercontext 1 Year ago Karma: 0  
Hi, All
Sorry for my english )
Were challenged to add the possibility to use the address book to subscribers of ZAP devices, as well as make outgoing calls via the user's Context. It should be added at the beginning of the file manager.conf following lines:
Code: :

$chanzap = exec("cat /etc/asterisk/zapata_additional.conf | awk '/\[$ext\]/,/channel/ {print}' | grep 'channel=>' | sed 's/channel=>//'"); if($chanzap=='') {   $tech='SIP';   $number=$ext;   $usercontext = exec("cat /etc/asterisk/sip_additional.conf | awk '/\[$ext\]/,/context/ {print}' | grep 'context=' | sed 's/context=//'"); } if($chanzap!='') {   $tech='ZAP';   $number=$chanzap;   $usercontext = exec("cat /etc/asterisk/zapata_additional.conf | awk '/\[$ext\]/,/context/ {print}' | grep 'context=' | sed 's/context=//'"); }


And to change the variables in rows:
Code: :

fputs($socket, "Channel: SIP/$ext\r_CRLF_" ); fputs($socket, "Context: $context\r_CRLF_" );



to
Code: :

fputs($socket, "Channel: $tech/$number\r_CRLF_" ); fputs($socket, "Context: $usercontext\r_CRLF_" );




You can also check for IAX2 and Zaptel or Dahdi, but this problem has not yet faced
P.S. And also I have a translation in Russian language
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#193
pet (Moderator)
Moderator
Posts: 33
graphgraph
User Offline Click here to see the profile of this user
Re:Zap and usercontext 1 Year ago Karma: 1  
hi markt,
thanks for this options (:

zapata_additional.conf:
is this from freepbx ? wich version ?

russian language:
can you make a copy of the file ../phonebook/languages/en.php
and change the language-settings to russian and upload the file here as ru.php.

thanks

Pet
 
Report to moderator   Logged Logged  
 
((pet))
  The administrator has disabled public write access.
Go to top Post Reply
Copyright ©2007 A Enterpriseget the latest posts directly to your desktop
designed by www.madeyourweb.com