[asterisk-users] op_div: non-numeric argument

Warren Selby wcselby at selbytech.com
Mon Aug 9 12:18:09 CDT 2010


> s,n,GoToIf($[${AVAILORIGCHAN} = ""]?fail:autoanswer)  ; SUSPECTED  
> ISSUE

You need quotes around your variable as well as your evaluation ("$ 
{AVILORIGCHAN}" = "").



Thanks,
--Warren Selby

On Aug 9, 2010, at 7:27 AM, Positively Optimistic <positivelyoptimistic at gmail.com 
 > wrote:

> Ladies, Gentlemen
>
> We are experiencing an unusual problem in our asterisk 1.4.34..  We  
> are attempting to determine if channels are in use before paging to  
> them.
>
> This works correctly, as in it pages the phone..  however, we see  
> the error message below on the console...  after googling, we  
> discovered limited information regarding the issue...
>
>     -- Executing [NPANXX7298 at from-pstn:1] Set("SIP/L2Net- 
> SS-000000db", "TIMEOUT(absolute)=60") in new stack
>     -- Channel will hangup at 2010-08-09 12:11:27 UTC.
>     -- Executing [NPANXX7298 at from-pstn:2] Page("SIP/L2Net- 
> SS-000000db", "Local/7299 at page") in new stack
>     -- Executing [7299 at page:1] Macro("Local/7299 at page-9da0,2", "page| 
> SIP/7299") in new stack
>     -- Executing [s at macro-page:1] ChanIsAvail("Local/ 
> 7299 at page-9da0,2", "SIP/7299|js") in new stack
> [Aug  9 08:10:27] WARNING[29209]: ast_expr2.y:901 op_div: non- 
> numeric argument
>     -- Executing [s at macro-page:2] GotoIf("Local/7299 at page-9da0,2",  
> "0?fail:autoanswer") in new stack
>     -- Goto (macro-page,s,3)
>     -- Executing [s at macro-page:3] Set("Local/7299 at page-9da0,2",  
> "_ALERT_INFO="RA"") in new stack
>    -- Executing [s at macro-page:4] SIPAddHeader("Local/ 
> 7299 at page-9da0,2", "Call-Info: <sip:XXX.XXX.XXX.XXX>;answer- 
> after=0") in new stack
>     -- Executing [s at macro-page:5] NoOp("Local/7299 at page-9da0,2", "")  
> in new stack
>     -- Executing [s at macro-page:6] Dial("Local/7299 at page-9da0,2",  
> "SIP/7299||") in new stack
>     -- Called 7299
>     -- Called 7299 at page
>     -- <SIP/ITSP-SS-000000db> Playing 'beep' (language 'en')
>     -- Got SIP response 486 "Busy Here" back from XXX.XXX.XXX.XXX
>     -- SIP/7299-000000dd is busy
>   == Everyone is busy/congested at this time (1:1/0/0)
>     -- Executing [s at macro-page:7] Hangup("Local/7299 at page-9da0,2",  
> "") in new stack
>   == Spawn extension (macro-page, s, 7) exited non-zero on 'Local/ 
> 7299 at page-9da0,2' in macro 'page'
>   == Spawn extension (page, 7299, 1) exited non-zero on 'Local/ 
> 7299 at page-9da0,2'
>     -- Created MeetMe conference 1023 for conference '2051129475d'
>     -- Hungup 'DAHDI/pseudo-1451849221'
>   == Spawn extension (from-pstn, NPANXX7298, 2) exited non-zero on  
> 'SIP/L2Net-SS-000000db'
> sipy*CLI> core show version
>
>
> Pertinent DialPlan Logic...
>
> [from-pstn]
> exten => NPANXX7299,1,Set(TIMEOUT(absolute)=60)
> exten => NPANXX7299,2,Page(Local/7299 at page)
>
> [macro-page];
> exten => s,1,ChanIsAvail(${ARG1}|js)
> exten => s,n,GoToIf($[${AVAILORIGCHAN} = ""]?fail:autoanswer)  ;  
> SUSPECTED ISSUE
> exten => s,n(autoanswer),Set(_ALERT_INFO="RA")
> exten => s,n,SIPAddHeader(Call-Info: <sip:XXX.XXX.XXX.XXX>\;answer- 
> after=0)
> exten => s,n,Dial(${ARG1}||)
> exten => s,n(fail),Hangup
>
> Thanks in advance for any insight that you may be able to provide...
>
>
> (sensitive information masked for obvious reasons)
>
>
> -- 
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list