search for: ast_strlen_zero

Displaying 20 results from an estimated 28 matches for "ast_strlen_zero".

2009 Mar 11
4
Are .call files working with extensions.ael ?
Hello, With an extensions.ael enabled system, I keep getting whatever I change into my "astup.call" file : [Mar 12 00:13:56] WARNING[2538]: pbx_spool.c:267 apply_outgoing: At least one of app or extension (or keyword message/pdu) must be specified, along with tech and dest in file /var/spool/asterisk/outgoing/astup.call [Mar 12 00:13:56] WARNING[2538]: pbx_spool.c:457 scan_service:
2009 Mar 16
1
Bristuff bug or feature ? (Was: Are .call files working with extensions.ael ? bristuff problem)
...deleting [Mar 16 15:39:36] WARNING[25547]: pbx_spool.c:505 scan_thread: Failed to scan service '/var/spool/asterisk/outgoing/astup.call' Reverting Bristuff's patch on lines 266 in asterisk/pbx/pbx_spool.c such as correct this and call file can be played : /* Original code if (ast_strlen_zero(o->tech) || ast_strlen_zero(o->dest) || (ast_strlen_zero(o->app) && ast_strlen_zero(o->exten)) || (ast_strlen_zero(o->message) && ast_strlen_zero(o->pdu))) { */ if (ast_strlen_zero(o->tech) || ast_strlen_zero(o->dest) || (ast_strlen_zero(o->app) &a...
2004 Dec 03
1
compiling asterisk-addons for Mysql-cdr
Hi ALL; I got the latest Asterisk-addons for Mysql-Cdr, but I have problem compiling that.It says: # make ..... ........ res_config_mysql.c: In function `realtime_mysql': res_config_mysql.c:143: warning: passing arg 1 of `ast_strlen_zero' makes pointer from integer without a cast res_config_mysql.c: In function `realtime_multi_mysql': res_config_mysql.c:242: warning: passing arg 1 of `ast_strlen_zero' makes pointer from integer without a cast res_config_mysql.c: In function `load_module': res_config_mysql.c:467: str...
2008 Dec 29
3
Manager API
Hi I have a problem with Asterisk-1.6.0.3-rc1 and manager API. I want to dial out from manager's console and with Asterisk 1.4.X this settings were OK. Action: Originate Channel: SIP/384 Context: main Exten: 102 Priority: 1 Callerid: 384 I could dial out, but with asterisk 1.6 I get this error. Response: Error Message: Channel not specified I have originate and system privilege in
2010 Nov 05
2
How to append custom option to Contact: header on outgoing SIP INVITE msgs?
Hi list, My need is to append a site specific parameter to the Contact: header on all INVITEs exiting * via a SIP trunk. I'd like it to look something like this: Contact: <bob:3125551212 at 10.10.10.10;SITE-ID=us.here> where SITE-ID=us.here is set in a config file that * parses on startup. Or in a Dial() command option? Or I don't care exactly how. :-) It is possible to
2009 Oct 05
3
Questions about app_jack.c
Hello, My configuration is : Card 0 - kernel dummy sound card Card 1 - my soundcard I have a jackd running in background. My jackd launch command is : jackd --port-max 16 --realtime --no-mlock -d alsa --playback hw:1,0 --capture hw:1,0 --rate 8000 --period 1024 --shorts --inchannels 2 --outchannels 2 --dither triangular & 1 ) I open asterisk with chan_alsa.so connected (with asoundrc) to
2005 Mar 10
5
asterisk and Broadvoice Outgoing Again :(
Hi, I can't make outgoing calls via Broadvoice. I have tried each and every configuration that was posted to list previously. I am able to receive incoming calls fine. I get the following in asterisk console: ===================================================== asterisk*CLI> show version Asterisk CVS-HEAD-03/10/05-22:51:28 built by vicky@asterisk on a i686 running Linux
2010 Oct 12
0
rtpip patch
...failureevents; /*!< Whether we send authentication failure manager events or not. Default no. */ @@ -10196,21 +10189,8 @@ get_our_media_address(p, needvideo, &sin, &vsin, &tsin, &dest, &vdest); - - /* - snprintf(owner, sizeof(owner), "o=%s %d %d IN IP4 %s\r\n", ast_strlen_zero(global_sdpowner) ? "-" : global_sdpowner, p->sessionid, p->sessionversion, ast_inet_ntoa(dest.sin_addr)); - snprintf(connection, sizeof(connection), "c=IN IP4 %s\r\n", ast_inet_ntoa(dest.sin_addr)); - - */ - /* replace RTP IP address, if rtpip!=auto */ - if (!strcasestr(gl...
2004 Jun 26
2
Newbie needs help
I've been banging my head on a brick wall for about an hour now trying to understand why the following doesn't work (which is even provided as an example in the distribution!). The goal is to create a voicemail-only extension not associated with a phone. I'd rather not have an extension dedicated to VoicemailMain(), so I would like the user to be able to hit '*' during
2005 Feb 02
6
problem in compiling asterisk-addons
...------------------------------------------------ [root@localhost asterisk-addons]# make cc -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/include/mysql -c -o res_config_mysql.o res_config_mysql.c res_config_mysql.c: In function `realtime_mysql': res_config_mysql.c:142: warning: passing arg 1 of `ast_strlen_zero' makes pointer from integer without a cast res_config_mysql.c:144: warning: assignment makes pointer from integer without a cast res_config_mysql.c:149: warning: assignment makes pointer from integer without a cast res_config_mysql.c: In function `realtime_multi_mysql': res_config_mysql.c:1...
2008 Jul 07
1
cdr_addon_mysql - additional fields
Hi, I need help with modifying cdr_addon_mysql.c I want to have more fields in cdr table in asterisk. I've tried to modify cdr_addon_mysql.c and replace userfield with ex team (sed -e 's/userfield/team/g' ). When I try to recomplie menuselect/menuselect --check-deps menuselect.makeopts Generating embedded module rules ... make[1]: Nothing to be done for `all'.
2004 Jul 21
0
Voicemal error
Hi, i've a proble using voicemail. when i make a call and start voicemail asterisk tell me mail address is missing even if i used it as written mailbox => name,pwd,mail@mail I saw that modifying in app_voicemail.c line 836 in this manner: if (vmu && ast_strlen_zero(vmu->email)), so replacing !(ast_strlen_zero(vmu->email)), it works. did anyone have the same problem? or is there a different solution? Thanks, Bob __________________________________________________________________ Tiscali ADSL Senza Canone, paga solo quello che consumi! Non perdere la pr...
2006 Dec 06
1
0002475: [patch] Allow app_directory to work with REALTIME
Hi All, I'm running 1.2.9.1 stable. I'm wondering has this patch been applied to stable release or is it still only in CVS. Will this file patch apply correctly to 1.2.9.1 stable? Which file do I patch? I'm guessing app_directory_realtime_1.6.1.patch <http://bugs.digium.com/file_download.php?file_id=4915&type=bug> and config.h.patch
2006 Jun 14
0
Directory - First Name/Last Name - How to, use both? a@h?
...chr(pos, ' ') + 1; @@ -434,6 +450,8 @@ options++; if (strchr(options, 'f')) last = 0; + if (strchr(options, 'b')) + last = 2; } } else dialcontext = context; @@ -448,8 +466,10 @@ if (ast_strlen_zero(dirintro)) dirintro = ast_variable_retrieve(cfg, "general", "directoryintro"); if (ast_strlen_zero(dirintro)) { - if (last) + if (last==1) dirintro = "dir-intro"; + else if (last==2) + dirintro = "dir-intr...
2014 Mar 12
0
module load Crash Asterisk 11.5.1 app_confbridge.c
...; char *localdata; char val[80] = "0"; struct ao2_iterator i; //struct conference_bridge *bridge = NULL; struct conference_bridge tmp; AST_DECLARE_APP_ARGS(args, AST_APP_ARG(confno); AST_APP_ARG(varname); ); ast_verb(3,"\n============Inside count_exec =============\n"); if ( ast_strlen_zero(data)) { ast_log(LOG_WARNING, "MyConfbrigeCount requires an argument (conference number)\n"); ast_verb(3, "\n MyConfbrigeCount requires an argument (conference number\n "); return -1; } if (!ao2_container_count(conference_bridges)) { ast_verb(3, "No active conferences.&...
2014 Mar 13
0
Any Help ? user defined application .module load Crash Asterisk 11.5.1 app_confbridge.c
...; char *localdata; char val[80] = "0"; struct ao2_iterator i; //struct conference_bridge *bridge = NULL; struct conference_bridge tmp; AST_DECLARE_APP_ARGS(args, AST_APP_ARG(confno); AST_APP_ARG(varname); ); ast_verb(3,"\n============Inside count_exec =============\n"); if ( ast_strlen_zero(data)) { ast_log(LOG_WARNING, "MyConfbrigeCount requires an argument (conference number)\n"); ast_verb(3, "\n MyConfbrigeCount requires an argument (conference number\n "); return -1; } if (!ao2_container_count(conference_bridges)) { ast_verb(3, "No active conferences.&...
2006 Dec 20
0
asterisk run on vxworks for hardware pbx
...gt;dst); show_queue(head); memset(xferto, 0, sizeof(xferto)); //callbk = ast_channel_alloc(0); callbk = ast_get_channel_by_exten_locked(pu->dst, context); if (!ast_strlen_zero(callbk->macrocontext)) callbk_real_context = callbk->macrocontext; else callbk_real_context = callbk->context; ast_copy_string(xferto,pu->dst,sizeof(xferto));...
2009 Feb 04
0
Stopping chanspy
...,n,Hangup() and I would like to be able to make the agent available again without them having to hang up and log back in again. If I add a line of code like this: if (running == 99999) running = -1; in app_chanspy.c around line 348: if (!ast_strlen_zero(inp)) { running = atoi(inp); if (running == 99999) running = -1; break; Then hitting 99999# on the keypad does what I want. I do not particularly want to patch future versions of the code to add this a...
2009 Feb 09
0
Problem with AMI originate
It looks like a problem that I thought had once been fixed is broken again. In manager.c line 2166 of both versions 1.6.0.3 and 1.6.0.5 if (!ast_strlen_zero(name)) { The ! Should not be there. I am not sure if there are other places there is a like problem but removing the ! for sure fixes at least one problem. -- Jim Dickenson mailto:dickenson at cfmc.com CfMC http://www.cfmc.com/
2009 May 26
1
Bug or feature in 1.6.1 (Was: How to register with TCP transport) ?
...expire = strchr(buf, '~'); if (expire) *expire++ = '\0'; callback = strrchr(buf, '/'); // My comment: contact is search at the end of input register line if (callback) *callback++ = '\0'; if (ast_strlen_zero(callback)) callback = "s"; sip_parse_host(buf, lineno, &username, &portnum, &transport); Given an input line such as "register=>tcp:// trunk4ipbx:password at 192.168.100.129 <trunk4ipbx%3Apassword at 192.168.100.129>", register line...