That didn’t work, but I may have the syntax wrong. I’m using different numbers than my question as the station that ext 220 is at is in use today so just testing from my desk till I have the code right.
exten=> _X.,n,GotoIf($[ “${CALLERID(num)}” == “4099819213” & “${EXTEN}” == “4099819797” ]infinity_no_record,${EXTEN},1)
With the above line active. It not only is still recording, its throwing errors on calls that don’t even pertain to the about line.
[code]Connected to Asterisk SVN-branch-1.2-r47862 currently running on pbx (pid = 4129)
Verbosity is at least 8
– Accepting call from ‘4099819213’ to ‘9819797’ on channel 0/4, span 1
– Executing Goto(“Zap/4-1”, “bell_out_td|9819797|1”) in new stack
– Goto (bell_out_td,9819797,1)
– Executing Set(“Zap/4-1”, “CALLERID(all)=<4099819213>”) in new stack
– Executing NoOp(“Zap/4-1”, "“OUTBOUND-PRES:4099819213"”) in new stack
– Executing Monitor(“Zap/4-1”, “wav|/var/store/calls/bellout-20090204-105843-4099819213-9819797|mb”) in new stack
– Executing Dial(“Zap/4-1”, “Zap/G3/9819797”) in new stack
– Requested transfer capability: 0x10 - 3K1AUDIO
– Called G3/9819797
– Zap/70-1 is proceeding passing it to Zap/4-1
– Accepting call from ‘4099819213’ to ‘4099819797’ on channel 0/1, span 3
– Executing Goto(“Zap/49-1”, “port3_real|4099819797|1”) in new stack
– Goto (port3_real,4099819797,1)
– Executing Monitor(“Zap/49-1”, “wav|/var/store/calls/to_infinity-20090204-105844-4099819213-4099819797|mb”) in new stack
Feb 4 10:58:44 WARNING[10058]: ast_expr2.fl:183 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected TOK_EQ, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input:
“4099819213” == “4099819213” & “4099819797” == “4099819797”
^
Feb 4 10:58:44 WARNING[10058]: ast_expr2.fl:187 ast_yyerror: If you have questions, please refer to doc/README.variables in the asterisk source.
– Executing GotoIf(“Zap/49-1”, “0infinity_no_record|4099819797|1”) in new stack
!! Got reject for frame 113, but we only have others!
– Channel 0/1, span 3 got hangup
– PROGRESS with cause code 18 received
– Zap/70-1 is making progress passing it to Zap/4-1
– Hungup ‘Zap/49-1’
!! Got reject for frame 114, but we only have others!
– Channel 0/3, span 3 got hangup request
– Hungup ‘Zap/26-1’
== Spawn extension (dial_inf, 4099819523, 8) exited non-zero on ‘Zap/51-1’
– Hungup ‘Zap/51-1’
– Accepting call from ‘4098386334’ to ‘4099819160’ on channel 0/1, span 3
– Executing Goto(“Zap/49-1”, “port3_real|4099819160|1”) in new stack
– Goto (port3_real,4099819160,1)
– Executing Monitor(“Zap/49-1”, “wav|/var/store/calls/to_infinity-20090204-105902-4098386334-4099819160|mb”) in new stack
Feb 4 10:59:02 WARNING[10067]: ast_expr2.fl:183 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected TOK_EQ, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input:
“4098386334” == “4099819213” & “4099819160” == “4099819797”
^
Feb 4 10:59:02 WARNING[10067]: ast_expr2.fl:187 ast_yyerror: If you have questions, please refer to doc/README.variables in the asterisk source.
– Executing GotoIf(“Zap/49-1”, “0infinity_no_record|4099819160|1”) in new stack
– Channel 0/4, span 1 got hangup request
– Hungup ‘Zap/70-1’
== Spawn extension (bell_out_td, 9819797, 4) exited non-zero on ‘Zap/4-1’
– Hungup ‘Zap/4-1’
– Channel 0/1, span 3 got hangup
– Hungup ‘Zap/49-1’
Without it
Connected to Asterisk SVN-branch-1.2-r47862 currently running on pbx (pid = 4129)
– Remote UNIX connection
Verbosity is at least 8
– Accepting call from ‘4099819998’ to ‘97340215’ on channel 0/23, span 2
– Executing Goto(“Zap/47-1”, “bell_out_td|7340215|1”) in new stack
– Goto (bell_out_td,7340215,1)
– Executing Set(“Zap/47-1”, “CALLERID(all)=<4099819998>”) in new stack
– Executing NoOp(“Zap/47-1”, "“OUTBOUND-PRES:4099819998"”) in new stack
– Executing Monitor(“Zap/47-1”, “wav|/var/store/calls/bellout-20090204-110024-4099819998-7340215|mb”) in new stack
– Executing Dial(“Zap/47-1”, “Zap/G3/7340215”) in new stack
– Requested transfer capability: 0x00 - SPEECH
– Called G3/7340215
– Zap/70-1 is proceeding passing it to Zap/47-1
– Zap/70-1 is making progress passing it to Zap/47-1
– Zap/70-1 answered Zap/47-1
– Channel 0/23, span 2 got hangup request
– Hungup ‘Zap/70-1’
== Spawn extension (bell_out_td, 7340215, 4) exited non-zero on ‘Zap/47-1’
– Hungup ‘Zap/47-1’
– Accepting call from ‘4098922795’ to ‘4099819554’ on channel 0/2, span 3
– Executing Goto(“Zap/50-1”, “port3_real|4099819554|1”) in new stack
– Goto (port3_real,4099819554,1)
– Executing Goto(“Zap/50-1”, “dial_mili|4099819554|1”) in new stack
– Goto (dial_mili,4099819554,1)
– Executing Wait(“Zap/50-1”, “0.7”) in new stack
– Executing Monitor(“Zap/50-1”, “wav|/var/store/calls/mili-20090204-110033-4098922795-4099819554|mb”) in new stack
– Executing Dial(“Zap/50-1”, “Zap/g1/4099819554”) in new stack
– Requested transfer capability: 0x00 - SPEECH
– Called g1/4099819554
– Zap/1-1 is proceeding passing it to Zap/50-1
– Zap/1-1 is ringing
– Channel 0/2, span 2 got hangup request
– Hungup ‘Zap/26-1’
== Spawn extension (dial_inf, 4098321501, 8) exited non-zero on ‘Zap/51-1’
– Hungup ‘Zap/51-1’
– Accepting call from ‘4099819213’ to ‘9819701’ on channel 0/17, span 1
– Executing Goto(“Zap/17-1”, “bell_out_td|9819701|1”) in new stack
– Goto (bell_out_td,9819701,1)
– Executing Set(“Zap/17-1”, “CALLERID(all)=<4099819213>”) in new stack
– Executing NoOp(“Zap/17-1”, "“OUTBOUND-PRES:4099819213"”) in new stack
– Executing Monitor(“Zap/17-1”, “wav|/var/store/calls/bellout-20090204-110038-4099819213-9819701|mb”) in new stack
– Executing Dial(“Zap/17-1”, “Zap/G3/9819701”) in new stack
– Requested transfer capability: 0x10 - 3K1AUDIO
– Called G3/9819701
– Zap/70-1 is proceeding passing it to Zap/17-1
– Accepting call from ‘4099819213’ to ‘4099819701’ on channel 0/3, span 3
– Executing Goto(“Zap/51-1”, “bell_out_td|8322184|1”) in new stack
– Goto (bell_out_td,8322184,1)
– Executing Set(“Zap/51-1”, “CALLERID(all)=<4099819213>”) in new stack
– Executing NoOp(“Zap/51-1”, "“OUTBOUND-PRES:4099819213"”) in new stack
– Executing Monitor(“Zap/51-1”, “wav|/var/store/calls/bellout-20090204-110039-4099819213-8322184|mb”) in new stack
– Executing Dial(“Zap/51-1”, “Zap/G3/8322184”) in new stack
– Requested transfer capability: 0x10 - 3K1AUDIO
– Called G3/8322184
!! Got reject for frame 120, but we only have others!
– Zap/69-1 is proceeding passing it to Zap/51-1
– Zap/69-1 is ringing
– Zap/70-1 is ringing
!! Got reject for frame 121, but we only have others!
– Zap/69-1 answered Zap/51-1
– Zap/70-1 answered Zap/17-1
– Channel 0/17, span 1 got hangup request
– Hungup ‘Zap/70-1’
== Spawn extension (bell_out_td, 9819701, 4) exited non-zero on ‘Zap/17-1’
– Hungup ‘Zap/17-1’
– Channel 0/3, span 3 got hangup request
– Hungup ‘Zap/69-1’
== Spawn extension (bell_out_td, 8322184, 4) exited non-zero on ‘Zap/51-1’
– Hungup ‘Zap/51-1’
-------------------------------------------[/code]