search for: check_us

Displaying 20 results from an estimated 25 matches for "check_us".

Did you mean: check_ups
2017 Nov 09
2
Postlogin script
...uestion is that: Is possible in condition IF use IP addresses as range or with mask (because I've more than one web servers) ? My script: #!/bin/sh if [ "$IP" = "172.11.0.28" ] ; then printf "* [ALERT] Access allowed from that IP\r\n" exec "$@" fi CHECK_USER=`PGPASSWORD="somepass" /usr/local/pg950/bin/psql -q -t -U someuser -d maildb -c "select imap_allowed from __users where name = '$USER' LIMIT 1"` if [ $CHECK_USER == "f" ] ; then exit 0 fi if [ $CHECK_USER == "t" ] ; then exec "$@" fi Re...
2017 Nov 10
1
Postlogin script
...39;ve more than one web servers) ? > > > > My script: > > > > #!/bin/sh > > if [ "$IP" = "172.11.0.28" ] ; then > > printf "* [ALERT] Access allowed from that IP\r\n" > > exec "$@" > > fi > > > > CHECK_USER=`PGPASSWORD="somepass" /usr/local/pg950/bin/psql -q -t -U > > someuser -d maildb -c "select imap_allowed from __users where name = > > '$USER' LIMIT 1"` > > > > if [ $CHECK_USER == "f" ] ; then > > exit 0 > > fi > > &...
2003 Oct 13
1
out going calls
...01]: File chan_sip.c, Line 657 (create_addr): Setting NAT on RTP to 0 Oct 14 08:40:14 DEBUG[8201]: File chan_sip.c, Line 548 (__sip_ack): Stopping retransmission on '2d57437068f8800f671168c74e01eae1@210.9.49.249' of Request 102: Found Oct 14 08:40:31 DEBUG[8201]: File chan_sip.c, Line 3841 (check_user): Setting NAT on RTP to 0 Oct 14 08:40:31 DEBUG[8201]: File chan_sip.c, Line 548 (__sip_ack): Stopping retransmission on '000af4bb-75e0182e-380c5ba7-4d5e38ae@210.9.49.216' of Response 101: Found Oct 14 08:40:31 DEBUG[8201]: File chan_sip.c, Line 3841 (check_user): Setting NAT on RTP to 0...
2003 Sep 22
1
Can't get simple config working!
Hi all. I'm trying to get a simple configuration working so I can later expand it to something more interesting. I'm using kphone to call an extension on the * server. When I try to connect, I get this error: DEBUG[81926]: File chan_sip.c, Line 3562 (check_user): Setting NAT on RTP to 0 DEBUG[81926]: File chan_sip.c, Line 527 (__sip_ack): Stopping retransmission on '746374551@10.0.1.5' of Response 4963: Found DEBUG[81926]: File chan_sip.c, Line 3562 (check_user): Setting NAT on RTP to 0 NOTICE[81926]: File pbx.c, Line 1171 (pbx_extension_helper...
2017 Nov 09
0
Postlogin script
...addresses as range or with mask (because > I've more than one web servers) ? > > My script: > > #!/bin/sh > if [ "$IP" = "172.11.0.28" ] ; then > printf "* [ALERT] Access allowed from that IP\r\n" > exec "$@" > fi > > CHECK_USER=`PGPASSWORD="somepass" /usr/local/pg950/bin/psql -q -t -U > someuser -d maildb -c "select imap_allowed from __users where name = > '$USER' LIMIT 1"` > > if [ $CHECK_USER == "f" ] ; then > exit 0 > fi > > if [ $CHECK_USER == "t&quo...
2018 Jul 27
0
Imap post-login script
...(dovecot_node/imap imap-postlogin : multiple processes are running still) and after some times there are too many processes and the limit is reached (imap proces_limit 1500): 1) #!/bin/sh case $IP in 10.10.1[1-2][0-7].*) exec "$@" ;; 10.11.2.4[0-9]) exec "$@" ;; esac CHECK_USER=`PGPASSWORD="password" /usr/local/pg952/bin/psql -h 10.11.1.3 -q -t -U postfixuser -d mail -c "select imap_allowed from users where name = '$USER' LIMIT 1"` if [ $CHECK_USER == "t" ] ; then exec "$@" fi if [ $CHECK_USER == "f" ] ; then e...
2003 Apr 03
5
MP3player problem
Skipped content of type multipart/related-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2892 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20030403/46e84bf5/smime.bin
2006 Apr 11
1
Double redirect
...ter is in use throughout most of the app and checks to see whether the user has the correct credentials to view the controller. This is run from individual controllers that need it. Both have a redirect if they fail, however the redirect for check_timeout never runs, because it also fails the check_user test which causes it to redirect and cause the error. How can I stop the application from running further checks if the first filter fails? I have tried "redirect_to and return" which was suggested on a website I found, but it does not seem to alter the situation. It''s n...
2005 Jun 30
0
Sipura 3k answers then immediate busy signal
...1248]: File chan_sip.c, Line 663 (create_addr): Setting NAT on RTP to 0 DEBUG[8501248]: File chan_sip.c, Line 554 (__sip_ack): Stopping retransmission on '63e5425660664f565ce2c88b2cdc4d51@ipaddressofasteriskserver' of Request 102: Found *CLI> DEBUG[8501248]: File chan_sip.c, Line 3898 (check_user): Setting NAT on RTP to 0 DEBUG[8501248]: File chan_sip.c, Line 554 (__sip_ack): Stopping retransmission on '9a4ae229-c06315ff@ipaddressofsipurabox' of Response 101: Found DEBUG[8501248]: File chan_sip.c, Line 3898 (check_user): Setting NAT on RTP to 0 DEBUG[8501248]: File chan_sip.c, Lin...
2003 Sep 03
8
Asterisk Jitters
Hi, Every time I dial into my asterisk box i hear nothing but asterisk jittering. The following is an example of what I get on the asterisk CLI Thanks *CLI> DEBUG[81926]: File chan_sip.c, Line 3826 (check_user): Setting NAT on RTP to 0 DEBUG[81926]: File chan_sip.c, Line 4807 (handle_request): Check for res DEBUG[81926]: File chan_sip.c, Line 952 (find_user): Call from user 'xirak' is 1 out of 0 DEBUG[81926]: File chan_sip.c, Line 3249 (build_route): build_route: Contact hop : <sip:192.1...
2003 Aug 26
1
More questions. Call Waiting and Threeway
I can't do threeway from my Grandstream phone. Looking through the server config files, I figured out why - zapata.conf has Threeway turned off for the channels I use. I do my work on someone else's Asterisk box and don't want to modify zapata.conf for several reasons, the biggest being that the guy who owns the box has a couple clients using it and I am deathly afraid of breaking
2003 Nov 06
0
SIP nat not working with budgetone (long)
...out -- Latest CVS as of tonight. Sip phone behind NAT. * server with public IP address. -------from sip.conf for my phone: [1747xxxxxxx] username=xxxxx secret=xxxxx host=dynamic type=friend nat=yes ------- -------from the * log messages Nov 6 01:50:07 DEBUG[4101]: File chan_sip.c, Line 3908 (check_user): Setting NAT on RTP to -1 Nov 6 01:50:07 DEBUG[4101]: File chan_sip.c, Line 559 (__sip_ack): Stopping retransmission on '93161d54-1d74-7515-1fba-b6c8db18e466@192.168.0.100' of Response 32119: Found Nov 6 01:50:07 DEBUG[4101]: File chan_sip.c, Line 3908 (check_user): Setting NAT on RTP...
2004 Jan 13
2
Asterisk and Festival (* dies with no info)
...d! Ouch ... error while writing audio data: : Broken pipe I'm guessing the ouch comes from mpg123 being surprised that Asterisk is gone. Debug info in syslog seems pretty unhelpful if I use -d: Jan 7 15:37:00 asterisk_pbx[5038]: Jan 7 15:37:00 DEBUG[1150495040]: File chan_sip.c, Line 4024 (check_user): Jan 7 15:37:00 asterisk_pbx[5038]: Jan 7 15:37:00 DEBUG[1150495040]: File chan_sip.c, Line 5098 (handle_request): Jan 7 15:37:00 asterisk_pbx[5038]: Jan 7 15:37:00 DEBUG[1150495040]: File chan_sip.c, Line 1002 (find_user): Jan 7 15:37:00 asterisk_pbx[5038]: Jan 7 15:37:00 DEBUG[1150495...
2003 Oct 23
6
Problems with * and IAXTel/FWD
Hi all I've been trying to make * work with IAXtel to no avail, all seems ok in the config but am not getting anywhere This is what I'm getting from console (user/pass/dest # changed for obvious reasons): DEBUG[1133735216]: File chan_sip.c, Line 3841 (check_user): Setting NAT on RTP to 0 DEBUG[1133735216]: File chan_sip.c, Line 4891 (handle_request): Check for res for phone1 DEBUG[1133735216]: File chan_sip.c, Line 973 (find_user): Call from user 'phone1' is 1 out of 0 DEBUG[1133735216]: File chan_sip.c, Line 3307 (build_route): build_route: Cont...
2006 Aug 17
0
redirect_to POST?
Is it possible to automatically direct someone to a POST? Whenever a user comes to my site, I''m automatically creating a user in the DB for that person, however I''m also trying to stick to REST principles otherwise. My idea was to have a before_filter :check_user that checked to see whether this user existed or redirected to a POST users_url() to automatically create the user, which would then redirect to a GET user_url(:id => new_user_id). Is there a way to redirect_to a POST, or should I forget about REST for this circumstance and just do the us...
2007 Jun 01
0
Okay, new question - dealing w/ logging in restrictions (controller?)
...thing about nested routes - I''m just not going to do with them anymore. Anyway, so my controller has a before_filter on the edit action; which checks to see if the current post''s user, is the same as the currently logged in user, if true then they can edit, otherwise not. def check_user if current_user.login != @post.user.login redirect_to post_url(@post) end end Now I can easily test this functionality by seeing if I get redirected if I hit that page, but what if I actually want to be logged in, so I can test to see if the edit action is working? Any input on...
2003 Jun 30
0
CVS Broke my sound output
...ile chan_sip.c, Line 612 (create_addr): Setting NAT on RTP to 0 Jun 27 16:12:38 DEBUG[262161]: File chan_sip.c, Line 523 (__sip_ack): Stopping retransmission on '7ceb145123fa12fc73729d134d2820d8@155.97.244.130' of Request 102: Found Jun 27 16:13:18 DEBUG[262161]: File chan_sip.c, Line 3437 (check_user): Setting NAT on RTP to 0 Jun 27 16:13:18 DEBUG[262161]: File chan_sip.c, Line 523 (__sip_ack): Stopping retransmission on '0002fdae-f85b0044-290e948f-55aa5384@155.98.192.164' of Response 101: Found were the debug errors. Dave Packham
2003 Nov 07
0
Possible fix for grandstream outgoing
...en't bothered to dig in and see what those lines actually do. Did soneone just get wacky with cut and paste from the peer while loop? Or am I breaking something else. Jon --- chan_sip.c.broken Fri Nov 7 02:17:47 2003 +++ chan_sip.c Fri Nov 7 02:16:23 2003 @@ -3928,8 +3928,8 @@ static int check_user(struct sip_pvt *p, p->callgroup = user->callgroup; p->pickupgroup = user->pickupgroup; p->restrictcid = user->restrictcid; - p->capability = user->...
2003 Jun 18
0
MP3Player and Ringing (long)
...oduce codec errors since MP3Players writes Linear PCM frames. I extracted some debug log: Jun 5 01:55:33 DEBUG[1158913328]: File chan_sip.c, Line 1327 (sip_alloc): Allocating new SIP call for 7a655bae-29f17562-197726d5@62.212.12.21 Jun 5 01:55:33 DEBUG[1158913328]: File chan_sip.c, Line 3359 (check_user): Setting NAT on RTP to 0 Jun 5 01:55:33 DEBUG[1158913328]: File chan_sip.c, Line 2899 (build_route): build_route: Contact hop: 5010 <sip:5010@62.212.12.21> Jun 5 01:55:33 DEBUG[1236360496]: File pbx.c, Line 1116 (pbx_extension_helper): Launching 'Answer' Jun 5 01:55:33 DEBUG[123...
2003 Nov 17
1
ISDN debugging and SIP dial-in issue]
...IFY, REFER, OPTIONS, INFO, SUBSCRIBE Content-Type: application/sdp Content-Length: 266 [ ... ] Sending to 192.168.1.190 : 5060 (non-NAT) [ ... ] Capabilities: us - 524302, them - 285/0, combined - 12 Non-codec capabilities: us - 1, them - 0, combined - 0 DEBUG[5126]: File chan_sip.c, Line 3965 (check_user): Setting NAT on RTP to 0 Reliably Transmitting (no NAT): SIP/2.0 407 Proxy Authentication Required [ ... ] ACK sip:2@192.168.1.10 SIP/2.0 [ ... ] DEBUG[5126]: File chan_sip.c, Line 565 (__sip_ack): Stopping retransmission on 'b5288d54-a46c-9e16-ff7c-ec43221a71b2@192.168.1.190' of Resp...